9
-
35
(b) Current value update (count value + 1)
The current value is updated (count value + 1) at the leading edge (OFF ON) of the OUT C instruction.
The current value is not updated while the coil is off, or when it remains on or turns off from on by the OUT C
instruction.
(c) Resetting the counter
The current counter value is not cleared even if the OUT C instruction is turned off.
To clear the current value and to turn off the contact of the counter, use the RST C instruction.
At the time of execution of the RST C instruction, the counter value is cleared, and the contact is also turned
off.
Figure 9.33 Current value update timing
Figure 9.34 Resetting the counter
X0
C0
K10
X0
OFF
OFF
ON
ON
END
END
END
OUT C0
OUT C0
OUT C0
[Ladder example]
[Current value update timing]
Sequence
program
Coil C0
Current value
update
Current value
update
X0
RST
C0
X0
OFF
OFF
ON
END
END
END
RST C0
RST C0
RST C0
[Ladder example]
[Counter reset timing]
Sequence
program
Execution
Count value cleared,
the contact turned off
Count value cleared,
the contact turned off
RST C0
instruction