Mitsubishi — 3.2 Explanations on Basic Instructions

3 Basic Instructions Explanations: 1. The instruction ATMR corresponds to the combination of AND and TMR. If the contact preceding ATMR is ON, the timer specified will begin to count. When the count value is greater than or equal to the setting value, the AND contact is ON. If the contact preceding ATMR is not ON, ATMR will automatically clear the count value. Program Example: Ladder diagram: Instruction code: Operation: X0 T5 ATMR K1000 Y0 LD X0 Loading in contact A of X0 Remarks: 1. Please refer to specifications for the model used for more information about the timers which can be used. 2. EH3 series PLCs whose version is 1.40 and SV2 series PLCs whose version is 1.20 support ATMR.

Explanations: 3. When the CNT instruction goes from Off to On, the designated counter coil will be driven, and the present value in the counter will plus 1. When the counting reaches the set value (present value = set value), the contact will be: 4. If there are other counting pulse inputs after the counting reaches its target, the contact and present value will stay intact. Use RST instruction to restart or reset the counting. Program Example: Ladder diagram: Instruction code: Operation:

LD X0 Loading in contact A of X0 X0 DVP-PLC Application Manual 3-10 Mnemonic Function Program steps Controllers ES EX SS SA SX SC EH2 SV EH3 SV2 ATMR 16-bit contact type timer counter 5 T-K T0 ~ T255,K0 ~ K32,767 Operand T-D T0 ~ T255, D0 ~ D11999 Controllers ES EX SS SA SX SC EH2 SV EH 3 SV 2 ATMR T5 K100 The setting value of T5 is K100. OUT Y0 When the count value is greater than or equal to the setting value, Y0 is ON.

Mnemonic Function Program steps Controllers ES EX SS SA SX SC EH2 SV EH3 SV2 CNT 16-bit counter 1 C-K C0 ~ C199, K0~K32,767 Operand C-D C0 ~ C199, D0 ~ D9999 Controllers ES EX SS SA SX SC EH 2 SV EH 3 SV 2 NO (Normally Open) contact Open collector NC (Normally Closed) contact Close collector CNT C20 K100 CNT C20 K100 Set value in counter C20 as K100