HITACHI PROGRAMMABLE CONTROLLER APPLICATION MANUAL NJI-350B (X)
WARNING To ensure that the equipment described by this manual. As well as all equipment connected to and used with it, operate satisfactorily and safely, all applicable local and national codes that apply to installing and operating the equipment must be followed. Since codes can vary geographically and can change with time, it is the user’s responsibility to determine which standard and codes apply, and to comply with them.
LIMITED WARRANTY AND IMITATION OF LIABILITY Hitachi, Ltd. (Hitachi) warrants to the original purchaser that the programmable controller (PLC) manufactured by Hitachi is free from defects in material and workmanship under normal use and service.
Copyright 2000 by Hitachi Industrial Equipment Systems Co., Ltd. All Rights reserved - Printed in Japan The information and/or drawings set forth in this document and all rights in and to inventions disclosed herein and patents which might be granted thereon disclosing or employing and the materials, techniques or apparatus described herein are the exclusive property of Hitachi, Ltd. No copies of the information or drawings shall be made without the prior consent of Hitachi, Ltd. Hitachi, Ltd.
Safety Precautions Read this manual and attached documents thoroughly before installing and operating this unit, and performing maintenance or inspection of this unit in order to use the unit correctly. Be sure to use this unit after acquiring adequate knowledge of the unit, all safety information, and all precautionary information. Also, be sure to deliver this manual to the person in charge of maintenance. Safety caution items are classified as “Danger” and “Caution” in this document.
2. Wiring REQUIRED • Always perform grounding (FE terminal). If grounding is not performed, there is a risk of an electric shock or malfunction. CAUTION • Connect a power supply that meets the rating. If a power supply that does not meet the rating is connected, it may result in a fire. • Any wiring operation should only be performed by a qualified technician. If wiring is performed incorrectly, it may result in a fire, failure, or electric shock. 3.
4. Maintenance DANGER • Never connect the and of the battery in reverse. Also, never charge, disassemble, heat, place in fire, or short circuit the battery. There is a risk of an explosion or fire. PROHIBITED • Never disassemble or modify the unit. These actions may result in a fire, malfunction, or failure. CAUTION • Be sure to turn off the power supply before removing or attaching the module/unit. Otherwise, it may result in an electric shock, malfunction, or failure.
Revision History No. 1 Description of Revision Appendix-1 Instruction Support Date of Revision Manual Number 2000/11 NJI-350 (X) 2000/12 NJI-350A (X) 2003/10 NJI-350B (X) FUN92 to 96 of H-4010 { -> ×. Appendix-2 Task code H28 Corrected explanation of Timer counter number. 2 Postscript of battery error detection. (3.2 chapters item number 26, 15 chapters (4) ) Correct a description of digital filter . (8.7 chapters) Addition of appendix 3. 3 28 points expansion units added.
Table of Contents Chapter 1 Features ..................................................................................................................................... 1-1 to 1-2 Chapter 2 System Overview....................................................................................................................... 2-1 to 2-2 Chapter 3 Function and Performance Specifications ............................................................................... 3-1 to 3-14 3.1 3.2 3.
Chapter 7 Programming............................................................................................................................. 7-1 to 7-8 7.1 7.2 7.3 7.4 Chapter 8 High speed counter, PWM/Pulse train output and Analogue I/O............................................ 8-1 to 8-22 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 8.10 8.11 Chapter 9 Memory Size and Memory Assignment ................................................................................... 7-1 Programming Devices.....
Chapter 10 PLC Installation, Mounting, Wiring...................................................................................... 10-1 to 10-8 10.1 10.2 Chapter 11 Communication Specifications............................................................................................ 11-1 to 11-10 11.1 11.2 11.3 11.4 11.5 11.6 Chapter 12 Port function .......................................................................................................................... 11-1 Port 1................
MEMO
Chapter 1 Features Chapter 1 Features 1. Multifunctional all-in-one type PLC The MICRO-EH is a multifunctional all-in-one type PLC that contains all necessary parts—a power supply and CPU parts as well as I/O units--within one unit. Three sizes of PLCs are available: 10, 14, and 28 points. A type with 23 points plus three points of analog I/O having the same size as the 28-point PLC is also available.
Chapter 1 Features MEMO 1-2
Chapter 2 System Overview Chapter 2 System Overview This chapter describes the system configuration of the MICRO-EH. The MICRO-EH is an all-in-one type programmable controller, and has the following system configuration. 1] Basic unit Figure 2.1 10-point type system configuration diagram 1] Basic unit 2] Expansion unit 3] Expansion cable 2] Expansion unit 3] Expansion cable 2] Expansion unit 3] Expansion cable 3] Expansion cable Figure 2.
Chapter 2 System Overview [1] Basic unit [2] Expansion unit [3] Expansion cable [2] Expansion unit [3] Expansion cable [2] Expansion unit [3] Expansion cable [2] Expansion unit [3] Expansion cable Figure 2.3 23,28-point type system configuration diagram No restriction for combination of 14,23,28 points, and basic/expansion unit. 14 points basic unit can handle any type of expansion units, and 23/28 points basic unit as well. No.
Chapter 3 Function and Performance Specifications Chapter 3 3.1 Function and Performance Specifications General Specifications Item Power supply type Power voltage Specification AC 100/110/120 V AC (50/60 Hz), 200/220/240 V AC (50/60 Hz) 85 to 264 V AC wide range DC 24 V DC Power voltage fluctuation 19.2 to 30 V DC range Current consumption Please refer to 4.7, “Weights and Power Consumption.” Allowable momentary power 85 to 100 V AC: For a momentary power 19.
Chapter 3 Function and Performance Specifications 3.2 Function Specifications The functions available in the MICRO-EH are described in the table below. No. 1 2 3 4 Item Basic functions Description The following functions can be executed when constructing a system using the PLC. 1] An input signal is received from the control object, operations are performed according to the contents of the program created by the user and the results are output as an output signal.
Chapter 3 Function and Performance Specifications No. 5 6 7 8 Item Control method Description With the PLC, the user programs are converted in batch at operation startup, and the programs after conversion will be executed in order as they are read one by one. 1] The method used for data I/O is that after the I/O data (information) is scanned (execution from the head of the program to the end), it is updated in group.
Chapter 3 Function and Performance Specifications No. 9 10 11 12 13 14 15 16 17 18 19 Item Forced set/reset Description Forced set and forced reset of the designated I/O can be performed from the programming unit connected to the CPU module. Forced output Output can be forced with respect to the designated I/O number from the programming unit connected to the CPU module. For I/O that is not designated, outputs are shut off. 23-point and 28-point types have the calendar clock function.
Chapter 3 Function and Performance Specifications No. 20 Item Interrupt input 21 PWM output 22 Pulse train output 23 Analogue input 24 Analogue output 25 Potentiometer 26 Battery Note: Description The external input of the basic unit can be specified for interrupt input. With the interrupt input, the corresponding interrupt program can be executed. The external output of the basic unit can be specified for pulse width modulated output.
Chapter 3 Function and Performance Specifications 3.3 Performance Specifications 3.3.1 Calculation Specifications The calculation specifications of the PLC are described below.
Chapter 3 Function and Performance Specifications 3.3.2 Input Specifications The input circuit consists of DC input and AC input, with the following specifications. (1) DC input Specification 24 V DC 0 to 30 V DC Approx. 2.8 kΩ 7.5 mA typical 15 V DC (min) / 4.5 mA (max) 5 V DC (max) / 1.5 mA (max) Basic unit : 0.5 to 20 ms (configurable) Exp. unit : 0.5 ms or less Basic unit : 0.5 to 20 ms (configurable) ON → OFF Exp. unit : 0.
Chapter 3 Function and Performance Specifications 3.3.3 Output Specifications (1) DC output (Y100 of EH-*23DRP/A23DRT/*28DRP/*28DRT) Item Type Specification EH-A23DRT Y100 output specifications EH-*28DRT EH-*28DRP Transistor output Transistor output (sink type) (source type) 24 / 12 / 5 V DC 24 V DC +20 %, -80 % Minimum switching current Leak current Maximum 1 mA 0.
Chapter 3 Function and Performance Specifications (2) DC output: LCDC-Low Current (All points of EH-D10DT/DTP, Y102-Y105 of EH-D14DT/DTP, Y102-Y109 of EH-D28DT/DTP, Y*018-Y*021 of EH-D14EDT/D14EDTP) Circuit diagram Item Specification Output specification Rated load voltage 1 mA Leak current 0.1 mA (max) 0.75 A 24 V DC 0.5 A 12 V DC 1 common 3A 0.1 ms (max) 24 V DC 0.2A 0.1 ms (max) 24 V DC 0.2A Number of output points See Chapter 4. Number of common See Chapter 4.
Chapter 3 Function and Performance Specifications (4) DC output (ESCP type): HCDC-High Current (Y100,Y101 of EH-D14DTPS, Y100-Y103 of D28DTPS) Y*016,Y*017 of EH-EDTPS, Y*016-Y*019 of EH-D28EDTPS) Item Output specification Rated load voltage Minimum switching current Leak current Maximum load current 24/12 V DC (+10 %, -15 %) 10 mA 0.1 mA (max) 1 circuit 1A 1 common 3A 0.05 ms (max) 24 V DC 0.2A See Chapter 4. Number of common See Chapter 4.
Chapter 3 Function and Performance Specifications (6) Relay output Specification 5 to 250 V AC, 5 to 30 V DC 1 mA 2 A (24 V DC, 240 V AC) 5A 15 ms (max) 15 ms (max) See Chapter 4. See Chapter 4.
Chapter 3 Function and Performance Specifications 3.3.4 High-Speed Counter Specifications Available input Input voltage Single phase X0, X2, X4, X6 Two phase X0 and X2 in pair 15 V 5V Count pulse width 100 µs Maximum count frequency 10 kHz each channel Count register 16 bits Coincidence output Allowed On/Off-preset Allowed Upper/lower limit setting Not allowed Preload/strobe Allowed Since 10 points type does not have input X6, counter channel is up to 3 ch. 3.3.
Chapter 3 Function and Performance Specifications Circuit diagram (23 points type) Circuit diagram (Analog expansion unit) IN2JP IN4JP IN2+ IN4+ IN2IN1JP IN4IN1JP IN1+ IN1+ Voltage Voltage IN1- 3.3.7 Internal circuit Current Internal circuit Current IN1- Analogue Output Specifications Module type Output channel 23 points type module WY40 Analog exp. unit WY u06, WY u07 (u : unit number) 0-10V (10.24V max.) 0-10V (10.24V max.) 0-20mA (20.48mA max.) 0-20mA (20.48mA max.) 4-20mA (20.
Chapter 3 Function and Performance Specifications 3.3.8 Potentiometer Analogue Input Specifications Number of potentiometer inputs Stored in Input range Resolution Input filter 3.3.9 2 Ch.1 : WRF03E, Ch.2 WRF03F 0-1023 (H0-H3FF) 10 bits By user settings Interrupt Input Specifications Input that can be used Input voltage ON OFF X1, X3, X5, X7 (by user settings) 15 V 5V 3.3.10 Backup (1) Battery Data memory (retentive area) can be kept by EH-MBAT battery as below.
Chapter 3 Function and Performance Specifications 3.3.12 Clock Function 23-point and 28-point types have calendar function. This can be operated either by internal output area or task code. * 10-point and 14-point types do not have this function. (1) Reading the clock data By turning on the read request (R7F8), the clock data is read out in the reading value area (WRF01B to WRF01F).
Chapter 3 Function and Performance Specifications 3.3.13 Power Supply for Sensor The 24 V terminal at the input terminal part can supply current to external equipment (not for all units). If this terminal is used as the power supply for the input part of this unit, the remaining can be used as power supply for the sensors. The following current (I) can be supplied as power supply for the sensors. (1) EH-*14*** (14-point type basic unit) EH-*14E*** (14-point type extension unit) I = 350 mA – (7.
Chapter 4 Product lineup and wiring Chapter 4 4.1 Product lineup and wiring Product lineup (1) Basic units Table 4.
Chapter 4 Product lineup and wiring (2) Peripheral Units Table 4.2 List of peripheral units Specification Ladder diagram/Instruction language editor LADDER EDITOR (for GPCL) Ladder diagram/Instruction language editor LADDER EDITOR (for PC98 series) with CPU connection cable HL-AT3E Ladder diagram/Instruction language editor LADDER EDITOR (for PC/AT compatible personal computer) HLW-PC3 Ladder diagram/Instruction language editor LADDER EDITOR (for Windows® 95/NT 4.
Chapter 4 Product lineup and wiring 4.2 10-Point Basic Unit Name and function of each part Type EH-D10DT, EH-D10DTP, EHD10DR 6] Input terminals 5] RUN input 9] Mounting hole 1] POW LED 2] OK LED 3] RUN LED 4] Serial port 7] Output terminals 8] Power terminal No.
Chapter 4 Product lineup and wiring 4.3 14-Point Basic Unit Name and function of each part Type 10] Terminal cover EH-*14*** 5] Input terminals 1] POW LED 2] OK LED 3] RUN LED 8] Expansion connector cover 11] Mounting hole 9] DIP SW cover 6] Output terminals 12] DIN rail installation clip 4] Serial port cover 7] Power terminal No.
Chapter 4 Product lineup and wiring 4.4 23-Point and 28-Point Basic Unit Name and function of each part Type 10] Terminal cover EH-*23*** EH-*28*** 5] Input terminals 13] RS-485 port cover 1] POW LED 2] OK LED 3] RUN LED 11] Mounting hole 8] Expansion connector cover 9] DIP SW cover 4] Serial port cover 6] Output terminals 12] DIN rail installation clip 7] Power terminal No.
Chapter 4 Product lineup and wiring 4.5 Expansion Unit Name and function of each part Type 9] Terminal cover EH-*14ED** (same dimension as 14 pts. basic unit) EH-*28ED** (same dimension as 28 pts. basic unit) EH-*6EAN (same dimension as 14 pts. basic unit) 4] Input terminals 1] POW LED 2] OK LED 10] Mounting hole 7] Expansion connector cover (right side) 8] Dummy cover 3] Expansion connector cover (left side) 5] Output terminals 11] DIN rail installation clip 6] Power terminal No.
Chapter 4 Product lineup and wiring 4.6 Terminal Layout and Wiring 10-point type EH-D10DT, EH-D10DTP * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply. Input power supply 24 V DC RUN NC 0 1 2 3 C0 4 5 In case of EH-D10DTP 24 V 0V 0 1 2 3 C0 V0 In case of EH-D10DT Power supply 24V DC Load power supply 12/24V DC EH-D10DR * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Chapter 4 Product lineup and wiring 14-point type EH-A14DR, EH-D14DR * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply. Input power supply 24V DC 24+ 0V 1 0 AC 3 2 0 AC 4 C0 1 C0 6 5 2 C1 C1 Input 7 4 3 C2 Output 5 Load power supply 24V DC, 100-240V AC AC power supply 100-240V AC 0V 24V DC power supply 24V DC EH-A14EDR, EH-D14EDR * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Chapter 4 Product lineup and wiring EH-A14AS Power supply for input 100-115V AC 24+ 0V 1 0 AC 3 2 NC AC 4 C0 1 0 6 5 2 C0 Input C1 7 4 3 C1 Output 5 Load power supply 100-240V AC Power supply 100-240V AC EH-D14DTP * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Chapter 4 Product lineup and wiring EH-D14EDTP * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply. 24+ 0V 1 0 0V 3 2 16 24V 4 C0 NC 17 6 5 19 18 C1 Input 7 21 20 C0 Output V0 Power supply 24V DC Load power supply 12/24V DC EH-D14EDT (The input wiring is the same as EH-D14EDTP.
Chapter 4 Product lineup and wiring 23-point type EH-A23DRP * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Chapter 4 Product lineup and wiring 28-point type EH-A28DRP * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply. Power supply for input 24V DC 24+ 0V 1 0 AC 3 4 2 0 C0 V0 5 2 C0 AC 1 Power supply 100-240V AC 6 8 7 4 3 9 C1 5 C1 C2 AC NC C0 2 Output 1 Power supply 100-240V AC EH-D28DRP (The input wiring is the same as EH-A28DRP.
Chapter 4 Product lineup and wiring EH-A28AS Power supply for input 100-115V AC NC NC 1 0 AC 3 2 NC C0 1 0 AC 4 6 5 2 C0 C1 C2 7 4 3 C2 C1 5 9 8 NC NC 11 C3 10 C2 C2 C3 7 12 C3 6 C3 Power supply 100-240V AC 13 15 Input 14 9 8 11 Output 10 Load power supply 100-240V AC EH-D28DTP * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Chapter 4 Product lineup and wiring EH-A28DR * Since the DC input is bidirectional, it is possible to reverse the polarity of the power supply.
Chapter 4 Product lineup and wiring Analog expansion unit EH-A6EAN (Example of voltage input and voltage output) Voltage input × 4 IN1+ IN1- IN2- IN1JP AC IN2JP IN2+ NC AC IN3+ IN3IO6 OC6 IN4- IN3JP OC7 VO6 IN4JP IN4+ VO7 IO7 Input and output can be configured as voltage or current independently.
Chapter 4 Product lineup and wiring 4.7 Weights and Power Consumption Type Weight (g) 100V AC Normal Rush - - Power consumption (A) 264V AC 24V DC Normal Rush Normal Rush EH-D10DT/DTP/DR 200 - - 0.12 0.6 EH-D14DT/DTP/DTPS 300 - - EH-A14DR 400 0.1 15 - - 0.16 0.6 0.06 40 - - EH-D14DR 300 - - - - 0.16 0.6 EH-A14AS 380 0.1 15 0.06 40 - - EH-A23DRP/DRT 600 0.2 15 0.06 40 - - EH-D23DRP 500 - - - - 0.2 0.6 0.6 EH-D28DT/DTP/DTPS 500 - - - - 0.
Chapter 4 Product lineup and wiring 4.8 Exterior Dimensions (1) 10-point type (Unit : mm) 70 80 4.4 65 8 47 75 (2) 14-point type, 14-point expansion unit, Analog expansion unit 80 90 4.8 85 76 95 8.4 (3) 23-point, 28-point types and 28-point expansion 80 90 4.8 140 76 150 4-17 8.
Chapter 4 Product lineup and wiring MEMO 4-18
Chapter 5 Instruction Specifications Chapter 5 5.1 Instruction Specifications Instruction Classifications The instructions used with the MICRO-EH are classified as shown in the following table. Table 5.
Chapter 5 Instruction Specifications The following lists the instructions. 1 Logical Indicates the operation start commencement of acontact operation. LDI Logical Indicates the negation commencement of boperation start contact operation. AND Logical AND Indicates a-contact series connection. 3 4 ANI Logical NAND Indicates b-contact series connection. 5 OR Indicates a-contact parallel connection. 6 ORI Logical NOR Indicates b-contact parallel connection. 7 NOT Logical NOT 8 9 Logical OR 0.
MPS Operation Stores the previous result push operation result. 16 MRD MRD Operation result read 17 MPP None Reads the stored operation result and continues operation. MPP Operation Reads the stored operation result pull result, continues operation and clears the stored result. ANB Logical Indicates serial connection None block serial between two logical blocks. connection 21 Indicates parallel connection between two logical blocks.
Chapter 5 Instruction Specifications 28 s1 == s2 s1 == AND (s1== s2) == [Word] WX, WY, WR, WM, Timer Counter [Double word] DX, DY, DR, DM R7F0 Process time (µ s) V C MICRO-EH z z z z z 27 Steps R7F1 DER ERR SD LD = Relational When s1 = s2: Continuity (s1== box When s1 ≠ s2: s2) Noncontinuity 5 6 7 8 35 Remarks *1 *2 Upper case: W Lower case: DW Constant s2 s1 I/O types used R7F2 Process descriptions R7F3 Instruction name R7F4 Ladder symbol Instruction symbol Basic instruction
32 s1 < s2 s1 < AND (s1< s2) < V C MICRO-EH z z z z z 26.8 Steps Process time (µ s) 5 6 7 8 37.
Chapter 5 Instruction Specifications Mathematical operation 1 d=s Binary addition d ← s1+s2 3 d=s1 B+ s2 BCD addition d ← s1+s2 5 d=s1 s2 B - Binary d ← s1 - s2 subtraction BCD d ← s1 - s2 subtraction R7F0 Process time (µ s) V C MICRO-EH ↕ z z z z 32 74 52 92 [Word] d: WY, WR, WM, Timer · Counter s: WX, WY, WR, WM, Timer · Counter, Constant [Double word] d: DY, DR, DM s: DX, DY, DR, DM, Constant * Array variables can be used.
12 d=s1 OR s2 13 d=s1 AND s2 14 d=s1 XOR s2 Logical AND Exclusive OR Process time (µ s) V C MICRO-EH z z z z z [Bit] d: Y, R, M s1, s2: X, Y, R, M [Word] d: WY, WR, WM, z z z z z Timer Counter s1, s2: WX, WY, WR, WM, Timer Counter, Constant [Double word] d: DY, DR, DM z z z z z s1, s2: DX, DY, DR, DM, Constant d ← s1 x s2 d ← s1 ⊕ s2 62 33 86 46 36 49 42 33 Relational expression 66 15 d=s1 == s2 = Relational When s1 = s2, d ← 1 expression When s1 ≠ s2, d ← 0 16 d=s1 S== s2 Signed = Relation
When s1 ≤ s2, d ← 1 When s1 > s2, d ← 0 s1 and s2 are compared as signed 32-bit binary.
10 BSR(d, n) Transfer 12 MOV(d, s, n) Negation / Two's complement / Sign 13 COPY(d, s, n) 14 XCG(d1, d2, n) 15 NOT(d) 16 NEG(d) 17 ABS(d, s) Block transfer Copy Block exchange Reverse MICRO-EH 32 Shifts BCD to left by n digits. Transfers (copies) n bits (or words) of data from I/O number s to the n bit (or word) range from I/O number s. Copies the bit (or word) data of I/O number s to the n bit (or word) range from I/O number d.
21 ENCO(d, s, n) R7F0 V C MICRO-EH z z z z d: R, M ↕ s: WX, WY, WR, WM, TC, Constant n: Constant(1-8) d: WY, WR, WM ↕ s: R, M n: Constant(1-8) 79 89 z z z z 49 Steps R7F1 R7F2 R7F3 DER ERR SD [Word] ↕ d: WY, WR, WM s: WX, WY, WR, WM, TC, Constant [Double word] ↕ d: DY, DR, DM s: DX, DY, DR, DM, Constant Remarks 3 Upper case: W Lower 4 case: DW 75 3 Upper case: W Lower 4 case: DW z z z z 105 4 *3 z z z ↕ 128 4 *3 R7F0 20 DECO(d, s, n) I/O types used Process time (µ s) R7F1 19
Chapter 5 Instruction Specifications Indicates the end of a normal scan. Re-executes normal scan from the beginning of the normal scan when s=1, while the next instruction is executed when s=0. Unconditio- Jumps to LBL n of the nal jump same No. n. Conditional When s=1, jumps to the jump LBL n of the same No.; when s=0, executes the next instruction. Label Indicates the jump destination of JMP or CJMP of the same No. FOR When s=0, jumps to the location after the NEXT n of the same No.
4 FUN 82 (s) (SLREF (s)) 5 FUN 140 (s) 6 FUN 141 (s) 7 FUN 142 (s) 8 FUN 143 (s) 9 FUN 144 (s) 10 FUN 145 (s) 11 FUN 146 (s) 12 FUN 147 (s) 13 FUN 148 (s) 14 FUN 149 (s) 15 FUN 150 (s) 16 FUN 151 (s) 17 FUN 254 (s) (BOXC (s)) 18 FUN 255 (s) (MEMC (s)) V C MICRO-EH Steps Process time (µ s) Refreshes the I/O at the s: WR, WM designated slot. Performs the starting and s: WR, WM stopping of the count operation of the specified counter.
Chapter 5 Instruction Specifications 5.
Chapter 5 Instruction Specifications Name Basic instructions-1, 2 Ladder format Condition code Processing time (µs) LD LDI n R7F4 R7F3 R7F2 R7F1 R7F0 n DER ERR SD V C z z z z z n n Instruction format 0.
Chapter 5 Instruction Specifications Condition code n R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z n Instruction format 0.
Chapter 5 Instruction Specifications Name Basic instructions-5, 6 Ladder format Condition code Processing time (µs) OR ORI n R7F4 R7F3 R7F2 R7F1 R7F0 n DER ERR SD V C z z z z z n n Instruction format Number of steps n Condition Steps ORI n 2 I/O number Bit R, TD, SS, X Y M CU, CT { { { { Word WR, Remark Average Maximum 0.
Chapter 5 Instruction Specifications Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Instruction format X Y 0.8 Condition Steps 2 Bit R, TD, SS, M CU, CT Word WR, Remark Average Maximum Number of steps NOT Usable I/O Negation (NOT) NOT Name Basic instructions-7 Double word DR, WX WY WM TC DX DY DM Constant Item number Other Function • Reverses the operation result obtained up to that point.
Chapter 5 Instruction Specifications Name Basic instructions-8 Ladder format Condition code AND OR R7F4 R7F3 R7F2 R7F1 R7F0 DIF n DIF n DER ERR SD V C z z z z z DIF DIF DIF n n n Number of steps AND DIF n Condition Steps OR AND DIF n 3 OR DIF n 4 DIF n Usable I/O X Y Bit R, TD, SS, M CU, CT Remark Processing time (µs) DIF n Instruction format n Leading edge detection (AND DIF, OR DIF) Word WR, Average Maximum 1.
Chapter 5 Instruction Specifications Name Ladder format DFN n DFN n DFN n DFN n Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Number of steps DFN n Steps AND DFN n 3 OR DFN n 4 Usable I/O n X Y Bit R, TD, SS, M CU, CT Average Maximum 1.
Chapter 5 Instruction Specifications Name Basic instructions-10 Ladder format Condition code n R7F2 R7F1 R7F0 DER ERR SD V C z z z z z OUT R7F3 n I/O number X 1.0 Condition Steps 1 Bit R, TD, SS, Y M CU, CT { { { Word WR, WX WY WM TC DX DY DM Switches on the coil when the operation result obtained up to that point is “1.” Switches off the coil when the operation result obtained up to that point is “0.
Chapter 5 Instruction Specifications SET n RES n S n R Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z SET RES Instruction format n Condition Steps RES n 1 I/O number Average Maximum Upper case: SET 0.9 ← 0.
Chapter 5 Instruction Specifications Name Basic instructions-13, 14 Ladder format MCS MCR MCS n MCS n S MCR n MCR n R Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z n n Instruction format Remark Average Maximum Upper case: MCS 0.7 ← 0.
Chapter 5 Instruction Specifications Ladder format Save/read/clear operation result (Branching of ladder) Condition code Processing time (µs) Save R7F4 R7F3 R7F2 R7F1 R7F0 Read DER ERR SD V C Clear z z z z z Instruction format Number of steps MPS Save Condition Steps MRD Read 0 MPP Clear Usable I/O X Y Bit R, TD, SS, M CU, CT Word WR, Remark Average Maximum MPS Save MRD Read MPP Clear Name Basic instructions-15, 16, 17 Double word DR, WX WY WM TC DX D
Chapter 5 Instruction Specifications Name Basic instructions-18 Ladder format Condition code Processing time (µs) ANB R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z (See Function column) Instruction format Condition Steps 0 X Bit R, TD, SS, M CU, CT Y Word WR, Double word DR, WX WY WM TC DX DY DM Function X00001 R010 M0020 M0021 R011 M0022 Y00100 LD X00001 LD R010 OR R011 ANB LD M0020 AND M0021 OR M0022 ANB OUT Y00100 This instruction is used to perform AND
Chapter 5 Instruction Specifications Name Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z (See Function column) Instruction format Number of steps Steps 1 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Function X00000 R010 Y00105 R011 R012 X00001 LD X00000 LD R010 LD R011 AND R012 ORB OR X00001 ANB OUT Y00105 This instruction is used to perform OR operation with respect to the logical o
Chapter 5 Instruction Specifications Name Basic instructions-20 Ladder format Condition code [ R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z ] Number of steps Condition Steps — 3 ] Usable I/O Processing time (µs) R7F4 Instruction format [ Processing box start and end (PROCESSING BOX) X Y Bit R, TD, SS, M CU, CT Word WR, Average Maximum 0.6 Double word DR, WX WY WM TC DX DY DM Constant Item number Function • Indicates the start and end of the processing box.
Chapter 5 Instruction Specifications Name Basic instructions-21 Ladder format Condition code R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Condition Steps — 0 ) X Y Bit R, TD, SS, M CU, CT Word WR, z Double word DR, WX WY WM TC DX DY DM Function • 0.8 Indicates the start and end of the relational box.
Chapter 5 Instruction Specifications Name Basic instructions-22 Ladder format Condition code OUT TD n t s TD n R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Instruction format Timer number t Time base s Set value X Y 1.
Chapter 5 Instruction Specifications [Time chart] 1] 2] 3] 4] X00000 TD10 R100 Set value 65 535 5] 12345 When input X00000 turns on, TD progress value is updated. When input X00000 turns off, the TD progress value is cleared. TD10 turns on when progress value ≥ set value. While X00000 is on, the progress value increases, but will not increase exceeding 65535. When X00000 turns off, TD10 also turns off and the progress value is cleared.
Chapter 5 Instruction Specifications Name Basic instructions-23 Ladder format Single shot (SINGLE SHOT) Condition code OUT SS n t s SS n Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z txs Instruction format Number of steps 1.
Chapter 5 Instruction Specifications [Time chart] 1] 2] X00001 SS11 R101 Set value 4] 12 567 Progress value of SS11 (TC11) 1] • 3] 2] 3] 4] The progress value is updated and SS11 turns on at the leading edge of X00001. SS11 turns off when set value ≥ progress value. X00001 is turned on at this time, but the single shot startup conditions are ignored because it uses edge trigger. SS11 is turned on at the leading edge of X00001 again, and the progress value is updated.
Chapter 5 Instruction Specifications Name Basic instructions-24 Ladder format Condition code OUT CU n R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z CU n s Instruction format Counter number s Set value X Y 1.
Chapter 5 Instruction Specifications Ignored X00005 CL15 CU15 65 535 5 Set value 4 Progress value of CU15 (TC15) 4 3 3 2 1 1] • 2] 3] 4] 5] Example using word I/O as the set value When RUN is commenced, the set value is set to the word I/O. Or, the word I/O for the set value is designated to store in the power failure memory. 5-33 CU n Ignored 1] The progress value (count) is cleared to 0 by the counter clear (CL15). While the counter clear is on, the progress value will not be updated.
Chapter 5 Instruction Specifications Name Basic instructions-25, 26 OUT CTU n s OUT CTD n Ladder format Up (CTU n) and down (CTD n) of up/down counter (UP/DOWN COUNTER) Condition code Processing time (µs) CTU n s R7F4 R7F3 R7F2 R7F1 R7F0 CTD n DER ERR SD V C z z z z z Instruction format OUT CTD n n Counter number s Set value Upper case: CTU 1.4 1.
Chapter 5 Instruction Specifications X00007 CTU17 LD OUT LD OUT LD OUT LD OUT 4 • X00008 CTD17 X00009 CL17 CT17 R107 X00007 CTU17 4 X00008 CTD17 X00009 CL17 CT17 R107 z An example of a word I/O being used as the set value for the circuit shown above.
Chapter 5 Instruction Specifications Name Basic instructions-27 Ladder format Condition code OUT CL n R7F2 R7F1 R7F0 DER ERR SD V C z z z z z CL n R7F3 s Number of steps Steps — 1 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { Counter number Remark Average Maximum 0.
Chapter 5 Instruction Specifications Name Ladder format =Relational box (=RELATIONAL BOX) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z (See Function column) Instruction format Upper case: W 27 40 35 50 Lower case: DW Number of steps LD (s1 == s2) Condition Steps AND (s1 == s2) Word (See Notes) OR (s1 == s2) Double word (See Notes) Usable I/O Remark Average Maximum X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR,
Chapter 5 Instruction Specifications Name Basic instructions-29 Ladder format Condition code LD (s1 == s2) AND (s1 == s2) OR (s1 == s2) R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Command format 35 (s1 S== s2) Condition Steps AND (s1 S== s2) Double word (See Cautionary notes) OR (s1 S== s2) Usable I/O Average Maximum Number of steps Bit X Y R, L, M Word TD, SS, CU, CT Remark Processing time (µs) R7F4 (See Function column) LD Signed = Relational box (SIGNED = RELATI
Chapter 5 Instruction Specifications Name Ladder format <> Relational box (<> RELATIONAL BOX) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z (See Function column) Instruction format Average Maximum Upper case: W 26.8 40 34.
Chapter 5 Instruction Specifications LD (s1 S <> s2) AND (s1 S <> s2) OR (s1 S <> s2) Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Command format (s1 S<> s2) Condition Steps AND (s1 S<> s2) Double word (See Cautionary notes) OR (s1 S<> s2) Usable I/O X Y R, L, M Word TD, SS, CU, CT Average Maximum 34.
Chapter 5 Instruction Specifications Name Ladder format
Chapter 5 Instruction Specifications Name Basic instructions-33 Ladder format Signed
Chapter 5 Instruction Specifications ≤ Relational box (≤ RELATIONAL BOX) Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z (See Function column) Instruction format Upper case: W 26.
Chapter 5 Instruction Specifications Ladder format Condition code LD (s1 S <= s2) AND (s1 S <= s2) OR (s1 S <= s2) R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Command format (s1 S<= s2) Condition Steps AND (s1 S<= s2) Double word (See Cautionary notes) OR (s1 S<= s2) Usable I/O X Y R, L, M Average Maximum 37.
Chapter 5 Instruction Specifications Item number Name Arithmetic instructions-1 Ladder format Substitution statement (ASSIGNMENT STATEMENT) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z d=s Instruction format Number of steps Condition Average Maximum (See following table) Steps (See Notes) Usable I/O d Substitution destination s Substitution source () Index value X { Bit R, TD, SS, Y M CU, CT { { { { Word WR, Double word DR, WX WY WM TC DX DY DM { {
Chapter 5 Instruction Specifications Program example X00000 DIF0 =WX0000 1] WR0000(WM000)=WX0000 2] Array variables are used at the substitution destination =WR0000(WM001) 3] Array variables are used at the substitution source WR0000(WM000)=WR0000(WM001) 4] Array variables are used at both substitution destination and source WR0000 X00001 DIF1 X00002 DIF2 WR0000 d=s X00003 DIF3 Program description 1] The value of WX0000 is substituted into WR0000 at the leading edge of input X00000.
Chapter 5 Instruction Specifications Name Arithmetic instructions-2 Ladder format Binary addition (BINARY ADDITION) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z ↕ ↕ d = s1 + s2 Usable I/O X Substitution destination s1 Augend s2 Addend Maximum Upper case: W 45 61 Lower case: DW Number of steps Condition Steps Word 4 Double word 6 d = s1 + s2 d Average Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { { { { { { { {
Chapter 5 Instruction Specifications Name Arithmetic instructions-3 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z ↕ Instruction format d = s1 B+ s2 Substitution destination s1 Augend s2 Addend Remark Average Maximum Upper case: W 115 177 Lower case: DW Number of steps Condition Steps Word 4 Double word 6 d = s1 B+ s2 d Processing time (µs) R7F4 d = s1 B+ s2 Usable I/O BCD addition (BCD ADDITION) X Y Bit R, TD, SS, M CU, CT Word W
Chapter 5 Instruction Specifications Name Arithmetic instructions-4 Ladder format Binary subtraction (BINARY SUBTRACTION) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z ↕ ↕ d = s1 – s2 Usable I/O X Substitution destination s1 Minuend s2 Subtrahend Upper case: W 41 58 Lower case: DW Number of steps Condition Steps Word 4 Double word 6 d = s1 – s2 d Average Maximum Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { { { { {
Chapter 5 Instruction Specifications Name Arithmetic instructions-5 Ladder format BCD subtraction (BCD SUBTRACTION) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z ↕ d = s1 B– s2 Instruction format Remark Average Maximum Upper case: W d = s1 B– s2 104 163 Lower case: DW Number of steps Condition Steps Word 4 Double word 6 d = s1 B– s2 Bit Usable I/O X Y Word Double word TD, SS, WDT, MS, WR, DR, R, TMR, CU, M RCU, CT WX WY WM TC
Chapter 5 Instruction Specifications Name Arithmetic instructions-6 Ladder format Binary multiplication (BINARY MULTIPLICATION) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z d = s1 × s2 Usable I/O X Substitution destination s1 Multiplicand s2 Multiplier Upper case: W 43 112 Lower case: DW Number of steps Condition Steps Word 4 Double word 6 d = s1 × s2 d Average Maximum Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM {
Chapter 5 Instruction Specifications Name Arithmetic instructions-7 Ladder format BCD multiplication (BCD MULTIPLICATION) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z d = s1 B× s2 Instruction format d = s1 B x s2 Usable I/O X Substitution destination s1 Multiplicand s2 Multiplier Average Maximum Upper case: W 164 447 Lower case: DW Number of steps Condition Steps Word 4 Double word 6 d = s1 B× s2 d Remark Processing time (µs) R7F4 Bit R, TD, SS
Chapter 5 Instruction Specifications Signed binary multiplication (SIGNED BINARY MULTIPLICATION) Ladder format Condition code R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z d = s1 S× s2 Command format Usable I/O X Y Steps Double word 6 R, L, M Word TD, SS, CU, CT 143 Condition Bit d Average Maximum Number of steps d = s1 S× s2 Remark Processing time (µs) d = s1 S x s2 Name Arithmetic instructions-8 Double word WR, DR, WX WY WM TC DX DY DM Substitution destina
Chapter 5 Instruction Specifications Name Arithmetic instructions-9 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z Instruction format d = s1 / s2 Usable I/O s1 Dividend s2 Divisor Average Maximum Upper case: W 55 110 Lower case: DW Number of steps Condition Steps Word 4 Double word 6 d = s1 / s2 Substitution destination Remark Processing time (µs) R7F4 d = s1 / s2 d Binary division (BINARY DIVISION) X Y Bit R, TD, SS, M CU, CT
Chapter 5 Instruction Specifications Name Arithmetic instructions-10 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z s1 Dividend s2 Divisor Upper case: W 152 253 Lower case: DW Number of steps Condition Steps Words 4 Double word 6 d = s1 B/ s2 Substitution destination Remark Average Maximum X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { { { { { { { { { { { { { { { { { { { { { d = s1 B
Chapter 5 Instruction Specifications Name Arithmetic instructions-11 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z ↕ z Command format d = s1 S/ s2 Condition Steps Double word 6 Bit Substitution destination s1 Dividend s2 Divisor X Y R, L, M Word TD, SS, CU, CT Remark Average Maximum 101 Number of steps d = s1 S/ s2 d Processing time (µs) R7F4 d = s1 S/ s2 Usable I/O Signed binary division Double word WR, DR, WX WY WM TC DX DY DM Cons
Chapter 5 Instruction Specifications Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z d = s1 OR s2 Instruction format Condition Steps Bit, word 4 Double word 6 X Bit R, TD, SS, Y M CU, CT { { d Substitution destination s1 Comparand { { { s2 Relational number { { { Word WR, 62 33 86 WX WY WM TC DX DY DM { { { { { { { { { { { { { { { { { { { Obtains OR of s1 and s2, and substitutes t
Chapter 5 Instruction Specifications Name Arithmetic instructions-13 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z d = s1 AND s2 Instruction format d = s1 AND s2 Condition Steps Bit, word 4 Double word 6 X Bit R, TD, SS, Y M CU, CT { { d Substitution destination s1 Comparand { { { s2 Relational number { { { Word WR, 46 36 49 WX WY WM TC DX DY DM { { { { { { { { { { { { { { { { {
Chapter 5 Instruction Specifications Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z d = s1 XOR s2 Instruction format Condition Steps Bit, word 4 Double word 6 X Bit R, TD, SS, Y M CU, CT { { d Substitution destination s1 Comparand { { { s2 Relational number { { { Word WR, 42 33 66 WX WY WM TC DX DY DM { { { { { { { { { { { { { { { { { { { Obtains exclusive OR (XOR) of s1 and s2,
Chapter 5 Instruction Specifications Name Arithmetic instructions-15 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z d = s1 == s2 Instruction format d = s1 == s2 60 Condition Steps s is a word 4 48 s is a double word 6 X Bit R, TD, SS, Y M CU, CT { { Word WR, Double word DR, WX WY WM TC DX DY DM d Substitution destination s1 Comparand { { { { { { { { s2 Relational number { { { { { { { { F
Chapter 5 Instruction Specifications Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Command format Condition Steps s is a double word 6 Bit X Substitution destination R, L, M Y { Word TD, SS, CU, CT Remark Average Maximum 108 Number of steps d = s1 S== s2 d Processing time (µs) R7F4 d = s1 S== s2 Usable I/O Signed = Relational expression d = s1 S== s2 Name Arithmetic instructions-16 Double word WR, DR, WX WY WM TC DX DY DM Constant It
Chapter 5 Instruction Specifications Name Arithmetic instructions-17 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z d = s1 <> s2 Instruction format d = s1 <> s2 Condition Steps s is a word 4 s is a double Word 6 Bit 60 46 X Word R, TD, SS, Y M CU, CT { { Double word WR, DR, WX WY WM TC DX DY DM d Substitution destination s1 Comparand { { { { { { { { s2 Relational number { { { { { { { {
Chapter 5 Instruction Specifications Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Command format Steps s is a double word 6 Bit X Substitution destination R, L, M Y { Word TD, SS, CU, CT 48 Condition Remark Average Maximum Number of steps d = s1 S<> s2 d Processing time (µs) R7F4 d = s1 S<> s2 Usable I/O Signed <> Relational expression d = s1 S<> s2 Name Arithmetic instructions-18 Double word WR, DR, WX WY WM TC DX DY DM Constant It
Chapter 5 Instruction Specifications Name Arithmetic instructions-19 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z d = s1 < s2 Instruction format Upper case: W d = s1 < s2 40 70 Lower case: DW Condition Steps s is a word 4 s is a double word 6 X Bit R, TD, SS, Y M CU, CT { { Word WR, Double word DR, WX WY WM TC DX DY DM d Substitution destination s1 Comparand { { { { { { { { s2 Relational num
Chapter 5 Instruction Specifications Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Command format Steps s is a double word 6 Bit X Substitution destination R, L, M Y { Word TD, SS, CU, CT 50 Condition Remark Average Maximum Number of steps d = s1 S< s2 d Processing time (µs) R7F4 d = s1 S< s2 Usable I/O Signed < Relational expression d = s1 S< s2 Name Arithmetic instructions-20 Double word WR, DR, WX WY WM TC DX DY DM Constant Item n
Chapter 5 Instruction Specifications Name Arithmetic instructions-21 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z d = s1 <= s2 Instruction format Remark Average Maximum Upper case: W d = s1 <= s2 40 71 Lower case: DW Number of steps Condition Steps s is a word 4 s is a double word 6 d = s1 <= s2 Usable I/O ≤ Relational expression X Bit R, TD, SS, Y M CU, CT { { Word WR, Double word DR, WX WY WM TC DX
Chapter 5 Instruction Specifications Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Command format Steps s is a double word 6 Bit X Substitution destination R, L, M Y { Word TD, SS, CU, CT 50 Condition Remark Average Maximum Number of steps d = s1 S<= s2 d Processing time (µs) R7F4 d = s1 S<= s2 Usable I/O Signed ≤ Relational expression d = s1 S<= s2 Name Arithmetic instructions-22 Double word WR, DR, WX WY WM TC DX DY DM Constant Ite
Chapter 5 Instruction Specifications Name Application instructions-1 Ladder format Bit set Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z BSET (d, n) Instruction format 3 Usable I/O BEST (d, n) X n Bit location to be set Upper case: W 26 35 Lower case: DW Steps BSET (d, n) I/O to be set the bit Remark Average Maximum Number of steps Condition d Processing time (µs) R7F4 Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM {
Chapter 5 Instruction Specifications Name Application instructions-2 Ladder format Bit reset Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z BRES (d, n) 3 Usable I/O X Bit location to be reset 29 38 Lower case: DW Steps BRES (d, n) n Upper case: W Number of steps Condition I/O to be set the bit Remark Average Maximum Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { { { { { { { { Other { { The constant is set in d
Chapter 5 Instruction Specifications Name Application instructions-3 Ladder format Bit test Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ BTS (d, n) Instruction format Upper case: W 3 Usable I/O X BTS (d, n) n Bit location to be tested 38 Lower case: DW Steps BTS (d, n) I/O to be tested 31 Number of steps Condition d Remark Average Maximum Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { {
Chapter 5 Instruction Specifications Program description When WR0001 = H1234 at the leading edge of X00000 (WR0001 = 0001001000110100) 20 (decimal) If DR0100 = H00000000, DR0102 = HFFFFFFFF and DR0104 = H5555AAAA are set, the 20th bit of DR0100 is set to “1” by the BSET at the leading edge of X00000. b31 b20 b0 DR0100=00000000000000000000000000000000 This bit is set to “1.” Also, the 20th bit of DR0102 is reset to “0” by BRES.
Chapter 5 Instruction Specifications Name Application instructions-4 Ladder format Shift right Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ SHR (d, n) Instruction format SHR (d, n) I/O to be shifted n Number of bits to be shifted Upper case: W 38 46 Lower case: DW Steps SHR (d, n) 3 Usable I/O Remark Average Maximum Number of steps Condition d Processing time (µs) R7F4 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM
Chapter 5 Instruction Specifications Program example X00000 R7F2 X00000 . . . . . Defective unit input To SD X00001 . . . . . Conveyor movement X00001 DIF1 SHR (DR0000,1) R7F0 Y00100 Defective unit output Carry Y00001 . . . . . LD OUT X00000 R7F2 LD X00001 AND DIF1 [ SHR ] (DR0000,1) LD OUT R7F0 Y00100 • • • There exists a conveyor that has 16 stands and is moving to the right. Each time the conveyor moves one stand to the right, a pulse input enters X1.
Chapter 5 Instruction Specifications Name Application instructions-5 Ladder format Shift left Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ SHL (d, n) Instruction format 3 Usable I/O X SHL (d, n) n Number of bits to be shifted Upper case: W 38 46 Lower case: DW Steps SHL (d, n) I/O to be shifted Remark Average Maximum Number of steps Condition d Processing time (µs) R7F4 Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM
Chapter 5 Instruction Specifications Name Application instructions-6 Ladder format Rotate right Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ ROR (d, n) 3 X Y Bit R, TD, SS, M CU, CT Word WR, • • • • 75 Double word DR, WX WY WM TC DX DY DM I/O to be rotated Number of bits to be rotated Function n 47 Lower case: DW Steps ROR (d, n) d Upper case: W Number of steps Condition Usable I/O Average Maximum { { { { { { { { Other { { The constan
Chapter 5 Instruction Specifications Name Application instructions-7 Ladder format Rotate left Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ ROL (d, n) Instruction format Upper case: W 3 X ROL (d, n) I/O to be rotated n Number of bits to be rotated 54 Lower case: DW Steps ROL (d, n) d 46 Number of steps Condition Usable I/O Remark Average Maximum Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY D
Chapter 5 Instruction Specifications Program example X00001 DIF1 LD AND [ R7F0 ROL ROL ] R7F0= 0 ROL(DR0000,1) ROL(DR0002,1) X00001 DIF1 =0 (DR0000,1) (DR0002,1) Program description When X00001 rises, the 64-bit data is shifted one bit at a time. The space after the shift is filled with “0.
Chapter 5 Instruction Specifications Name Application instructions-8 Ladder format Logical shift right Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ LSR (d, n) Instruction format Average Maximum Upper case: W 3 X LSR (d, n) I/O to be shifted n Number of bits to be shifted 45 Lower case: DW Steps LSR (d, n) d 36 Number of steps Condition Usable I/O Remark Processing time (µs) R7F4 Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC
Chapter 5 Instruction Specifications Name Application instructions-9 Ladder format Logical shift left Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ LSL (d, n) n Number of bits to be shifted 45 3 X I/O to be shifted 36 Lower case: DW Steps LSL (d, n) d Upper case: W Number of steps Condition Usable I/O Average Maximum Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { { { { { { { { Other { { The constant is set in
Chapter 5 Instruction Specifications Name Application instructions-10 Ladder format BCD shift right Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z BSR (d, n) Instruction format Average Maximum Upper case: W 3 Usable I/O X BSR (d, n) n Number of digits to be shifted 40 Lower case: DW Steps BSR (d, n) I/O to be shifted 32 Number of steps Condition d Remark Processing time (µs) R7F4 Bit R, TD, SS, M CU, CT Y Word WR, Double word DR, WX WY WM TC D
Chapter 5 Instruction Specifications Name Application instructions-11 Ladder format BCD shift left Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z BSL (d, n) 3 Usable I/O X n Number of digits to be shifted 32 39 Lower case: DW Steps BSL (d, n) I/O to be shifted Upper case: W Number of steps Condition d Average Maximum Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { { { { { { { { Other { { The constant is set in
Chapter 5 Instruction Specifications Name Application instructions-12 Ladder format Block transfer (MOVE) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z MOV (d, s, n) Instruction format Number of steps Condition As per the table below.
Chapter 5 Instruction Specifications Program example • The data in WM000 to WM01F is transferred to the area WR020 to WR03F. R001 DIF0 MOV (WR020,WM000,32) Y00100 R7F4 SET LD R001 AND DIF0 [ MOV (WR020,WM000,32) ] R7F4 Y00100 MOV (d, s, n) LD SET Program description • 32 words of data are transferred.
Chapter 5 Instruction Specifications Name Application instructions-13 Ladder format Copy Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z COPY (d, s, n) Instruction format Number of steps Condition As per the table below.
Chapter 5 Instruction Specifications Program example The default value (H2020) is set in the range of WR0100 to WR01FE.
Chapter 5 Instruction Specifications Name Application instructions-14 Ladder format Block exchange (EXCHANGE) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z XCG (d1, d2, n) Instruction format Number of steps Condition 4 XCG (d1, d2, n) Usable I/O X Exchange destination head I/O Exchange source head I/O d1 d2 Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { { { { Number of bits (words) to be exchanged n Average Maximum As per the
Chapter 5 Instruction Specifications Name Ladder format NOT Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z NOT (d) Instruction format Number of steps Condition Steps NOT (d) 2 Usable I/O d X I/O to be reversed Bit R, TD, SS, Y M CU, CT { { Word WR, 27 22 28 Double word DR, WX WY WM TC DX DY DM { { { Function • Reverses the contents of d.
Chapter 5 Instruction Specifications Name Application instructions-16 Ladder format Two's complement (NEGATE) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z NEG (d) Instruction format Upper case: W 22 29 Lower case: DW Number of steps Condition Steps NEG (d) 2 Usable I/O NEG (d) d Remark Average Maximum X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { I/O to take complement { { Constant Ite
Chapter 5 Instruction Specifications Name Application instructions-17 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z ↕ Upper case: W 30 4 Lower case: DW Number of steps Condition Steps Word 3 Double word 4 ABS (d, s) X Y Bit R, TD, SS, M CU, CT I/O after absolute value is taken I/O before absolute value is taken s Remark Average Maximum Word WR, Double word DR, WX WY WM TC DX DY DM { { { { { { { { { { { Other { Function • •
Chapter 5 Instruction Specifications Binary → BCD conversion Name Application instructions-18 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z BCD (d, s) Instruction format Remark Processing time (µs) R7F4 Average Maximum Upper case: W 79 89 Lower case: DW Number of steps Condition Steps Word 3 Double word 4 BCD (d, s) Usable I/O BCD (d, s) X d I/O after conversion (BCD) s I/O before conversion (BIN) Y Bit R, TD, SS, M CU, CT Word W
Chapter 5 Instruction Specifications BCD → Binary conversion Name Application instructions-19 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z BIN (d, s) Usable I/O X I/O after conversion (BIN) s I/O before conversion (BCD) Upper case: W 49 75 Lower case: DW Number of steps Condition Steps Word 3 Double word 4 BIN (d, s) d Average Maximum Bit R, TD, SS, M CU, CT Y Word WR, Double word DR, WX WY WM TC DX DY DM { { { { { { { {
Chapter 5 Instruction Specifications Name Application instructions-20 Ladder format Decode Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z DECO (d, s, n) Instruction format Number of steps Condition As per the table below.
Chapter 5 Instruction Specifications Name Application instructions-21 Ladder format Encode Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z ↕ ENCO (d, s, n) Instruction format Number of steps Condition As per the table below.
Chapter 5 Instruction Specifications Item number Name Application instructions-22 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z Instruction format X BCU (d, s) s Upper case: W 33 42 Lower case: DW Condition Steps Word 3 Double word 4 Y Bit R, TD, SS, Word WR, Double word DR, M CU, CT WX WY WM TC DX DY DM Constant Usable I/O Number of bits set to 1 Remark Average Maximum Number of steps BCU (d, s) I/O that counts the bits set to
Chapter 5 Instruction Specifications Name Application instructions-23 Ladder format Swap Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z SWAP (d) Instruction format Number of steps Condition Remark Average Maximum 25 Steps SWAP (d) 2 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM { I/O to be exchanged Other SWAP (d) Usable I/O d Processing time (µs) R7F4 Constant Item number { Function • Swaps the upper 8 bits and lower 8
Chapter 5 Instruction Specifications Name Application instructions-24 Ladder format Unit Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z UNIT (d, s, n) Instruction format Number of steps Condition Steps UNIT (d, s, n) UNIT (d, s, n) X Y Bit R, TD, SS, M CU, CT Word WR, As per the table below.
Chapter 5 Instruction Specifications Program example X00001 DIF0 UNIT (WY0010, WR0000, 3) LD X00001 AND DIF0 [ UNIT (WY0010, WR0000, 3) ] Program description 3-digit BCD input display device Input Line No. 28-point type Conveyor No. Product No. Output 3 Y111 to Y108 2 Y107 to Y104 WR0002 (Line No.) Data “3” WR0001 (Conveyor No.) Data “2” WR0000 (Product No.
Chapter 5 Instruction Specifications Name Application instructions-25 Ladder format Distribute Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z DIST (d, s, n) Instruction format 4 Usable I/O DIST (d, s, n) X Y Bit R, TD, SS, M CU, CT Distribution result write destination head I/O I/O to be distributed s As per the table below.
Chapter 5 Instruction Specifications Program example X01001 DIF0 DIST (WR0000, WX0000, 4) LD X00001 AND DIF0 [ DIST (WR0000, WX0000, 4) ] Program description Input 28-point type Output 9 7 4 6 X015 to X012 X011 to X008 X007 to X004 X003 to X000 WR0003 =H0009 WR0002 =H0007 WR0001 =H0004 WR0000 =H0006 5-99 DIST (d, s, n) A 4-bit 4-digit Digit switch is connected to the WX0000, and the data for each digit is stored in WR0000 to WR0003 as independent data.
Chapter 5 Instruction Specifications Name Control instructions-1 Ladder format Normal scan end Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z END Instruction format Number of steps Condition Remark Average Maximum 714 Steps END 1 Usable I/O X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant Item number Other Function • END • • • Indicates the end of a normal scan program.
Chapter 5 Instruction Specifications Name Control instructions-2 Ladder format Scan conditional end Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z CEND (s) Instruction format s Scan end condition Upper case : 5 Conditions do not meet Steps CEND (s) 2 Bit R, TD, SS, CU, CT X Y M { { { Remark Average Maximum Number of steps Condition Usable I/O Processing time (µs) R7F4 Word WR, WX WY WM TC Lower case : 707 Double word DR, DX DY DM Conditions meet
Chapter 5 Instruction Specifications Name Control instructions-3 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z 1] z z z Instruction format Number of steps Condition Remark Average Maximum 32 Steps JMP n n Processing time (µs) R7F4 JMP n Usable I/O Unconditional jump (JUMP) 2 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant Item number { Code number Other 0 to 255 (Decimal) Function • JMP n • • • • If the
Chapter 5 Instruction Specifications Name Control instructions-4 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z 1] z z z Instruction format s Jump condition 3 Conditions do not meet 3 Usable I/O Upper case : Steps CJMP n (s) X Y Bit R, TD, SS, M CU, CT Word WR, Lower case : 32 Double word DR, WX WY WM TC DX DY DM Conditions meet { { { Remark Average Maximum Number of steps Condition Code number Processing time (µs) R7F4 CJMP n (s) n Co
Chapter 5 Instruction Specifications Syntax of JMP, CJMP 6] An overlap of JMP instructions with the same code number is valid. 1] LBL n with the same code number as the code number n of the JMP instruction is required. JMP 5 JMP 5 CJMP 5 • If JMP 1 is executed when there is no LBL 1, an LBL undefined error occurs. JMP 1 will do nothing and execute the next processing of program A. JMP 1 Program A LBL 2 Program B LBL 5 2] Jump is not permitted to outside the area in which the JMP instruction resides.
Chapter 5 Instruction Specifications Name Control instructions-5 Ladder format Label Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z LBL n Instruction format Number of steps Condition n Average Maximum 0.
Chapter 5 Instruction Specifications Name Control instructions-6 Ladder format FOR Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z 1] z z z FOR n (s) Instruction format Number of steps Condition Remark Processing time (µs) R7F4 Average Maximum 33 Steps FOR n (s) 3 Usable I/O X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant Item number { n Code number s Number of times repeated { Other 0 to 49 (Decimal) { Function FOR
Chapter 5 Instruction Specifications Name Control instructions-7 Ladder format NEXT Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z 1] z z z NEXT n Instruction format Number of steps Condition Average Maximum 38 Steps NEXT n 2 Usable I/O n Remark Processing time (µs) R7F4 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant Item number { Code number Other 0 to 49 (Decimal) Function Subtracts 1 from the number of times repeated
Chapter 5 Instruction Specifications Syntax of FOR to NEXT 1] A NEXT instruction with the same code number as the code number n of the FOR instruction is required after the FOR instruction. 5] It is possible to escape from a FOR to NEXT loop using a jump instruction. FOR 1 (WM001) FOR 1 (WR0010) Program NEXT 2 Program Program NEXT 5 • NEXT undefined error The NEXT instruction with respect to the FOR instruction does not exist within the user program.
Chapter 5 Instruction Specifications Name Control instructions-8 Ladder format Call subroutine Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z 1] z z z CAL n Instruction format Number of steps Condition n Remark Average Maximum 24 Steps CAL n Usable I/O Processing time (µs) R7F4 2 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant Item number { Code number Other 0 to 99 (Decimal) • If the startup condition of CAL n is on, th
Chapter 5 Instruction Specifications Name Control instructions-9 Ladder format Start subroutine program Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z 1] z z z SB n Instruction format Remark Average Maximum Number of steps Condition 0.
Chapter 5 Instruction Specifications Name Control instructions-10 Ladder format End of subroutine program (RETURN SUBROUTINE) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z RTS Instruction format Number of steps Condition Remark Average Maximum 25 Steps RTS 1 Usable I/O X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant Item number Other • • • This instruction declares the end of a subroutin
Chapter 5 Instruction Specifications Name Control instructions-11 Ladder format Start interrupt scan program (INTERRUPT) Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z INT n Instruction format Number of steps Condition Average Maximum 0.
Chapter 5 Instruction Specifications Name Control instructions-12 Ladder format End interrupt scan program (RETURN INTERRUPT) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C z z z z z RTI Instruction format Number of steps Condition Remark Average Maximum 0.
Chapter 5 Instruction Specifications Syntax of SB n, RTS, INT n and RTI 1] A subroutine can be programmed between a normal scan and interrupt scan, between two interrupt scans, or after the final interrupt scan. 5] It is also possible to program a subroutine with multiple entry points and one exit.
Chapter 5 Instruction specifications Name Transfer command-1 Ladder format General purpose port communication command R7F4 Condition code R7F3 R7F2 R7F1 DER ERR SD V C ↕ z z z z TRNS 0 (d, s, t) Command format Average Number of steps Condition Steps - 5 TRNS 0 (d, s, t) Bit Usable I/O Processing time (µs) R7F0 X Y R, L, M Word Remark Maximum 80 2,078 Double word TD, SS, WR, DR, CU, CT WX WY WM TC DX DY DM Constant Item number Others { d Dummy s Parameter area t C
Chapter 5 Instruction specifications [3] Address of sending area : Address number and address type are configured in 2 words as below. Type : WR → H000A s+4 WM → H000C s+5 I/O No.: H0000 - [4] Reserved data size for data sending. : This is not actual data size but reserved size. Set it by "Word". [5] Address of receiving area : Address number and address type are configured in 2 words as below. (Data format is as same as sending area.) [6] Reserved data size for data receiving.
Chapter 5 Instruction specifications *1 Received data is defined by either of following 4 ways depending on setting in [7] s+A to [9] s+C.
Chapter 5 Instruction specifications [9] Timeout : This bit is set "1" when timeout detected. [A] Input buffer full : This bit is set "1" when input buffer full [B] Conflict error : This bit is set "1" when TRNS 0 or RECV 0 commands are duplicated. Bit [6] to [B] is reset at initializing and TRNS 0 executed. (7) Sending/receiving data format Set sending data as follows, and Receiving data is set as follows. [1] Sending/receiving data byte is even. [2] Sending/receiving data byte is odd.
Chapter 5 Instruction specifications Sample program R7E3 R7E3 WR0 Reserve area for data sending : 16 words from WR0 WR100 Reserve area for data receiving : 256 words from WR100 Data receiving definition Start code : H02, End code : H0D Communication speed : 19.2k bps Format : 7 bits, even, 2 stop Port 2 configured as general purpose port. Sent data : 9 bytes Inverter (SJ300/L300P) command FWD RUN for station No.
Chapter 5 Instruction specifications TRNS/RECV command return code table Return code Name H00 H21 Completed properly Range error Reserve area for sending setting error Reserve area for sending range error Reserve area for receiving setting error Reserve area for receiving range error Sending data error Receiving data error Area overlapping error *2 Operation completed without error Parameter "s" and "t" is out of available I/O range.
Chapter 5 Instruction specifications Name Transfer command-2 Ladder format General purpose port communication command R7F4 Condition code R7F3 R7F2 R7F1 DER ERR SD V C ↕ z z z z RECV 0 (d, s, t) Command format Average Number of steps Condition Steps - 5 RECV 0 (d, s, t) Bit Usable I/O Processing time (µs) R7F0 X Y R, L, M Word 80 Remark Maximum 2,064 Double word TD, SS, WR, DR, CU, CT WX WY WM TC DX DY DM Constant Item number Others { d Dummy s Parameter area t C
Chapter 5 Instruction specifications [3] Address of sending area : Address number and address type are configured in 2 words as below. Type : WR → H000A s+4 WM → H000C s+5 I/O No.: H0000 - [4] Reserved data size for data sending. : This is not actual data size but reserved size. Set it by "Word". [5] Address of receiving area : Address number and address type are configured in 2 words as below. (Data format is as same as sending area.) [6] Reserved data size for data receiving.
Chapter 5 Instruction specifications (6) "t" parameter t+B t [B] [A] [9] [8] [7] [6] [5] [4] [3] [2] [1] [0] : Set by user [0] Execution bit: Set "1" by user program to send data. This bit is reset after communication completed. [1] Communication completed : This bit is set "1" when communication completed without error, and reset at communication starting. [2] Communication failed : This bit is set "1" when communication fails, and reset at communication starting.
Chapter 5 Instruction Specifications Name FUN instructions-1 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 5 (s) Instruction format X Y 114 Condition Steps — 3 Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM s Argument { s+1 (system area) { s+2 (system area) { Remark Average Maximum Number of steps FUN 5 (s) Usable I/O General purpose port switching - Constant Item number Oth
Chapter 5 Instruction Specifications Item number Name FUN instructions-2 Ladder format I/O refresh (All points) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 FUN 80 (s) DER ERR SD V C * (ALREF (s)) ↕ z z z z Instruction format Number of steps 432 Condition Steps — 3 FUN 80 (s) Remark Average Maximum Usable I/O s X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant * (ALREF (s)) Other { Argument (dummy) Function
Chapter 5 Instruction Specifications Item number Name FUN instructions-3 Ladder format I/O refresh (Input/output) Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 FUN 81 (s) DER ERR SD V C * (IOREF (s)) ↕ z z z z Instruction format Number of steps 244 Condition Steps — 3 FUN 81 (s) Remark Average Maximum Usable I/O s X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant * (IOREF (s)) Other { Type Function s Input t
Chapter 5 Instruction Specifications Item number Name FUN instructions-4 Ladder format I/O Refresh (slot) Condition code R7F3 R7F2 R7F1 R7F0 FUN 82 (s) DER ERR SD V C * (SLREF (s)) ↕ z z z z Instruction format Number of steps Average Maximum 311 Condition Steps — 3 FUN 82 (s) Remark Processing time (µs) R7F4 Usable I/O s X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Constant * (SLREF (s)) Other { Number of points s+1 and Slot lo
Chapter 5 Instruction Specifications Notes • • • • Set the unit number (0 to 3) and slot number (0 to 1) after s+1. For other set values, DER is set to “1” and that slot will not be processed. If there is no I/O assignment to the designated slot, DER is set to “1” and that slot will not be processed. If the number of s+n points exceeds the maximum I/O number, DER is set to “1” and no processing will be performed.
Chapter 5 Instruction Specifications Name FUN instructions-5 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z Instruction format X Y 147 Condition Steps — 3 Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (Counter number, operation control value) Remark Average Maximum Number of steps FUN 140 (s) s Processing time (µs) R7F4 FUN 140 (s) Usable I/O High-speed Counter Operation Control Constant Item number O
Chapter 5 Instruction Specifications Name FUN instructions-6 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z Instruction format Steps — 3 X Y Bit R, TD, SS, M CU, CT 138 Condition Word WR, Double word DR, WX WY WM TC DX DY DM Argument (Counter number, output instruction) Remark Average Maximum Number of steps FUN 141 (s) s Processing time (µs) R7F4 FUN 141 (s) Usable I/O High-speed Counter Coincidence Output Control Constant Item numbe
Chapter 5 Instruction Specifications Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z Instruction format X Y 156 Condition Steps — 3 Bit R, TD, SS, M CU, CT Remark Average Maximum Number of steps FUN 142 (s) Word WR, Double word DR, WX WY WM TC DX DY DM Other { Argument (Counter number, Up/Down instruction) s Processing time (µs) R7F4 FUN 142 (s) Usable I/O High-speed Counter Up-Count/Down-count Control (Single phase counter only) Name
Chapter 5 Instruction Specifications Name FUN instructions-8 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 143 (s) Instruction format X Y 175 Condition Steps — 3 Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (counter number) Argument s+1 (Replacement value storage area) Remark Average Maximum Number of steps FUN 143 (s) Usable I/O High-speed Counter Current Value Replacemen
Chapter 5 Instruction Specifications Name FUN instructions-9 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 144 (s) Instruction format X Y 132 Condition Steps — 3 Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (counter number) Argument s+1 (Current value storage area) Remark Average Maximum Number of steps FUN 144 (s) Usable I/O High-speed counter current value reading Const
Chapter 5 Instruction Specifications Name FUN instructions-10 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z Instruction format X Y 157 Condition Steps — 3 Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (counter number) Remark Average Maximum Number of steps FUN 145 (s) s Processing time (µs) R7F4 FUN 145 (s) Usable I/O High-speed counter current value clear Constant Item number Other { Function 15 S
Chapter 5 Instruction Specifications Name FUN instructions-11 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 146 (s) Instruction format Number of steps Steps — 3 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (counter number, preset specification) Argument s+1 (on-preset value) Argument s+2 (off-preset value) Remark Average Maximum 162 Condition FUN 146 (s) Usable I/O High-
Chapter 5 Instruction Specifications Program example R6 DIF6 LD R6 AND DIF6 [ WR60 = H100 WR61 = 5000 WR62 = 10000 FUN 146 ( WR60 ) ] WR60 = H0100 WR61 = 5000 WR62 = 10000 FUN 146 (WR60) Program description • Sets both the on-preset value and off-preset value in the counter No. 1. Sets 5000 for the on-preset value and 10000 for the off-preset value.
Chapter 5 Instruction Specifications Name FUN instructions-12 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 147 (s) Instruction format Number of steps Steps — 3 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (PWM output number) s Remark Average Maximum 135 Condition FUN 147 (s) Usable I/O PWM operation control Constant Item number Other { Function 15 S • PWM output
Chapter 5 Instruction Specifications Name FUN instructions-13 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 148 (s) Instruction format Number of steps Steps — 3 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (PWM output number) Argument (Frequency s+1 value) Argument (On-duty s+2 value) Remark Average Maximum 173 Condition FUN 148 (s) Usable I/O PWM Frequency on-duty chang
Chapter 5 Instruction Specifications Notes • • • • • • If a value other than H01 to H04 is specified as the PWM output number, and if the on-duty value is outside the effective range, DER will be set to “1” and no processing will be performed. If the external I/O corresponding to the PWM output number is set to a function other than PWM output, DER will be set to “1” and no processing will be performed.
Chapter 5 Instruction Specifications Name FUN instructions-14 Ladder format Condition code R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z Instruction format X Y 149 Condition Steps — 3 Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (Pulse output number) Remark Average Maximum Number of steps FUN 149 (s) s Processing time (µs) R7F4 FUN 149 (s) Usable I/O Pulse output control Constant Item number Other { Function 15 S • Pulse out
Chapter 5 Instruction Specifications Name FUN instructions-15 Ladder format Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 150 (s) Instruction format Number of steps Steps — 3 X Y Bit R, TD, SS, M CU, CT Word WR, Double word DR, WX WY WM TC DX DY DM Argument (Pulse number) Argument (Frequency s+1 value) Argument (Number of s+2 output pulses) Remark Average Maximum 217 Condition FUN 150 (s) Usable I/O Pulse frequency output
Chapter 5 Instruction Specifications Notes • • • • • • • • • If the pulse output number is set to a value other than H01 to H04, DER will be set to “1”and no processing will be performed. If the external I/O corresponding to the pulse output number is set to a function other than pulse output, DER will be set to “1”and no processing will be performed. The minimum frequency that can be supported is 10 kHz.
Chapter 5 Instruction Specifications Item number Name FUN instructions-16 Ladder format Pulse output with acceleration/deceleration Processing time (µs) Condition code R7F4 R7F3 R7F2 R7F1 R7F0 DER ERR SD V C ↕ z z z z FUN 151 (s) Instruction format Number of steps Condition Remark Average Maximum 919 Steps Bit Word Double word TD, SS, R, WDT, MS, WR, DR, L, TMR, CU, M RCU, CT WX WY WM TC DX DY DM { Usable I/O X s Y Pulse output No. Total No.
Chapter 5 Instruction Specifications Notes When this instruction is executed, the maximum frequency is stored in the special internal output’s pulse output frequency (WRF072 to WFR075), and the number of output pulses is stored in the special internal output’s number of output pulses (WRF07A to WRF07D) respectively. This instruction will not be executed if the specified pulse output is generating pulse output.
Chapter 5 Instruction Specifications Item number Name FUN instructions-17 Ladder format BOX comment Condition code Processing time (µs) R7F4 R7F3 R7F2 R7F1 R7F0 FUN 254 (s) DER ERR SD V C * (BOXC (s) ) z z z z z Instruction format Number of steps Condition Remark Average Maximum Steps FUN 254 (s) 3 Usable I/O X Bit R, TD, SS, M CU, CT Y Word WR, WX WY WM TC DX DY DM Argument (dummy constant) s Double word DR, Constant * (BOXC (s) ) Other { Function • *
Chapter 5 Instruction Specifications 5-146
Chapter 6 I/O Specifications Chapter 6 I/O Specifications Table 6.1 lists the input/output classifications and input/output point types that can be used with the MICRO-EH Internal I/O 2 Others 3 Analog input Analog output Counter input Interrupt input Counter output Pulse/PWM output Bit 10/16 External I/O External I/O* 1 Size Function Symbol Item Table 6.
Chapter 6 I/O Specifications 6.1 I/O Assignment I/O assignment and I/O address are listed below. Table 6.
Chapter 6 I/O Specifications 6.2 External I/O Numbers When starting an operation of the MICRO-EH, a user program is executed (scanned) after the input refresh processing (receiving external input data) is performed. Operations are performed according to the contents of the user program, and the next input refresh processing and output refresh processing (operation results are reflected in the external output) are performed. After that, the next user program is executed (scanned).
Chapter 6 I/O Specifications The following explains the external I/O assignment. The external I/O numbers for the MICRO-EH system are expressed with the following conventions. Classification X WX DX Y WY DY Table 6.6 List of external I/O classification and data type I/O classification Data type Remarks External input Bit type Corresponds to the signal of each terminal block. Word type (16-bit) Data in the range 0 to 15 is batch processed. 16-bit synchronicity guaranteed.
Chapter 6 I/O Specifications 6.3 Internal Output Numbers Memory is available as an internal output area in the CPU module. There are three areas: bit dedicated area (R), word dedicated area (WR), and bit/word shared area (M/WM). Table 6.8 List of I/O number conventions for external I/O Numbering convention Data type Bit-dedicated type Example R0 R105 R23C R7E7 R Normal area H000 to H7BF Special area H7C0 to H7FF Both are expressed as hexadecimals.
Chapter 7 Programming Chapter 7 7.1 Programming Memory Size and Memory Assignment Table 7.1. Lists the programming specifications for the MICRO-EH. Table 7.1 Programming specifications 10/14-point type 23/28-point type Program size 3 k steps (3072 steps) Instruction size 32 bits/1 step Memory specification SRAM Backup with a battery is not possible Backup is possible by installing the since a battery cannot be installed. battery. FLASH Backup using flash memory is possible.
Chapter 7 Programming 7.2 Programming Devices The following methods are used to create the user programs. No. 1 2 Table 7.2 Programming methods Programming device used Concept of operation Remarks Personal computer software [For off-line/on-line operation] • I/O assignment information (LADDER EDITOR, etc.) Creates an I/O assignment table, inputs the program to be can be read. created, and transfers the program to the CPU in online • Initialize the CPU when mode.
Chapter 7 Programming 7.3 Programming Methods The following shows the system configuration using a personal computer and the procedures for creating a user program using personal computer software. Please note that cables differ depending on the personal computer and software used. Table 7.3 System configuration using a personal computer Personal computer No.
Chapter 7 Programming Item Create new program Off-line Start Start Select off-line Select off-line Out-line of opera-ting procedure Initialize PLC CPU type: Specify H-302 Memory type: Specify RAM-04H Create I/O assignment Create program Program check NG Situation Start Select on-line Select on-line Regenerate from FD, etc. Regenerate from FD, etc.
Chapter 7 Programming The user program is managed in circuit units. One circuit can describe nine contact points (a-type contact point or b-type contact point) and seven coils as shown in the figure below. Figure 7.1 Size of one circuit Or, one relational box can be described using the width of three contact points. The relational box can be considered as an a-type contact point that turns on when the conditions in the box are established (Figure 7.2). Figure 7.
Chapter 7 Programming In addition, if loop symbols are used, a circuit containing up to 57 contact points and one coil can be entered within seven lines. However, an OR circuit cannot be input after a loop. * * * * * * * * * * * * Figure 7.3 Example when using loop symbols A processing box can be placed at the coil position. The processing instructions, application instructions, control instructions, transfer instruction and fun instructions can be described in a processing box.
Chapter 7 Programming 7.4 Program Transfer The MICRO-EH stores the user programs written from the peripheral units in the execution memory (RAM). Then, it transfers the user programs to the FLASH memory (backup memory) utilizing the idle time of the MPU in the internal area of the MICRO-EH. This is performed regardless of operation status of the CPU.
Chapter 7 Programming Note 1) The following lists the special internal outputs for various settings that can be transferred to the backup memory by the Memory Request for Various Settings Flag (R7F6). 1 Table 7.5 List of special internal outputs that can be stored Special internal output Function that can be stored WRF01A Dedicated port 1 Communication settings 2 WRF03C Dedicated port 1 Modem timeout time 3 WRF03D Dedicated port 2 Communication settings No.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O The MICRO-EH operates in four operation modes. By selecting the proper operation mode, input/output points can be assigned to the counter input, interrupt input, pulse output, and PWM output functions, instead of the normal input/output function. The 14-point type model or higher are equipped with two potentiometers.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.1.2 Operation Mode Select one mode from the 5 modes shown in Table 8.1 (mode 10 described in following pages.) and set the mode number in the special internal output WRF070 when the CPU is in STOP status. *1: *2: If parameter in WRF070 is not saved by R7F6, the value will be 0 at the next power on. The operation mode setting can be changed only when CPU is in STOP status.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.1.3 Input/Output Setting Configure each I/O setting in the special internal output (WRF071) and make it effective by setting R7F5 ON in CPU STOP status. This information is normally reset at every power on, but this can be saved in the FLASH memory by setting R7F5 ON after that.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.1.4 Input/Output Setting (Mode 10) Mode 10 had been added since Ver. 01.13. I/O assignment of mode 10 is very flexible as follows. Parameter setting is compatible with existing mode 0 to 3 except for WRF071. Operation of FUN command (FUN 140 150) is same for all the mode 0 to 10. Outline Input and output are configured in every group as below.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.1.5 Special Output Operation in CPU STOP Status Generally the counter output, PWM output and pulse output are not generated if the CPU is in the STOP state. To output these outputs when the CPU is in the STOP state, turn on the special internal output R7DC.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.2 High-Speed Counter (Single-Phase) The high-speed counter settings are stored in the special internal outputs (WRF070 to 7E). It is only possible to perform the setting through the special internal output (WRF071) when the CPU is stopped and the output is turned off.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O Others 7] The user program can switch from using a counter as an up counter to a down counter, as well as from a down counter to an up counter while the counter is operating (using FUN142). * The counter output does not turn on unless the control output flag (R7FC to R7FF) is turned on. (2) Preload input operation When a preload signal is entered, the current counter value is reset to the preload value.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.2.2 Setting of Single-Phase Counter If either one of operation modes 1, 2, or 3 is selected, the single-phase counter should be set using the special internal output (WRF072 to WRF07E). In order to make the contents of the various settings valid, it is necessary to turn on the special internal output R7F5. The settings can be changed using the FUN instruction during the CPU operation (some settings cannot be changed, however.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O (4) Setting the counter preload When preloading is used, the value to be preloaded should be set for each counter used. Any value in the range from 0 to FFFFH (0 to 65,535) can be set. WRF07A: Preload value for counter 1 WRF07B: Preload value for counter 2 WRF07C: Preload value for counter 3 WRF07D: Preload value for counter 4 Figure 8.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.3 High-Speed Counter (Two-Phase Counter) When operation mode 3 is selected, two-phase counters can be used. Four kinds of phase counting modes are available for two-phase counters. The settings of the two-phase counters are stored in the special internal outputs (WRF06F to 72, 76, 7A, and 7E).
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O (2) Phase counting mode 1 In this mode the counter counts at the rising edge of input 1A. At this point, if input 1B is 0 (Low) it counts up, and if input 1B is 1 (High) it counts down. Input 1A Input 1B Count value Off preset On preset Coincidence output Figure 8.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O (4) Phase counting mode 3 In this mode the counter counts at the rising and falling edge of input 1B. It counts up when input 1A is more ahead of input 1B, and down when input 1A is lagging behind input 1B. Input 1A Input 1B Count value Off preset On preset Coincidence output Figure 8.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.3.2 Setting of Two-Phase Counter The setting of the two-phase counters are stored in the special internal outputs (WRF072 to WRF07E). (1) Phase counting mode Set the phase counting mode (0-3) in WRF06E. Please see the chapter 8.3.1 about phase counting mode. WRF06F: Phase counting mode Figure 8.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O (5) Individual counter setting The on-preset and off-preset values can be changed for each two-phase counter by the special internal output for individual setting (WRF058) regardless of whether the CPU is operating or stopped. Turn on the corresponding bit in the following special internal outputs when only the on-preset or the off-preset value should be changed for a two-phase counter.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.4 PWM Output A PWM output can be set as an output by setting the operation mode and output terminal. By setting an output to a PWM output, a pulse with a duty ratio in the range that corresponds to the specified frequency can be output. 8.4.1 Operation of PWM Output The PWM output settings are stored in the special internal outputs.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.4.2 Setting the PWM Output The settings of the PWM output operation are stored in the special internal outputs (WRF072 to WRF079). (1) Setting the PWM output frequency Set the frequency of output pulse for each PWM output to be used in special internal outputs. The setting values must be 10 to 2000 (HA to H7D0). If the frequency value is set to less than 10 Hz, it is changed to 10 Hz by the system.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O (3) Effective range of PWM output on-duty values When correcting on-duty values by setting the value that corresponds to the CPU model in the special internal output (WRF06B) for setting PWM/pulse output correction, the effective range of the on-duty values differs depending on the frequency and CPU model to be used. The effective range of the on-duty values is calculated from the following expressions.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.5 Pulse Train Output A pulse output can be assigned to an output by setting an output terminal. By setting an output to pulse output, a specified number of consecutive pulses with a duty ratio of 30 to 70 % can be output. ((To output a pulse having a duty ratio of 50 %, set the value corresponding to the CPU model in the special internal output WRF06B, by referring to Section 8.1.4.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O To change the number of output pulses, the following operation will be performed: 1] When the number of pulses is to be changed to a value larger than the number of pulses currently being output, pulses will be output until the number of newly changed pulses is reached, and then the pulse output stops.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O (4) At setting abnormality If the sum of the frequencies of the pulse outputs is set to exceed 5 k when the PI/O function setting flag (R7F5) is turned on, the bit for the total pulse frequency abnormality in the error display special internal output turns on, and none of the pulse outputs are output.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.6 Interrupt Input When either operation mode 0, 1, or 3 is selected, it is possible to assign an interrupt input to X1, X3, X5, and X7 by the special internal output (WRF07F). (The 10-point type CPU does not have X7.) It is only possible to set them by the special internal output under the conditions where the CPU is stopped and the output is off.
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.8 Potentiometers CPUs other than of the 10-point type are equipped with two potentiometers. Through the use of these potentiometers, it becomes possible to change values in the special internal outputs from the outside using a tool that looks like a screwdriver. The resolution is 10 bits, so it is possible to adjust the values from 0 to 3FFH (1 to 1,023).
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.9 Analogue Input The 23-point type CPU is equipped with two points of analogue input. The input to these two points can be set to voltage input or current input individually. The setting of current or voltage input is made in the special internal output WRF06E. This special internal output is stored in the FLASH memory by turning on various setting write requests (R7F6).
Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O 8.11 Analogue Expansion unit Analogue expansion module has 4 ch. of analog input and 2 ch. of analog output, which is configured by dip switches. Range setting Analogue input range setting (Common for all input channels.
Chapter 9 PLC Operation Chapter 9 PLC Operation The operating status and stop status of the MICRO-EH can be switched through various types of operations. This feature is shown in Figure 9.1. Cancel operation definition input Switch “RUN” and operation definition input “ON” Switch “RUN” Stop status Operating status Switch “STOP” Stop status Switch “STOP” or operation definition input “OFF” Designate operation definition input Caution The MICRO-EH cannot handle a REMOTE specification.
Chapter 9 PLC Operation 9.1 RUN Start When the MICRO-EH switches to the operating state, the user program is executed in sequence from the beginning. The user programs consist of a normal scan program and periodical scan program. In addition to these programs, there is a subroutine area defined as a subroutine. No. 1 2 Program classification Normal scan program Periodical scan program Table 9.2 Program classification Description Expression This is the program that is normally executed.
Chapter 9 PLC Operation Each program is executed in the order of the priority shown in Figure 9.2. Each program is executed while monitoring the execution time of each program area. If the monitored time exceeds the specified time, this causes a congestion error and operation stops. When continued operation has been specified, operation continues. The timing for scan execution is shown in Figure 9.2. System processing is performed at set periods (every 5 ms), followed by communication system processing.
Chapter 9 PLC Operation (2) Causes of congestion errors at normal scan Congestion errors may occur at normal scan because of the following three possible reasons. In particular when using a periodical scan program and an interrupt scan program together, care must be taken to create the program in such a way that the total scan time does not exceed the congestion check time.
Chapter 9 PLC Operation 9.1.2 Periodical Scan (1) Definition and operation This scan executes interrupt programs (periodical scan programs) while the CPU is operating with a fixed cycle time (10 ms, 20 ms, or 40 ms) specified by the users. Enter the periodical scan program to be executed between instructions INT0 and RT1 if it should be started up with a 10 ms cycle time, and between INT1 and RT1 if it should be started up with a 20 ms cycle time.
Chapter 9 PLC Operation (3) Continuation of operation after a congestion error If a congestion error occurs when the special internal output bit R7C1, which specifies whether the operation should continue after a congestion error, is turned on, the execution of the periodical scan is stopped and the periodical scan is executed from the beginning again. If the operation continuation specification for the normal scan is Off when this happens, the scan stops as a congestion error at a normal scan.
Chapter 9 PLC Operation (3) Continuation of operation after a congestion error occurred If an interrupt scan congestion error occurs when the special internal output bit R7C2, which specifies whether the operation should continue after a congestion error, is turned on, the interrupt scan is started anew and the scan is executed from the beginning again.
Chapter 9 PLC Operation 9.1.4 Relationship of Each Scan Type When three types of scan occur at the same time, scan is executed in the order of periodical scan, then interrupt scan, and then normal scan.
Chapter 9 PLC Operation 9.2 Online Change in RUN The user programs can be modified during operation while retaining the output status as is. This is called the “program change while running” function. To modify the user programs, special programming software or programmer is required. Refer to the individual manuals on the operation. Program change while running cannot be executed in the following situations. Perform this operation after satisfying the conditions. Table 9.
Chapter 9 PLC Operation 9.3 Instantaneous Power Failure The following shows operation when the power supply to the MICRO-EH shuts off. AC power supply Internal 5 V DC Internal reset 24 V DC RUN ON OFF MICRO-EH operation STOP status Reset processing Power on 2s (1) 1.0 s 1.
Chapter 9 PLC Operation 9.4 Operation Parameter The settings of “parameters,” which are required to perform tasks such as creating programs, transferring programs to the CPU, are performed. The setting contents are explained below. Item 1 Function Password { 2 CPU type { 3 Memory assignment { 4 Operating parameters { 5 I/O assignment 6 Program name 7 Power failure memory* Description Register a password to a program in the four-digit hexadecimal format.
Chapter 9 PLC Operation 9.5 9.6 Test Operation (1) Verification of interlock Verify performance of the interlock in case of unexpected incidents. Create ladders such as an emergency stop circuit, protective circuit and interlock circuit outside the program controller. For the relay output module, however, do not control the relay drive power supply to interlock with the external loads.
Chapter 10 PLC Installation, Mounting, Wiring Chapter 10 PLC Installation, Mounting, Wiring 10.1 Installation (1) (2) Installation location and environment (a) When installing the MICRO-EH, use the unit under the environment within the general specification. (b) Mount the PLC onto a metal plate. (c) Install the PLC in a suitable enclosure such as a cabinet that opens with a key, tool, etc.
Chapter 10 PLC Installation, Mounting, Wiring Securing the unit Secure the unit by installing DIN rail fixing brackets from both sides. (The product may move out of place if not secured with the fixing brackets.) DIN rail attachment mounting levers Removing the unit from the DIN rail While lowering the DIN rail attachment mounting lever 1], lift the unit upward to remove as shown by 2].
Chapter 10 PLC Installation, Mounting, Wiring 10.2 Wiring (1) Separation of the power system The power supplies include power for the MICRO-EH main unit/power for the I/O signals/power for general equipment. These power supplies should be wired from separate systems as much as possible. When these power supplies are supplied from one main power source, separate the wiring with a transformer or similar device, so that each power supply is a separate system.
Chapter 10 PLC Installation, Mounting, Wiring (3) Wiring to the power module (a) For power supply wiring, use a cable of 2 mm2 or more to prevent a voltage drop from occurring. (b) For the function ground terminal (PE terminal), use a cable of 2 mm2 or more and provide Class D grounding (100 Ω or less). The appropriate length for the ground cable is within 20 m. 1] Instrumentation panel and relay panel grounding may be shared.
Chapter 10 PLC Installation, Mounting, Wiring (5) Wiring to the input terminals DC input AC input Current output type Proximity switch 24 V DC ① 1] 24+ 0V 3] 2] 0] 4] C0 6] 5] C1 0 7] ③ ② ④ C0 ⑥ ⑤ C1 ⑦ Example of 14-point type Example of 14-point type Figure 10.5 Input wiring (a) DC input 1] When all input terminals (X0, X1, ...) and the common terminal (C) are loaded with 24 VDC, the input becomes ON status, and approximately 7.5 mA of current flows to the external input contacts.
Chapter 10 PLC Installation, Mounting, Wiring (6) Wiring to the output terminals Relay output EH-*XXDR** Item External wiring POW POW 0] 1] C0 2] C1 4] 3] C2 POW 5] POW 0] 1] C0 FUSE Diode Figure 10.6 Relay output wiring External wiring Transistor output (sink type) (EH-*XXDT**) POW 0] POW NC 1] 3] 2] 5] 4] C V FUSE Diode Figure 10.
Chapter 10 PLC Installation, Mounting, Wiring (a) Wiring to the relay output terminals 1] Life of relay contacts Life curve of relay contacts Figure 1 Life characteristics (125 V AC) 1000 Switching life (10,000 times) 500 AC 125 V cos φ =1 100 AC 125 V cos φ =0.7 50 Life of the contact is almost in squared reverse proportion to the current, so be aware that interrupting rush current or directly driving the condenser load will drastically reduce the life of the relay.
Chapter 10 PLC Installation, Mounting, Wiring (7) Wiring to the unit terminals Wiring for the power supply 2 Shield insulation transformer AC power supply Use a 2 mm cable and twist it. Leave a distance of 100 mm or more from the signal cable and 200 mm or more from the power line. NF Connection of a noise filter is recommended. Expansion cable Always segregate power line, I/O signal and power supply cable Ground wiring 2 Use a cable 2 mm or more for the wiring.
Chapter 11 Communication Specifications Chapter 11 Communication Specifications 11.1 Port function Port function of MICRO-EH is shown in Table 11.1. Table 11.1 Communication port specification General purpose port Without St. No. (1:1) PC, modem, HMI PC, etc. PC, etc. device, PC, HMI Trans.
Chapter 11 Communication Specifications (1) Port 1 settings Port 1 is configured by combination of DIP switch and special register (WRF01A). DIP switch can be set when cable is not connected (DR signal is off). Switch configuration is set at cable connected (DR is high). Value in WRF01A is saved in FLASH memory when writing flag (R7F6) is turned on. If saved in FLASH memory, it is not necessary to set again at the next power up.
Chapter 11 Communication Specifications 11.3 Port 2 The specifications of port 2 are listed in Table 11.4. 1:n station communication by the high protocol is possible with port 2. By creating and including a control procedure based on the high protocol on the personal computer which will become the host, it becomes possible to control a maximum of 32 stations from one host. The systems can thus be configured in several ways. Table 11.4 Port 2 specifications Item Dedicated (programming) port 4800, 9600, 19.
Chapter 11 Communication Specifications (2) 1:n station communication on RS-485 When station number mode is used on RS-485, termination command (NAK FF) from host/PC can conflict with reply from CPU, and CPU can fail to receive this command. Pay attention to this possibility at using this command. (3) Port 2 hardware The circuit diagram of port 2 and the signal list are shown in Figure 11.4 and Table 11.6 respectively.
Chapter 11 Communication Specifications 11.5 Modem Control Function The 14-point or higher MICRO-EH is equipped with a modem control function. The modem control function can be operated using task codes. To use this function, it is necessary to set No.2 of the DIP SW. For details on the communication specifications, see Table 11.1, “Specifications of port 1.” * The 10-point type CPU does not have this function.
Chapter 11 Communication Specifications (2) List of commands (extract) 1] AT commands Command Function overview AT Automatically recognizes data format A/ Re-executes the response directly preceding ATA Forced reception ATDmm Dial ATEn Command echo (echo back a text string entered to modem) ATHn ATPn ATQn ATT ATSn = X ATVn AT&Cn AT&Dn AT&Sn AT&Rn 2] 3] Example 0: No 1: Yes Line ON/OFF 0: On hook (disconnect) 1: Off hook Pulse (dial) setting 0, 1: 10 pps 2 : 20 pps Result code setting 0: Yes 1:
Chapter 11 Communication Specifications (3) Sequence An example of a communication sequence using the Omron-made modem ME3314A is given below.
Chapter 11 Communication Specifications 11.6 Connecting to the Ports The following shows some examples of connections between port 1 and 2 and peripheral units. When creating a connection cable, check it thoroughly in advance according to what the purpose of its use is. 11.6.1 Port 1 Port 1 of the MICRO-EH is a communication port that uses the RS-232C protocol as interface. It is also a dedicated port with which to perform communication by the H series dedicated procedure (high protocol). Table 11.
Chapter 11 Communication Specifications 11.6.2 Port 2 Port 2 of the MICRO-EH is a communication port that uses either the RS-422 or RS-485 protocol as interface. It is also a dedicated port with which to perform communication by the H series dedicated procedure (high protocol), which allows 1:n station communication. Figure 11.6 and 11.7 show examples of port 2 connections for 1:n station communication.
Chapter 11 Communication Specifications MEMO 11-10
Chapter 12 Error Code List and Special Internal Outputs Chapter 12 Error Code List and Special Internal Outputs 12.1 Error Codes The table below indicates the self-diagnostic error codes. (See Chapter 13, “Troubleshooting” about corrective actions.) Error codes are output as hexadecimal values to the special internal output WRF000. (This special internal output is saved during power failure, and is retained even when the causes of the error are eliminated.
Chapter 12 Error Code List and Special Internal Outputs Error code 5F 61 62 63 64 65 67 68 69 6A 6B 71 *3 72 *4 94 *1: *2: *3: *4: Error name [detection timing] Backup memory error [at program downloading and special I/O function setting is requested] Port 1 transmission error (parity) [when transmitting] Port 1 transmission error (framing/overrun) [when transmitting] Port 1 transmission error (time out) [when transmitting] Port 1 transmission error (protocol error) [when transmitting] Port 1 transmissi
Chapter 12 Error Code List and Special Internal Outputs 12.2 Syntax and Assembler Error Codes The following describes the syntax and Assembler error codes. The error codes are output as hexadecimal values to the internal output WRF001. The syntax and Assembler error checks are performed at the time of RUN startup.
Chapter 12 Error Code List and Special Internal Outputs 12.3 Operation Error Codes If an error occurs when a control instruction is executed, “1” is set in the operation error (ERR) special internal output “R7F3” and an error code (hexadecimal) indicating the description of the error is set in WRF015. To clear the operation errors to zeros, execute “R7F3=0” using a forced setting from a program or peripheral unit.
Chapter 12 Error Code List and Special Internal Outputs 12.4 Bit Special Internal Output Area The MICRO-EH has a special internal output area for performing status display and various other settings. The special internal output area is constantly backed up in case of power failure. The following lists the definitions of the bit special internal output area (R7C0 to R7FF). No.
Chapter 12 Error Code List and Special Internal Outputs No. Name R7D7 Undefined R7D8 Undefined R7D9 Battery error R7DA Instantaneous power *1 failure detection R7DB Self-diagnostic error R7DC Output mode R7DD R7DE R7DF R7E0 Undefined Undefined Undefined Key switch location (STOP) R7E1 Undefined R7E2 Key switch location (RUN) R7E3 1st scan ON after RUN R7E4 Always ON R7E5 R7E6 R7E7 R7E8 R7E9 R7EA *1: *2: 0.02 second clock 0.1 second clock 1.
Chapter 12 Error Code List and Special Internal Outputs No.
Chapter 12 Error Code List and Special Internal Outputs No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Table 12.
Chapter 12 Error Code List and Special Internal Outputs 12.5 Word Special Internal Output Area The following lists the definitions of the word special internal output area (WRF000 to WRF1FF). Setting No.
Chapter 12 Error Code List and Special Internal Outputs No.
Chapter 12 Error Code List and Special Internal Outputs No.
Chapter 12 Error Code List and Special Internal Outputs No.
Chapter 13 Troubleshooting Chapter 13 Troubleshooting 13.1 Error Display and Actions The display locations of errors detected by individual device in the MICRO-EH system are shown in Figure 13.1. When an error occurs, take an action according to the error code list. LADDER EDITOR POW OK RUN OK Lamp L/E error display LADDER EDITOR for Windows® L/E for Windows® error display Figure 13.
Chapter 13 Troubleshooting The following shows the range of the special internal output that is cleared when R7EC is set to “1.” No.
Chapter 13 Troubleshooting (2) Corrective actions when an error occurred The process flow when an error occurred is shown below. Error occurred Error is detected by the CPU module and displayed by lit/flashing/not lit of RUN and OK LEDs. Verify the self-diagnostic error code (WRF000) with the RUN and OK LED statuses or using a peripheral unitand refer to error code list. Reference the bit special internal output (14-1). Reference the word special internal output (14-2).
Chapter 13 Troubleshooting Error code Error name 61 Port 1 transmission error (parity) 62 Port 1 transmission error (framing/overrun) 63 Port 1 transmission error (timeout) 64 Port 1 transmission error (protocol error) 65 Port 1 transmission error (BCC error) 67 Port 2 transmission error (parity) 68 Port 2 transmission error (framing/overrun) 69 Port 2 transmission error (timeout) 6A Port 2 transmission error (protocol error) 6B Port 2 transmission error (BCC error) 71 Battery error 91 Port 1 Modem no res
Chapter 13 Troubleshooting 13.2 Checklist when Abnormality Occurred If an error occurs in the MICRO-EH system, check the following items. If there are no problems in the following items, contact our service department.
Chapter 13 Troubleshooting 13.
Chapter 13 Troubleshooting (a) PLC will not start The CPU OK LED does not turn off even when power is started, nor peripheral units cannot be connected on-line.
Chapter 13 Troubleshooting (b) Will not operate (will not run) Even if the PLC operation conditions are met, the CPU does not operate (the RUN LED does not turn on) and remains stopped. However, the peripheral units go on-line. Caution If the CPU is WRITE-occupied, the CPU will not run even if the RUN switch is switched from “STOP” to “RUN.” The CPU starts running by pressing the GRS key after peripheral units are connected.
Chapter 13 Troubleshooting (c) Operation stopped (RUN stopped) During normal operation, the CPU suddenly stops (the RUN LED turns off).
Chapter 13 Troubleshooting (d) Wrong input at input module or no input (operation problem) The CPU runs, but the input data is not correct.
Chapter 13 Troubleshooting Data cannot be entered.
Chapter 13 Troubleshooting (e) The counter input does not function The CPU operates, but the input data is incorrect Does it operate as normal input? NO Check the input area • Check the input signal source • Malfunction due to noise • Cable is disconnected YES Are pulses that exceed 5 kHz being input? YES Set the pulse input to 5kHz or less NO Are the operating mode settings correct? NO Set the operating mode for the peripheral devices Note: The operating mode can only be changed while the CPU is
Chapter 13 Troubleshooting (f) Wrong output from output module or output module will not output (operation problem) The CPU operates, but output signals are not correct.
Chapter 13 Troubleshooting The CPU operates, but output signals are not detected.
Chapter 13 Troubleshooting (g) The PWM and pulse output does not operate The CPU operates, but the pulse output and PWM output are not correct Does it operate as normal output? NO Check the output area • Output signal voltage • Power supply voltage for the load • Terminal stand wiring • Terminal stand connection • Voltage between the common and bit • Wiring Especially for the S terminal on the transistor YES Pulse is output using the relay output YES The expected pulse output from the relay is not ou
Chapter 13 Troubleshooting (h) Peripheral units problem Peripheral units cannot be connected.
Chapter 14 Operation Examples Chapter 14 Operation Examples To understand the basic operation of the MICRO-EH, this chapter explains samples of operations such as inputting simple programs and verifying operations.
Chapter 14 Operation Examples STEP 1. 1 Starting the LADDER EDITOR for Windows® Start the personal computer. Start the personal computer. 2. Start the LADDER EDITOR for Windows® system (GRS screen). From the Start menu of Windows®, click [Program] → [Hladder] → [Hladder]. As LADDER EDITOR for Windows® is started, the GRS screen is displayed. Startup 3. Switching to Offline mode. Click [Offline] in the Menu bar. GRS screen The Read/Edit screen is displayed.
Chapter 14 Operation Examples STEP 2 Initialization Settings for the CPU type, memory type and I/O assignment are performed. 1. Setting the CPU type Click [Utility] → [Environment Settings] in the Menu bar. Pull-down menu The Environment Setting dialogue box is displayed. Specify the CPU type from the Ladder tag. • Click the W of the Offline CPU field to show the available CPU types in the pull-down display. Select the CPU type. • Click the [OK] button.
Chapter 14 Operation Examples 2. Setting the memory type Click [Utility] → [CPU Setting] → [CPU Information] in the Menu bar. The CPU Information dialogue box is displayed. Pull-down menu • Click the Memory Cassette/Ladder Assign button and select the memory cassette size. • Click [Execute] or the [Memory/Execute] button. CPU Information dialogue box • Click the [OK] button in the confirmation dialogue box. Set the memory cassette size to RAM-04H.
Chapter 14 Operation Examples [Setting from the I/O Assign List] 1] Double-click the cell for the unit number and slot number to be set. The Assignment Setting dialogue box is displayed. The Assignment Setting dialogue box v 2] Click the W of the data and select I/O type from the pull-down display. 3] Click the [OK] button to close the Assignment Setting dialogue box. Setting of I/O type In the same way, repeat steps 1] to 3] to assign X48 and 16 vacant points to Slot 1 and 2 respectively.
Chapter 14 Operation Examples [Setting from the Slot Setting Status] Click the [Slot] button to display the Slot Setting Status dialogue box. 1] Click the W of the unit and select the unit number from the pull-down display. 2] Click the button of the slot number to be set. Slot Setting Status dialogue box 3] Click the W of the data and select the I/O type from the pull-down display. 4] Click the [OK] button and close the Assignment Setting dialogue box.
Chapter 14 Operation Examples STEP 1. 3 Program Input Input a program. At first, the output window displays “there is no program” in the bottom left of the Read/Edit screen. The cursor , which indicates the program input position, is placed at the top left of the screen. Read/Edit screen Output window [Input procedure of ladder program] Repeat steps 1] to 4] to proceed with symbol input.
Chapter 14 Operation Examples When the dialogue box closes, the symbol is displayed in the Read/Edit screen and the cursor shifts. Display of symbol The comment is displayed under the symbol. [Example of entering a Processing Box] 1] The specification of the input position can be omitted when entering symbols into the same circuit as the contact above. 2] Click the symbol for Processing Box. Symbol selection The cursor moves to the far-right portion of the screen automatically.
Chapter 14 Operation Examples The input of the horizontal line symbol, which connects between symbols, may be omitted. (Symbols are connected by horizontal lines by the automatic wiring function at circuit write.) [Example of entering a timer] 1] Specify the input position, or omit the specification if entering it in the same circuit. 2] Click the symbol for coil. When the specification of the input position is omitted, the cursor automatically moves to the far-right portion of the screen.
Chapter 14 Operation Examples 3] Input comparison expression and comment. 4] Click the [OK] button. Comparison Box property The comment input is valid only for I/O numbers. In this example, entering a comment for the value on the right side of the expression will not generate a comment. Always enter a space between an I/O number and comparison operator (in this case, between “WY10” and “= =“), as well as between a comparison operator and comparison data (“= =“ and “0”).
Chapter 14 Operation Examples STEP 4 Checking Program Errors Check to see if the program in the memory is correct. Click [Utility] → [Check] in the Menu bar. The Check dialogue box is displayed. Pull-down menu • Click the [All items] or the individual check column to specify the items to be checked. • Click the [Execute] button. The Check Result dialogue box is displayed. Check dialogue box The checking of the CPU can be specified at online mode. • Click the [OK] button.
Chapter 14 Operation Examples STEP 5 Saving the Program Save the program and comment that has been created to a floppy disk. Click [File] → [Record] in the Menu bar, the Record icon , or [File] → [Batch Record]. The dialogue for Record or Batch Record is displayed. Pull-down menu Record : Specify the file type and save. Batch Record: Saves a program and all the comment files. Record dialogue box: Specify the directory to save in, file name, and file type.
Chapter 14 Operation Examples STEP 6 Program Transfer to CPU Write the program that has been input, to the CPU. However, verify the following: • The CPU and the personal computer connection cable are properly connected. • The CPU power is on. • CPU mode switch is set to “STOP.” 1. Switching to online mode. Move to the GRS screen from the offline mode. This can be done in two ways. 1] Click [File] → [GRS] in the Menu bar. 2] Click (lower button) on the upper right of the screen.
Chapter 14 Operation Examples The Confirmation dialogue box is displayed; click the [Yes] button and start the CPU initialization. The Exit dialogue box is displayed; click the [OK] button to close the dialogue. 3. Transferring to the CPU Click [File] → [CPU write] in the Menu bar. Pull-down menu Program transfer CPU Read: PC (personal computer) ← CPU CPU Write: PC (personal computer) → CPU The CPU Write dialogue box is displayed. Click the [Execute] button.
Chapter 14 Operation Examples STEP 7 Monitoring (Verifying the Operation) Monitor the program execution status in the CPU. [Circuit monitor] Click [Mode] → [Monitor] in the Menu bar. Pull-down menu The Confirmation dialogue box for the program match check between PC and the CPU is displayed. Click the [Yes] button. Match check Set the CPU's RUN switch to “RUN” to begin the CPU operation. The on/off status of the contact, timer, and current counter value are displayed.
Chapter 14 Operation Examples The I/O monitor can be specified in the following two ways. 1] Click [Edit] → [I/O monitor setting] in the Menu bar. 2] Click the icon in the Symbol bar. I/O Monitor dialogue box • Enter the starting I/O No. • Click the number of points to be monitored. • Click on either the [Add], [Insert], or [Overwrite] buttons. I/O Monitor Setting dialogue box Monitor and display 16 points from Y100.
Chapter 15 Daily and Periodic Inspection Chapter 15 Daily and Periodic Inspections In order to use the functions of the MICRO-EH in the optimal conditions and maintain the system to operate normally, it is essential to conduct daily and periodic inspections. (1) Daily inspection Verify the following items while the system is running. Table 15.1 Items for daily inspection LED Item Normal status Main cause of error display Unit LED display POW Lighting Power supply error, etc.
Chapter 15 Daily and Periodic Inspection (4) Life of the battery • The battery life time is shown below. Battery life time (total power off time) [Hr] * Guaranteed value (Min.) @55°C Actual value (Max.) @25°C 9,000 18,000 * Battery life time has been changed since Oct. 2002 production (MFG NO.02Jxx) due to hardware modification. • • R7D9 The battery life can be determined by checking for the flashing of the OK lamp. The battery life time flag is in the bit special internal output “R7D9.
Appendix 1 H-series Instruction Support Comparison Chart Appendix 1 H-Series Instruction Support Comparison Chart [Basic instructions and sequence instructions] No.
Appendix 1 H-series Instruction Support Comparison Chart [Basic instructions and comparison boxes] No.
Appendix 1 H-series Instruction Support Comparison Chart [Arithmetic instructions] No.
Appendix 1 H-series Instruction Support Comparison Chart [Application instructions] (2/2) No.
Appendix 1 H-series Instruction Support Comparison Chart [High-function module transfer instructions] No.
Appendix 1 H-series Instruction Support Comparison Chart [FUN instructions] (2/5) No.
Appendix 1 H-series Instruction Support Comparison Chart [FUN instructions] (3/5) No.
Appendix 1 H-series Instruction Support Comparison Chart [FUN instructions] (4/5) No.
Appendix 1 H-series Instruction Support Comparison Chart [FUN instructions] (5/5) No.
Appendix 2 Standards Appendix 2 Standards MICRO-EH products are global products designed and manufactured for use throughout the world. They should be installed and used in conformance with product-specific guidelines as well as the following agency approvals and standards. Item Industrial Control Equipment[Safety] Hazardous Locations[Safety] Class I, Div II, A,B,C,D European EMC Directive European Low Voltage Directive Australia C-tick mark UL 508 CSA C22.2 no 142-M1987 UL 1604 CSA C22.