Mitsubishi Q00JCPU User Manual page 653

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

10
DEVICE EXPLANATION
(c) Resetting the counter
Counter current values are not cleared even if the OUT C
OFF. Use the RST C
the contact OFF.
The count value is cleared and the contact is switched OFF at execution of when
the RST C
instruction.
[Ladder example]
X0
[Counter reset timing]
END
Sequence
program
ON
X0
OFF
Execution
RST C0
OFF
instruction
1) Precautions for resetting the counter
When the RST C
If the execution condition of the OUT C
of the RST C
instruction, the coil of C
OUT C
instruction to update the current value (increment the count value by
1).
In the above ladder example, when M0 turns from OFF to ON, the coil of C0
turns ON, updating the current value. When C0 reaches the preset value
finally, the contact of C0 turns ON, and the execution of the RST C0 instruction
clears the current value of C0. At this time, the coil of C0 also turns OFF.
When M0 is still ON in the next scan, the current value is updated since the
coil of C0 turns from OFF to ON at the execution of the OUT C0 instruction.
(The current value turns to 1.)
instruction to clear the counter's current value and switch
RST C0
RST C0
END
Count value cleared
& contact OFF
Figure 10.31 Counter resetting
instruction is executed, the coil of C
instruction is still ON after execution
is turned ON at the execution of the
[Ladder example]
M0
C0
Figure 10.32 Counter resetting ladder example
10.2 Internal User Devices
10.2.11 Counter (C)
instruction switches
RST C0
END
RST C0
Count value cleared
& contact OFF
also turns OFF.
K10
C0
RST C0
10
9
10
11
12
- 38

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents