Controlling a Counter
Section 3-4
37
Capture Function
The Unit is equipped with a Capture Register for every Counter, which will contain
an actual Counter Value captured at a user defined moment in time. Every time a
Counter Value is captured, the contents of the Capture Register is overwritten with
the new Captured Value and the old Captured Value is lost. The Counter Value
can be captured by using the “Capture Counter Value Bit” in CIO.
If you want to use the Captured Value in your Ladder Program, you must use the
IORD-instruction to obtain the value. This instruction reads the Captured Value
from the Unit into a specified location in the memory of the PLC. For more details
on using the IORD-instruction and reading the Captured Value refer to section
Section 4-4
Note
The Open Gate Bit, Close Gate Bit, Preset Counter Bit, Reset Bit, or the Counter
Capture Bit in CIO may not be executed if turned ON for only one PLC cycle.
Always keep these bits turned ON until the execution status changes for the cor-
responding flags in n+21, n+25, n+29 or n+33.
Z-Input Status
For each counter the Z-input status is reflected in CIO. The bit is ON for exactly
one PLC-cycle-time after the Z-input has been activated.
Software Reset Bit:
0 1 = Reset Counter
Z-Input Reset Enable Bit:
0 = Reset by Z-input disabled
CNT3
CNT4:
n+7
n+10
CNT1:
CNT2:
n+1
n+4
1 = Reset by Z-input enabled
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Capture Counter Value:
0
→
1 = Capture Counter Value
CNT3
CNT4:
n+7
n+10
CNT1:
CNT2:
n+1
n+4
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Содержание CJ1W-CTL41-E
Страница 2: ...i SYSMAC CJ series CJ1W CTL41 E 4 Channel Counter Unit Operation Manual Produced September 2004...
Страница 3: ...ii...
Страница 5: ...iv...
Страница 9: ...viii...
Страница 31: ......
Страница 43: ......
Страница 73: ......
Страница 119: ......
Страница 123: ......
Страница 126: ......
Страница 127: ......
Страница 131: ......
Страница 133: ...116...