Contents System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 CPM1A Line-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CPM1A System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . External Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Performance Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I/O Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Temperature Sensor Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communications Adapter Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . CPM2C-PA201 AC Power Supply Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 7 7 8 9 10 12 13 14 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Programming Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . Peripheral Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Standard Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Expansion Memory Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 26 27 30 Input Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Quick-response Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . High-speed Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interval Timer Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analog Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pulse Output Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 17 17 18 18 19 20 System Configuration CPM1A Line-up ! DC input CPU with AC Power Supply 10 I/O points (Expansion not possible) 30 I/O points 20 I/O points (Expansion not possible) CPU with DC Power Supply 10 I/O points (Expansion not possible) 20 I/O points (Expansion not possible) ! RY output/TR output (NEW) ! DC input ! RY output / TR output 30 I/O points Expansion I/O Unit Expansion I/O Unit ! DC input ! RY output / TR output ! DC input ! RY output / TR output CPM1-CIF01 6 40 I/O points CompoBus/S I/O Link Unit (New) Analog I/O Unit Temperature Sensor Units (NEW) CPM1A-SRT21 CPM1A-MAD01 CPM1A-TS001 TS002 TS101 TS102 20 I/O points RS-232C Adapter 40 I/O points RS-422 Adapter CPM1-CIF11 System Configuration CPM1A System Configuration Peripheral port Connecting cable CPM1-CIF01/CIF11 Adapter Both AC and DC power supplies. 30-point CPU and 40-point CPU only. May be expanded up to a maximum of 3 Units. Expansion I/O Unit Expansion I/O Unit Expansion I/O Unit Connection Groups for Expansion Units Group 1 (G1) Group 2 (G2) Expansion I/O Units, CPM1A-TS002/102 Analog I/O Unit, CompoBus/S I/O LInk Unit CPM1A-TS001/101 In addition to the CPU Unit, Expansion Units from the groups indicated in the above table can be combined as shown below. Possible Expansion Unit Combinations Expansion Unit 1 Expansion Unit 2 Expansion Unit 3 G1 G1 G1 G2 G1 --- Note: 1. Expansion Units 1, 2, and 3 can be mounted in any order. 2. Only one Expansion Unit can be mounted if an NT-AL001 is connected to the RS-232C port. External Dimensions CPM1-CIF01 30 21 56 50 30 21 61 50 90 90 81 50 W DC power supply 85 AC power supply Unit: mm CPM1-CIF11 Model W (mm) CPM1A-10CDj-A/D 66 CPM1A-20CDj-A/D 86 CPM1A-30CDj-A/D 130 CPM1A-40CDj-A/D 150 CPM1A-20EDj 86 (depth: 50 mm) CPM1A-8Ej/SRT21 66 (depth: 50 mm) CPM1A-MAD01 66 (depth: 50 mm) CPM1A-TSjjj 86 (depth: 50 mm) 90 81 7 Specifications General Specifications Item Power supply pp y voltage/ g / AC power supply f frequency DC power supply Operating p g voltage g AC power supply range DC power supply Power consumption p AC power supply DC power supply Inrush current External power supply Power supply ((AC Co y) only) voltage Power supply output capacity Insulation resistance Dielectric strength Noise resistance 10-point I/O 20-point I/O 100 to 240 VAC, 50/60 Hz 24 VDC 85 to 264 VAC 20.4 to 26.4 VDC 30 VAC max. 6 W max. 30 A max. 30-point I/O 40-point I/O 60 VAC max. 20 W max. 60 A max. 24 VDC 200 mA 300 mA 20 M! min. at 500 VDC between the AC terminals and the protective earth terminal. 2,300 VAC at 50/60 Hz for one minute with a leakage current of 10 mA max. between all the external AC terminals and the protective earth terminal. Conforms to IEC61000-4-4, 2 kV (power lines) Vibration resistance 10 to 57 Hz with an amplitude of 0.075 mm, and 57 to 150 Hz with an acceleration of 9.8 m/s2 in the X, Y, and Z directions for 80 minutes each (i.e. swept for 8 minutes, 10 times). Shock resistance 147 m/s2 in the X, Y and Z directions 3 times each. Ambient temperature (operating) 0" to 55"C Ambient humidity (operating) 10% to 90% (no condensation) Ambient environment (operating) With no corrosive gas Ambient temperature (storage) --20" to 75"C Terminal screw size M3 Power supply holding time 10 ms min. for AC models, and 2 ms min. for DC models Weight AC model: 400 g max. DC model: 300 g max. AC model: 500 g max. DC model: 400 g max. AC model: 600 g max. DC model: 500 g max. AC model: 700 g max. DC model: 600 g max. Note: The specifications of the Expansion I/O Unit are the same as for the CPU except that the power is supplied from the CPU and the weight is 300 g. 8 Specifications Performance Specifications Item 10-point I/O 20-point I/O 30-point I/O 40-point I/O Control method Stored program method I/O control method Combination of the cyclic scan and immediate refresh processing methods. Programming language Ladder diagram Instruction word Types yp of Basic instructions i instructions i Special instructions Instruction Basic instructions execution i time i Special instructions Program capacity Maximum I/O CPU only po pointss With Expansion I/O Unit Input bits 1 step per instruction, 1 to 5 words per instruction Output bits 01000 to 01915 (Words 10 to 19) Work bits (IR Area) 512: IR 20000 to IR 23115 (IR 200 to IR 231) Special bits (SR Area) 384: SR 23200 to SR 25515 (SR 232 to SR 255) Temporary bits (TR Area) 8: TR 0 to TR 7 Holding bits (HR Area) 320: HR 0000 to HR 1915 (HR 00 to HR 19) Auxiliary bits (AR Area) 256: AR 0000 to AR 1515 (AR 00 to AR 15) Link bits (LR Area) 256: LR 0000 to LR 1515 (LR 00 to LR 15) Timers/Counters Data memoryy Read/Write Read only Interrupt processing: External interrupt Memory protection 128: TIM/CNT 000 to 127 100-ms timer: TIM 000 to TIM 127 10-ms timer: TIM 000 to TIM 127 Decremental counter, reversible counter 1,024 words (DM 0000 to DM 1023) 512 words (DM 6144 to DM 6655) 2 points (Response 4 points (Response time of 0.3 ms max.) time of 0.3 ms max.) Maintains the contents of the HR, AR, Counter and Data Memory Areas. Memory backup Flash memory: 14 types 79 types, 139 instructions 0.72 to 16.2 #s MOV instruction = 16.3 #s 2,048 words 10 points (6 input/ 4 output points) --- 20 points (12 input/ 8 output points) --- 30 points (18 input/ 12 output points) 90 points (54 input/ 36 output points) 40 points (24 input/ 16 output points) 100 points (60 input/ 40 output points) 00000 to 00915 (Words 0 to 9) Self-diagnostic function User program, data memory (Read only) (Non-battery powered storage) Super capacitor: Data memory (Read/Write), holding bits, auxiliary memory bits, counter (20-day storage at an ambient temperature of 25"C) CPU error (watchdog timer), memory errors, I/O bus errors Program check No END instruction programming errors (constantly checked during operation) Pulse output 1 point: 2 kHz High-speed counter 1 point: Single phase at 5 kHz or two-phase at 2.5 kHz (linear counting method) Incremental mode: 0 to 65535 (16-bit) Decremental mode:--32767 to 32767 (16-bit) 1 point: Single phase at 5 kHz or two-phase at 2.5 kHz (linear counting method) Incremental mode: 0 to 65535 (16-bit) Decremental mode:--32767 to 32767 (16-bit) Quick-response inputs Together with the external interrupt input (minimum pulse width of 0.2 ms) Input time constant Can be set at 1 ms, 2 ms, 4 ms, 8 ms, 16 ms, 32 ms, 64 ms, or 128 ms. Analog settings 2 points: (0 to 200) Note: Bits that are not used for the I/O bits can be used as work bits. 9 Specifications I/O Specifications Input Circuit CPU Item Input voltage Input impedance Input current (typical) ON voltage OFF voltage ON delay (see note 1) OFF delay (see note 1) Specifications 24 VDC +10%/--15% IN0000 to IN0002: 2 k! Others: 4.7 k! IN0000 to IN0002: 12 mA Others: 5 mA 14.4 VDC min. 5.0 VDC max. 1 to 128 ms max. (default: 8 ms) (see note 1) 1 to 128 ms max. (default: 8 ms) (see note 1) Circuit Input LED 4 7 k! 4.7 IN Internal Circuits 4 7 k! 4.7 COM Note The polarity of the input power supply can be either positive or negative. Note: 1. The actual ON/OFF delay includes an input constant of 1, 2, 4, 8, 16, 32, 64, or 128 ms (default: 8 ms). 2. The delays for IN0000 to IN0002 are as follows when used for the high-speed counter. Input IN0000 (A-phase) IN0001 (B-phase) IN0002 (Z-phase) Increment mode Differential phase mode 2.5 kHz 5 kHz Normal input ON: 100 #s max. OFF: 500 #s max. 3. The delays for IN0003 to IN0006 are as follows when used for the high-speed counter. Delay 0.3 ms max. (From the time of input ON until the interrupt subroutine is executed.) Expansion I/O Unit Item Specifications +10%/ Input voltage 24 VDC, Input impedance 4.7 k! Input current (typical) 5 mA ON voltage 14.4 VDC min. OFF voltage 5.0 VDC max. ON delay 1 to 128 ms max. (default: 8 ms) (see note) OFF delay 1 to 128 ms max. (default: 8 ms) (see note) Circuit --15% Input LED 4.7 k! IN 4 7 k! 4.7 COM Note The polarity of the input power supply can be either positive or negative. Note: The actual ON/OFF delay includes an input constant of 1, 2, 4, 8, 16, 32, 64, or 128 ms (default: 8 ms). 10 Internal e a Ci it Circuits Specifications Output Circuit CPU and Expansion I/O Unit Relay Output Specifications Item Maximum switching capacity 250 VAC/2 A (cos $ =1) 24 VDC/2 A (4 A/common) Minimum switching capacity Relay Electrical Resisservice tance life load 5 VDC, 10 mA 300,000 times Inductive load Mechanical Circuit OUT Output LED Internal Circuits OUT COM 100,000 times Maximum 250 VAC: 2 A 24 VDC: 2 A 10 million times 15 ms max. 15 ms max. ON delay OFF delay Transistor Output (Sink Type/Source Type) (CPU/Expansion I/O Unit) Specifications Item Maximum switching capacity Leakage current +10%/ Circuit 24 VDC --15%, 300 mA (see note 1) Sink Type Output LED 0.1 mA max. Internal Circuits OUT OUT 24 VDC ( ) COM (--) Residual voltage 1.5 V max. Source Type Output LED ON delay 0.1 ms max. COM (+) Internal Circuits OFF delay OUT 24 VDC 1 ms max. (see note 2) OUT Note: 1. The maximum switching capacity of the CPM1A with transistor outputs (sink type and source type) are limited to the currents shown in the following table for the common and for the Unit. Item Max. switching capacity 10CDT/ 10CDT1-A/D 0.9 A/Unit 20CDT-D/ 20CDT1-A/D 30CDT-D/ 30CDT1-A/D 40CDT-D/ 40CDT1-A/D 0.9 A/common 1.8 A/Unit 0.9 A/common 2.7 A/Unit 0.9 A/common 3.6 A/Unit 20EDT/ 20EDT1 CPM1A-8ET/ 8ET1 0.9 A/common 1.8 A/Unit 2. When using the pulse output function of the CPM1A with transistor outputs (sink type and source type): The output current must be within a range from 100 to 200 mA when using the output 01000 or 01001 as a pulse output with the maximum frequency of 2 kHz. The outputs 01000 and 01001 will vary depending on the output current. Load current OFF delay 100 to 200 mA 0.2 ms max. 0 to 300 mA except for the above range 0.5 ms max. 11 Specifications Analog I/O Unit Item Voltage I/O Analog g i inputs Current I/O Number of inputs Input signal range Maximum rated input External input impedance Resolution Overall precision Converted A/D data Analog g Number of outputs output Output signal range (See note 1.) External output max. current External output allowed load resistance Resolution Overall precision Data setting Conversion time (See note 2.) 2 0 to 10 V or 1 to 5 V %15 V 1 M! min. 1/256 1.0% of full scale 8-bit binary 1 0 to 10 V or --10 to 10 V 5 mA --- Isolation method Photocoupler isolation between I/O terminals and PC (There is no isolation between the analog I/O signals.) 4 to 20 mA %30 mA 250 ! rated 4 to 20 mA --350 ! 1/256 (1/512 when the output signal range is --10 to 10 V.) 1.0% of full scale 8-bit binary with sign bit 10 ms/Unit max. Note 1. The voltage output and current output can be used at the same time, but the total output current cannot exceed 21 mA. 2. The conversion time is the total time for 2 analog inputs and 1 analog output. CompoBus/S I/O Link Unit Specifications Item Specification Model number CPM1A-SRT21 Master/Slave CompoBus/S Slave Number of I/O bits 8 input bits, 8 output bits Number of words occupied in 1 input word, 1 output word CPM1A I/O memory (Allocated in the same way as other Expansion Units) Node number setting Set using the DIP switch. Note: See the CompoBus/S Catalog (Q103) for more details on CompoBus/S communications. Temperature Sensor Units By mounting a Temperature Sensor Unit (CPM1A-TS001/TS002/TS101/TS102) to the PC, input can be obtained from a thermocouple or platinum resistance thermometer,and temperature measurements can be converted to binary data (4-digit hexadecimal) and stored in the input area of the CPU Unit. For details on the maximum number of connectable Units, refer to 7. Specifications Item Specification Model number CPM1A-TS001/002 CPM1A-TS101/102 Number of inputs 2 (TS001), 4 (TS002) 2 (TS101), 4 (TS102) Input types Conversion time K, J switchable Pt100, JPt100 switchable (Note: Same input for all input points.) (Note: Same input for all input points.) [The larger of the indicated value %0.5% and [The larger of the indicated value %0.5% and %2"C] %1 digit max. %1"C] %1 digit max. 250 ms/2 points (TS001, TS101); 250 ms/4 points (TS002, TS102) Converted temperature data Binary (4-digit hexadecimal) Isolation method Photocoupler isolation between the temperature input signals. Indication accuracy Note: The indication accuracy when using a K-type thermocouple for temperatures less than --100"C is %4"C %1 digit max. 12 Specifications Input Temperature Ranges for CPM1A-TS001/002 The rotary switch can be used to make of the following range and input type settings for CPM1A-TS001/002 models. Range ("C) Input type K Range ("F) --200 to 1300 0.0 to 500.0 --100 to 850 0.0 to 400.0 J --300 to 2300 0.0 to 900.0 --100 to 1500 0.0 to 750.0 Input Temperature Ranges for CPM1A-TS101/102 The rotary switch can be used to make of the following range and input type settings for CPM1A-TS101/102 models. Range ("C) Input type Range ("F) Pt100 --200.0 to 650.0 --300 to 1200.0 JPt100 --200.0 to 650.0 --300 to 1200.0 Communications Adapter Specifications RS-232C Adapter and RS-422 Adapter Specifications Item CPM1-CIF01 CPM1-CIF11 Functions Level conversion between the CMOS level (CPU side) and the RS-232C (peripheral device side) Level conversion between the CMOS level (CPU side) and the RS-422 (peripheral device side) Insulation The RS-232C (peripheral device side) is insulated by a DC/DC converter and photocoupler. The RS-422 (peripheral device side) is insulated by a DC/DC converter and photocoupler. Power supply Power is supplied by the CPU. Power consumption 0.3 A max. Transmission speed 38.4 Kbits/s max. Vibration resistance 10 to 57 Hz with an amplitude of 0.075 mm, and 57 to 150 Hz with an acceleration of 9.8 m/s2 in the X, Y and Z directions for 80 minutes each in accordance (i.e. swept for 8 minutes, 10 times). Shock resistance 147 m/s2 in the X, Y and Z directions 3 times each. Ambient temperature (operating) 0" to 55"C Ambient humidity (operating) 10% to 90% (with no condensation) Ambient environment (operating) With no corrosive gas Ambient temperature (storage) --20" to 75"C Weight 200 g max. Memory Backup The user program and memory area data in the CPU Unit are backed up by either one of the following methods. The capacitor provides backup for a power interruption lasting 20 days at room temperature. If the power is expected to remain OFF for a period exceeding this data backup period, consideration must be given to the design of the system so that no problems will occur when the set values become undefined ones. For further details, refer to CPM1A Operation Manual (W317). Capacitor backup time (days) & Flash Memory: User program, read-only DM area (DM 6144 to DM 6599), and PC Setup area (DM 6600 to DM 6655). & Internal Capacitor: DM areas other than the above, HR area, AR area, and Counter area. 20 10 7 1 25 40 80 Ambient temperature (_C) 13 Specifications CPM2C-PA201 AC Power Supply Unit The CPM2C-PA201 is a compact, streamlined Unit that can be used as the power supply for PCs, such as the CPM1A and CPM2A, and indicators. (When using the CPM2C-PA201, connection must be performed by the user.) AC Power Supply Unit 14 Specifications Specifications Item Specification Rated output 15 W Output voltage 24 VDC Output current 600 mA Efficiency Input p conditions di i 75% min. (at rated output) Overvoltage protection 100 to 240 VAC 85 to 264 VAC 47 to 63 Hz 0.4 A 0.2 A 0.5 mA max. (at rated output) 1 mA max. (at rated output) 15 A (at 25"C cold start) 30 A (at 25"C cold start) 5%/--10% max.;10%/--15% max. (including input, load, and temperature fluctuations) 30 mA 2% (p-p) max. 0.75% max. 4% max. 0.05%/"C max. 300 ms max. (at input voltage of 100 VAC or 200 VAC and the rated output) 10 ms (at input voltage of 100 VAC or 200 VAC and the rated output) Self-resetting, operates at 105% to 335% of the rated current, suspended and intermittent operation None Ambient operating temperature 0 to 55"C Output ccharacteristics a ac e s cs Rated voltage Allowable voltage range Frequency Current 100 V 200 V Leakage g 100 V current 200 V Inrush 100 V current 200 V Output voltage accuracy Minimum output current Ripple noise voltage Input fluctuation Load fluctuation Temperature fluctuation Startup time Output hold time Overcurrent protection Ambient storage temperature --20 to 70"C (no condensation or icing) Ambient operating humidity 10% to 90% Dielectric strength 2,000 V for 1 min between all inputs and GR Detection current: 10 mA 3,000 V for 1 min between all inputs and all outputs Detection current: 10 mA 1,000 V for 1 min between all outputs and GR Detection current: 10 mA Insulation resistance Vibration resistance 100 M! min. at 500 VDC between all outputs and any input, and between all outputs and GR 10 to 57 Hz, double amplitude of 0.075 mm, 57 to 150 Hz, acceleration: 9.8 m/s2 in X, Y, and Z directions for 80 minutes according (Time coefficient: 8 minutes ' coefficient factor 10 = total time 80 min.) Shock resistance 147 m/s2 3 times each in X, Y, and Z directions Noise terminal voltage FCC class A Weight 250 g max. External dimensions 40 ' 65 ' 90 mm (W ' H ' D) 15 Functions Input Interrupts There are two input interrupts in the CPM1A 10-point I/O CPU and four in the 20-, 30-, and 40-point I/O CPUs. Input interrupts are available in two modes. Application Example: 10-point I/O CPU 20-, 30-, and 40-point I/O CPU Cutting Metal Sheets to Specified Lengths The proximity sensor detects the edge of a metal plate to operate the cutter. Metal sheets can be cut continuously to the specified lengths at a high speed. Metal sheets Cutter Conveyor Proximity sensor Input interrupt Cutter operation signal CPM1A Input Interrupt Mode If an input interrupt occurs, the regular program shuts down irrelevant of the cycle time, and the interrupt processing program is executed immediately. Regular program Regular program Interrupt program Input interrupt Counter Mode When the number of external signals counted at high speed reaches a specified number of counts, the regular program shuts down, and the interrupt processing program is executed at fixed counts. The count can be set between 0 and 65535. Regular program Regular program Interrupt program Input interrupt Counter setting 16 Functions Quick-response Inputs There are two quick-response inputs for the CPM1A 10-point I/O CPU and four for the 20-, 30-, and 40-point I/O CPU (shared with the interrupt inputs). Since an internal buffer is provided, the quick-response input function can even detect signals modified within one cycle. Input no. CPU 10-point I/O CPU 20-point, 30-point, 40-point I/O CPU Minimum input pulse width 0.2 ms 00003 to 00004 00003 to 00006 Application Example: Overseeing processes Program execution I/O refreshing Overseeing Program processes execution Calculating the Number of Chips I/O refreshing The metal sensor counts the number of parts that have passed. Steady counting can be achieved even when the input-ON time is short. 0.2 ms min Input signal (00003) CPM1A IR 00003 One cycle F2LP-WK4 F2LP-W High-speed Counter The CPM1A has a high-speed counter function that can be used in the incrementing and up/down mode. Using this function together with the input interrupts enables zone comparison control or target value control irrelevant of the cycle time. Incrementing mode Item Input p no. 00000 00001 00002 Up/Down mode Input method Count input --Reset input Single-phase input A-phase input B-phase input Z-phase input Phase-difference, 4! inputs Count frequency 5.0 kHz 2.5 kHz Count range 0 to 65535 --32767 to 32767 Note: When using in the incrementing mode, the input 00001 can be used as an input contact. Count input 00000 00001 00002 Reset input Solenoid Sensor Rotary encoder Inverter, etc. 17 Functions Interval Timer Interrupts The CPM1A has one interval timer. The interval timer shuts down the regular program irrelevant of the point in the cycle once the time is up, and immediately executes an interrupt processing program. Interval timers are used in the following two modes. One-shot mode Item Scheduled interrupt mode Operation An interrupt is executed only once when the time is up. Interrupts are executed repeatedly at fixed periods. Setting time 0.5 ms to 319,968 ms (0.1-ms units) Application Example: Normal program Computing the Sheet Speed The number of pulse inputs is computed in the interrupt mode at a fixed time to calculate the speed. Interval timer MOV(21) ADD(30) CPM1A Interrupt processing program Encoder SBN(92) 00 MOV(21) RET(93) END(01) Analog Setting The CPM1A contains two analog setting controls that can be used for a broad range of analog timer and counter settings. Turning the setting control stores values of 0 to 200 (BCD data) in the SR area. Storage area Analog setting Analog setting 0 Analog setting 1 Analog setting 0 Analog setting 1 *Phillips screwdriver is required. Setting value (BCD) 0000 to 0200 SR 250 SR 251 Application Example: Tact Operation Control of Conveyor Lines A conveyor can be stopped temporarily as required for assembly processes. When the timer function and limit switches are used in a combination, conveyors can be stopped for a fixed time or can be run at a constant speed for a fixed distance. Fine adjustment of the stopping time can be easily done by using the analog setting controls. CPM1A LS Motor 18 Functions Program Example 1. Analog timer for 0.0 to 20.0 seconds 2. A Analog timer for 0.0 to 60.0 seconds 25313(ON) TIM 000 250 BCD multiplication MUL(32) Value of the analog setting 0 (0 to 200) Triples the above value 250 #0003 DM0500 Value of the analog setting 0 (0 to 200) Multiplication result (0 to 600) B TIM 001 DM 0500 Pulse Output Function The CPM1A with transistor output has a function that is capable of outputting a pulse of up to 2 kHz. Program Example 1 scan turns ON. When used in combination with a Stepping Driver or Servodriver, positioning can be easily performed. 25315 MOV(21) #5000 DM 0000 Application Example MOV(21) #0002 DM 0001 Changing the speed of the Stepping Motor. Sets the number of output pulses as 25,000 (times) in the data memory area. DM 0001 0 0 0 DM 0000 2 5 0 0 MOV(21) #0200 DM 0100 Sets the initial frequency to 2,000 pulses/second. PULS(65) 000 000 DM 0000 Pulse rate setting 0 25315 Output point 01000 or 01001 1 scan turns ON. 00200 15000 Stepping Motor Driver @SPED(64) 000 000 DM 0100 Speed change limit switch 00001 MOV(21) #0020 DM 0100 Stepping Motor Pulse rate (BCD 8 digits) Frequency conversion: Output port (output point 01000) Output mode (single) Frequency data (x 10 Hz) Changes to 200 Hz when the limit switch is turned ON. 25,000 pulses Output 1 kHZ frequency 15000 200 Hz Pulse rate 00000 turns ON 0001 turns ON (limit switch) 19 Functions Communications Host Link Communications CPM1A host link communications consist of interactive procedures whereby the CPM1A returns a response to a command sent from the IBM PC/AT or compatible computer. These communications allow the IBM PC/AT or compatible computer to read and write in the CPM1A’s I/O Areas and Data Memory Areas as well as in areas containing the status of various settings. Response Command 1:1 Host Link Communications RS-232C Adapter CPM1A CPU Response Link Adapter 3G2A9-AL004-E Command 1:n Host Link Communications RS-422 Adapter 20 CPM1A CPU RS-422 Adapter CPM1A CPU RS-422 Adapter CPM1A CPU Functions 1:1 Links With a 1:1 link, two CPM1As or a CPM1A and CQM1 or C200Hj are connected 1:1 with one side as the Master and the other as the Slave to provide an I/O link of a maximum of 256 points (LR 0000 to LR 1515). Example of a 1:1 Link between CPM1As RS-232C Cable RS-232C Adapter RS-232C Adapter CPM1A CPU CPM1A CPU Master Slave Link bits Link bits LR 00 LR 00 WRITE READ area WRITE area LR 07 LR 08 LR 07 LR 08 WRITE area READ area READ READ WRITE LR 15 LR 15 Limitations of the CPM1A 1:1 Link CPM1A I/O links are limited to 16 words (LR 00 to LR 15). Therefore, use these 16 words (LR 00 to LR 15) on the CQM1 or C200Hj side when forming 1:1 links with a CQM1 or C200Hj. NT Links High-speed communications can be achieved by providing a direct access through the use of the NT Link between the CPM1A and Programmable Terminal. Programmable Terminal RS-232C Adapter RS-232C Cable CPM1A CPU 21 Programming Instructions Summary of Programming Instructions Sequence Output Instructions Function Code Chart Table symbols f Code Details Key operations for specifying programming instructions Allocated to instruction keys on the Programming Console. These need not be specified with function codes. Special instructions specified with function codes. --- Code FUN WRITE Differentiated Instructions Differentiated instructions can sometimes be used for CPM1A special instructions. Instructions marked with (@) in the mnemonics can also be used as differentiated instructions. Here the input rise time (shift from OFF to ON) is used to execute the instruction in just one cycle. To specify an instruction, press the NOT Key after the function code. Example: Specifying the @MOV (21) instruction FUN 2 1 NOT WRITE Instruction Mnemonic Code OUTPUT OUT f Outputs the result of logic to a bit. OUT NOT OUT NOT f Reverses and outputs the result of logic to a bit. SET SET f Force sets (ON) a bit. RESET RSET f Force resets (OFF) a bit. KEEP KEEP 11 Maintains the status of the designated bit. DIFFERENTIATE UP DIFU 13 Turns ON a bit for one cycle when the execution condition goes from OFF to ON. DIFFERENTIATE DOWN DIFD 14 Turns ON a bit for one cycle when the execution condition goes from ON to OFF. Note: f: Instruction keys allocated to the Programming Console. Sequence Control Instructions Instruction Mnemonic Code NO OPERATION NOP 00 --- END END 01 Required at the end of the program. INTERLOCK IL 02 If the execution condition for IL(02) is OFF, all outputs are turned OFF and all timer PVs reset between IL(02) and the next ILC(03). INTERLOCK CLEAR ILC 03 ILC(03) indicates the end of an interlock (beginning at IL(02)). JUMP JMP 04 If the execution condition for JMP(04) is ON, all instructions between JMP(04) and JME(05) are treated as NOP(00). JUMP END JME 05 JME(05) indicates the end of a jump (beginning at JMP(04)). Sequence Instructions Sequence Input Instructions Function Function Function Instruction Mnemonic Code LOAD LD f Connects an NO condition to the left bus bar. LOAD NOT LD NOT f Connects an NC condition to the left bus bar. AND AND f Connects an NO condition in series with the previous condition. AND NOT AND NOT f Connects an NC condition in series with the previous condition. OR OR f Connects an NO condition in parallel with the previous condition. OR NOT OR NOT f Connects an NC condition in parallel with the previous condition. Instruction Mnemonic Code TIMER TIM f An ON-delay (decrementing) timer. COUNTER CNT f A decrementing counter. REVERSIBLE COUNTER CNTR 12 Increases or decreases PV by one. HIGHSPEED TIMER TIMH 15 A high-speed, ON-delay (decrementing) timer. AND LOAD AND LD f Connects two instruction blocks in series. OR LOAD OR LD f Connects two instruction blocks in parallel. Note: f: Instruction keys allocated to the Programming Console. Timer/Counter Instructions Function Note: f: Instruction keys allocated to the Programming Console. 22 Programming Instructions Step Instructions Instruction Mnemonic Code STEP DEFINE STEP 08 STEP START SNXT 09 Data Conversion Instructions Function Defines the start of a new step and resets the previous step when used with a control bit. Defines the end of step execution when used without a control bit. Starts the execution of the step when used with a control bit. Increment/Decrement Instructions Instruction Mnemonic Code INCREMENT (@)INC 38 Increments the BCD content of the specified word by 1. DECREMENT (@)DEC 39 Decrements the BCD content of the specified word by 1. Instruction Mnemonic Code BCD TO BINARY (@)BIN 23 Converts 4-digit BCD data to 4-digit binary data. BINARY TO BCD (@)BCD 24 Converts 4-digit binary data to 4-digit BCD data. 4 TO 16 DECODER (@)MLPX 76 Takes the hexadecimal value of the specified digit(s) in a word and turns ON the corresponding bit in a word(s). 16 TO 4 DECODER (@)DMPX 77 Identifies the highest ON bit in the specified word(s) and moves the hexadecimal value(s) corresponding to its location to the specified digit(s) in a word. ASCII CODE CONVERT (@)ASC 86 Converts the designated digit(s) of a word into the equivalent 8-bit ASCII code. Function BCD/Binary Calculation Instructions Instruction Mnemonic Code Function BCD ADD (@)ADD 30 Adds the content of a word (or a constant). BCD SUBTRACT (@)SUB 31 Subtracts the content of a word (or constant) and CY from the content of a word (or constant). BCD MULTIPLY (@)MUL 32 Multiplies the contents of two words (or constants). BCD DIVIDE (@)DIV 33 Divides the content of a word (or constant) by the content of a word (or constant). BINARY ADD (@)ADB 50 Adds the contents of two words (or constants) and CY. BINARY SUBTRACT (@)SBB 51 Subtracts the content of a word (or constant) and CY from the content of a word (or constant). BINARY MULTIPLY (@)MLB 52 Multiplies the contents of two words (or constants). BINARY DIVIDE (@)DVB 53 Divides the content of a word (or constant) by the content of a word and obtains the result and remainder. DOUBLE BCD ADD (@)ADDL 54 Add the 8-digit BCD contents of two pairs of words (or constants) and CY. DOUBLE BCD SUBTRACT (@)SUBL 55 Subtracts the 8-digit BCD contents of a pair of words (or constants) and CY from the 8-digit BCD contents of a pair of words (or constants). DOUBLE BCD MULTIPLY (@)MULL 56 Multiplies the 8-digit BCD contents of two pairs of words (or constants). DOUBLE BCD DIVIDE (@)DIVL 57 Divides the 8-digit BCD contents of a pair of words (or constants) by the 8-digit BCD contents of a pair of words (or constants). Function Data Comparison Instructions Instruction Mnemonic Code COMPARE CMP 20 Compares two four-digit hexadecimal values. Function DOUBLE COMPARE CMPL 60 Compares two eight-digit hexadecimal values. BLOCK COMPARE (@)BCMP 68 Judges whether the value of a word is within 16 ranges (defined by lower and upper limits). TABLE COMPARE (@)TCMP 85 Compares the value of a word to 16 consecutive words. 23 Programming Instructions Data Movement Instructions Instruction Mnemonic Code MOVE (@)MOV MOVE NOT (@)MVN Shift Instructions Function Instruction Mnemonic Code Function 21 Copies a constant or the content of a word to a word. SHIFT REGISTER SFT f/10 22 Copies the complement of a constant or the content of a word to a word. Copies the specified bit (0 or 1) into the rightmost bit of a shift register and shifts the other bits one bit to the left. WORD SHIFT (@)WSFT 16 Creates a multiple-word shift register that shifts data to the left in one-word units. ASYNCHRONOUS SHIFT REGISTER (@)ASFT 17 Creates a shift register that exchanges the contents of adjacent words when one is zero and the other is not. ARITHMETIC SHIFT LEFT (@)ASL 25 Shifts a 0 into bit 00 of the specified word and shifts the other bits one bit to the left. BLOCK TRANSFER (@)XFER BLOCK SET (@)BSET 71 Copies the content of a word to a block of consecutive words. DATA EXCHANGE (@)XCHG 73 Exchanges the content of two words. SINGLE WORD DISTRIBUTE (@)DIST 80 Copies the content of a word to a word (whose address is determined by adding an offset to a word address). ARITHMETIC SHIFT RIGHT (@)ASR 26 Shifts a 0 into bit 15 of the specified word and shifts the other bits one bit to the right. DATA COLLECT (@)COLL 81 Copies the content of a word (whose address is determined by adding an offset to a word address) to a word. ROTATE LEFT (@)ROL 27 MOVE BIT (@)MOVB 82 Copies the specified bit from one word to the specified bit of a word. Moves the content of CY into bit 00 of the specified word, shifts the other bits one bit to the left, and moves bit 15 to CY. ROTATE RIGHT (@)ROR 28 Moves the content of CY into bit 15 of the specified word, shifts the other bits one bit to the right, and moves bit 00 to CY. ONE DIGIT SHIFT LEFT (@)SLD 74 Shifts a 0 into the rightmost digit (4-bit unit) of the shift register and shifts the other digits one digit to the left. ONE DIGIT SHIFT RIGHT (@)SRD 75 Shifts a 0 into the leftmost digit (4-bit unit) of the shift register and shifts the other digits one digit to the right. REVERSIBLE SHIFT REGISTER (@)SFTR 84 Creates a single or multipleword shift register that can shift data to the left or right. MOVE DIGIT (@)MOVD 70 83 Copies the content of a block of up to 1,000 consecutive words to a block of consecutive words. Copies the specified digits (4-bit units) from a word to the specified digits of a word. Logic Instructions Instruction Mnemonic Code COMPLEMENT (@)COM 29 Turns OFF all ON bits and turns ON all OFF bits in the specified word. LOGICAL AND (@)ANDW 34 Logically ANDs the corresponding bits of two words (or constants). LOGICAL OR (@)ORW 35 Logically ORs the corresponding bits of two words (or constants). EXCLUSIVE OR (@)XORW 36 Exclusively ORs the corresponding bits of two words (or constants). EXCLUSIVE NOR (@)XNRW 37 Exclusively NORs the corresponding bits of two words (or constants). 24 Function Note: f: Instruction keys allocated to the Programming Console. Special Calculation Instruction Instruction Mnemonic Code BIT COUNTER (@)BCNT 67 Function Counts the total number of bits that are ON in the specified block of words. Programming Instructions Pulse Output Control Instructions Subroutine Instructions Instruction Mnemonic Code Function SUBROUTINE ENTER (@)SBS 91 Executes a subroutine in the main program. SUBROUTINE ENTRY SBN 92 Marks the beginning of a subroutine program. SUBROUTINE RETURN RET 93 Marks the end of a subroutine program. MACRO MCRO 99 Calls and executes the specified subroutine, substituting the specified input and output words for the input and output words in the subroutine. Interrupt Control Instructions Instruction Mnemonic Code INTERVAL TIMER (@)STIM 69 Controls interval timers used to perform scheduled interrupts. Function INTERRUPT CONTROL (@)INT 89 Performs interrupt control, such as masking and unmasking the interrupt bits for I/O interrupts. Peripheral Device Control Instructions I/O Unit Instructions Instruction Mnemonic Code 7-SEGMENT DECODER (@)SDEC 78 Converts the designated digit(s) of a word into an 8-bit, 7-segment display code. I/O REFRESH (@)IORF 97 Refreshes the specified I/O word. Instruction Mnemonic Code Function SPEED OUTPUT (@)SPED 64 Outputs pulses at the specified frequency. The output frequency can be changed while the pulses are being output. SET PULSES (@)PULS 65 Outputs the specified number of pulses at the specified frequency. The pulse output cannot be stopped until the specified number of pulses have been output. Damage Diagnosis Instructions Instruction Mnemonic Code FAILURE ALARM (@)FAL 06 Generates a non-fatal error when executed. The Error/ Alarm indicator flashes and the CPU continues operating. Function SEVERE FAILURE ALARM FALS 07 Generates a fatal error when executed. The Error/Alarm indicator lights and the CPU stops operating. Special System Instructions Instruction Mnemonic Code SET CARRY (@)STC 40 Sets Carry Flag 25504 to 1. Function CLEAR CARRY (@)CLC 41 Sets Carry Flag 25504 to 0. Function Display Instruction Instruction Mnemonic Code MESSAGE (@)MSG 46 Function Reads up to 8 words of ASCII code (16 characters) from memory and displays the message on the Programming Console or other Peripheral Device. High-speed Counter Control Instructions Instruction Mnemonic Code MODE CONTROL (@)INI 61 Starts and stops counter operation, compares and changes counter PVs, and stops pulse output. Function PV READ (@)PRV 62 Reads counter PVs and status data. COMPARE TABLE LOAD (@)CTBL 63 Compares counter PVs and generates a direct table or starts operation. 25 Peripheral Devices CX-Programmer: WS02-CXPC1-E (for Windows 95/98/NT) IBM PC/AT or compatible CPM1A CPU SYSMAC Support Software: C500-ZL3AT1-E (for MS-DOS) Peripheral Device Connecting Cable CQM1-CIF02 Programming Console Connecting Cable Programming Console Programming Console (With Connecting Cable) C200H-CN222/CN422 (2 m/4 m) C200H-PRO27-E 26 CQM1-PRO01-E Standard Models CPU Units Name 10-point p I/O / Power supply Output method AC p power supply pp y Relay output Transistor output (sink type) Transistor output (source type) Relay output DC power supply 20-point p I/O / AC p power supply pp y DC power supply 30-point p I/O / AC p power supply pp y DC power supply 40-point p I/O / AC p power supply pp y DC power supply Transistor output (sink type) Transistor output (source type) Relay output Transistor output (sink type) Transistor output (source type) Relay output Transistor output (sink type) Transistor output (source type) Relay output Transistor output (sink type) Transistor output (source type) Relay output Transistor output (sink type) Transistor output (source type) Relay output Transistor output (sink type) Transistor output (source type) Relay output Input points 6 points p Output points 4 points p Model Standards CPM1A-10CDR-A CPM1A-10CDT-A U, C, N, L U, C CPM1A-10CDT1-A U, C CPM1A-10CDR-D U, C, N, L, CE (see note) U, C, CE CPM1A-10CDT-D CPM1A-10CDT1-D 12 points p 8 points p CPM1A-20CDR-A CPM1A-20CDT-A U, C, N, L U, C CPM1A-20CDT1-A U, C CPM1A-20CDR-D U, C, N, L, CE (see note) U, C, CE CPM1A-20CDT-D CPM1A-20CDT1-D 18 points p 12 points p CPM1A-30CDR-A CPM1A-30CDT-A U, C, N, L U, C CPM1A-30CDT1-A U, C CPM1A-30CDR-D U, C, N, L, CE (see note) U, C, CE CPM1A-30CDT-D CPM1A-30CDT1-D 24 points p 16 points p Transistor output (sink type) Transistor output (source type) CPM1A-40CDR-A CPM1A-40CDT-A U, C, N, L U, C CPM1A-40CDT1-A U, C CPM1A-40CDR-D U, C, N, L, CE (see note) U, C, CE CPM1A-40CDT-D CPM1A-40CDT1-D Note: EC Directives only apply if the voltage for the output load power supply lies outside the range specified in the Low Voltage Directive (i.e., less than 75 VDC or less than 50 VAC). ! U: UL, C: CSA, N: NK, L: Lloyd, CE: EC Directives Please contact OMRON representative for application conditions. 27 Standard Models Expansion Units Expansion Unit Max. number of Units Expansion p I/O / 3 Units U i Units max. (See note.) Analog I/O Unit CompoBus/S I/O Link Unit 3 Units max. (See note.) 3 Units max. (See note.) Output type Inputs Outputs Model Standards Relay Transistor (sinking) Transistor (sourcing) --- 12 8 8 --- CPM1A-20EDR1 U, C, CE CPM1A-20EDT U, C, CE CPM1A-20EDT1 U, C, CE U, C, CE CPM1A-8ED Relay --- 8 CPM1A-8ER U, C, CE Transistor (sinking) Transistor (sourcing) Analog --- 8 CPM1A 8ET CPM1A-8ET CPM1A-8ET1 2 1 U, C, CE U, C, L, CE U, C, CE CPM1A-MAD01 --- I/O Link of 8 input bits and 8 output bits U, C, CE CPM1A-SRT21 Note: Only one Expansion Unit can be connected if an NT-AL001 Adapter is connected to the CPU Unit’s RS-232C port. Temperature Sensor Units Unit Temperature Sensor Units Output type Model Standards 2 thermocouple inputs CPM1A-TS001 U, C, CE 4 thermocouple inputs CPM1A-TS002 U, C, CE 2 platinum resistance thermometer inputs CPM1A-TS101 U, C, CE 4 platinum resistance thermometer inputs CPM1A-TS102 U, C, CE RS-232C Adapter, RS-422 Adapter, Connecting Cable, Link Adapter Name RS-232C Adapter Function Converts peripheral port levels. RS-422 Adapter Connecting Cable Link Adapter 28 Model CPM1-CIF01 Standards N, L, CE CPM1-CIF11 3.3-m cable used to connect IBM PC/AT CQM1-CIF02 or compatible personal computers. Converts RS-232C and RS-422 levels. 3G2A9-AL004-E ! U: UL, C: CSA, N: NK, L: Lloyd, CE: EC Directives Please contact OMRON representative for application conditions. U, C, N, L, CE --- Standard Models Programming Console Name Programming g g Console Function With a 2-m cable --2-m Connecting Cable for C200H-PRO27-E 4-m Connecting Cable for C200H-PRO27-E Model Standards CQM1-PRO01-E C200H-PRO27-E C200H-CN222 U, C, N, CE U, C, N, CE --- C200H-CN422 --- Programming Software Name Operating system Operating environment Model CX-Programmer (1 licence) Windows 95/98 or Windows NT Used in IBM PC/AT or compatible personal computers (Pentium) WS02-CXPC1-E SYSMAC Support Software MS-DOS Ver. 5.0 or later Used in IBM PC/AT or compatible personal computers (i386/i486/Pentium) C500-ZL3AT1-E Backup Accessories Name Model Standards Expansion Memory Unit CPM1-EMU01-V1 --- 256-K EEPROM for Expansion Memory Unit EEROM-JD --- Power Supply Unit Unit AC Power Supply Unit Input Output 100 to 240 VAC 600 mA at 24 VDC Model CPM2C-PA201 ! U: UL, C: CSA, N: NK, L: Lloyd, CE: EC Directives Please contact OMRON representative for application conditions. Standards CE 29 Expansion Memory Unit Expansion Memory Unit The Expansion Memory Unit allows programs to be uploaded and downloaded between PC and EEPROM with the press of a button. It is a useful device for program maintenance and correction. Connection Configuration CPM2A CPM1A CPM1 SRM1 CQM1 CPM1-EMU01-V1 CS1W-CN114 CPM2C CQM1H CPM2C-CN111 can also be used. Specifications Item Specifications Supported PCs CPM1, CPM1A, CPM2A, CPM2C, SRM1 (-V2), CQM1, CQM1H Read/Write memory areas User program: 15.2 Kwords max. Data memory: DM 6144 to DM 6655 (Read-only DM and PC Setup) Expansion instructions: 18 instructions Connector compatible with CPM1, CPM1A, CPM2A, SRM1 (-V2), and CQM1 PCs. Connector For CPM2C and CQM1H PCs, connect via CS1W-CN114 or CPM2C-CN111 Connecting Cable. EEPROM (sold separately) 256-Kbit EEPROM ATMEL: OMRON: Current consumption 129 mA max. Dimensions Main body (not including cables or connectors): 57 ! 92 ! 38 mm (W ! H ! D) 200 g max. (not including EEPROM) Weight 30 AT28C256 EEROM-JD Expansion Memory Unit Dimensions unit: mm Memory Areas The memory areas that are uploaded or downloaded vary with the button used as shown in the following table. Memory y area UPLOAD + DM Read from PC to EEPROM. Ladder program and expansion instructions DM 6144 to 6655 Button UPLOAD Read from PC to EEPROM. DOWNLOAD All contents of EEPROM written o PC. C to Not affected. Note: For details on program size, DM area, and the availability of expansion instructions, refer to the relevant PC manual. 31