- Help Center
- Automation/Electrical
- Programmable Controllers
-
Pneumatics
- Air Cylinders
- Air Dryers
- Auto Switches
- Boosters
- Electric Actuators
- Fieldbus System/Serial Transmission System
- Fittings
- Modular F.R.L.
- Pressure Switches
- Regulators
- Rotary Actuators
- Solenoid Valve
- Temperature Control Equipment
- Vacuum Equipment
- Photoelectric Sensors
- Process Valves
- Valve Clamps and Accessories
- Pumps
- Additional Articles in Pneumatics
- Safety Valves
- Tubing
-
Hydraulics
-
Automation/Electrical
- Contact Sensors / Liquid Leakage Sensors
- Level Switches
- Basic Switches
- Limit Switches
- Push Buttons / Indicator Lamps
- Thumbwheel Switches
- Safety Limit Switches
- Temperature Controllers
- Counters
- Programmable Relays
- Programmable Controllers
- Safety Sensors
- Safety Door Switches
- Solid-state Relays
- Timers
- Inverters
- Power Supplies
- Axial Fans
- Wiring Systems
- Rotary Encoders
- Pressure Sensors
- Displacement Sensors/Measurement Sensors
- Ultrasonic Sensors
- Emergency Stop Switches
- Power Controllers
- Signal Converters
- Machine Automation Controllers
- RFID Systems
- Measuring / Motor Protective Relays
- Vision Sensors / Machine Vision Systems
- Photomicro Sensors
- Digital Panel Indicators
- Programmable Terminals
- Servomotors / Servo Drivers
- Proximity Sensors
- General Purpose Relays
- Fieldbus Communications
-
Safety
-
Website Help Center
How do I create programming to use a DATA SEARCH (SRCH) instruction to find a certain product code?
There are many applications that use the product code as a search key to extract the related production instruction data. The following explains how to use the DATA SEARCH (SRCH) instruction to accomplish this.
Work Flow to Extract Production Instruction Master and Data
Figure1. Production Instruction Master
*File size: 320 words (80 records at 4 words per record)
*Code specifications: The product code and instruction data cannot have the same code.
Program and Operation
The following programming is designed for the CS/CJ Programmable Controllers. When using a C200H Programmable Controllers or other smaller Programmable Controllers, the usage of the DATA SEARCH (SRCH) instruction is slightly different. Before programming, refer to the Instructions Reference Manual for the relevant Programmable Controllers(PLC).
*1. What is &320?
Direct Decimal Input/Hexadecimal Data Formal
When &320 is written, the decimal 320 is converted to hexadecimal 0140 and used as the parameter for the first operand.