11 High-speed Counters
Software Reset
The high-speed counter's PV is reset when the corresponding High-speed Counter Reset Bit (A531.00
to A531.05) goes from OFF to ON.
The CPU Unit recognizes the OFF-to-ON transition of the High-speed Counter Reset Bit only at the begin-
ning of the PLC cycle during the overseeing processes. Reset processing is performed at the same time.
The OFF-to-ON transition will not be recognized if the Reset Bit goes OFF again within the same cycle.
Reset bit
PV reset
Additional Information
The comparison operation can be set to stop or continue when a high-speed counter is reset.
This enables applications where the comparison operation can be restarted from a counter PV of
0 when the counter is reset.
11-2-4 Reading the Present Value
The present value of a high-speed counter can be read in the following two ways.
• Value refreshed at the I/O refresh timing
• Value updated when a ladder program is executed → Read PV by executing a PRV instruction.
Reading the Value Refreshed at the I/O Refresh Timing
The PV that is stored in the following words can be read using the MOVL instruction or other instructions.
Read PV
High-speed counter 0
High-speed counter 1
High-speed counter 2
High-speed counter 3
High-speed counter 4
High-speed counter 5* A325 (upper digits) and A324 (lower digits)
* High-speed counter 5 is not supported by E10 CPU Units.
Reading the Value When a Ladder Program is Executed
Reading the High-speed Counter PV with a PRV Instruction
Execution condition
11-12
One cycle
PV not reset
PV not reset
PV not reset
Auxiliary Area word
A271 (upper digits) and A270 (lower digits)
A273 (upper digits) and A272 (lower digits)
A317 (upper digits) and A316 (lower digits)
A319 (upper digits) and A318 (lower digits)
A323 (upper digits) and A322 (lower digits)
@PRV
C1: Port specifier (example for high-speed counter input 0 (fixed))
#0010
C2: Control data (for reading PV)
#0000
S: First destination word
D100
15
D100
PV data lower bytes
D101
PV data upper bytes
→ Read PV from Auxiliary Area.
0
High-speed counter PV that was read
CP1E CPU Unit Software User's Manual(W480)
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers