7 High-speed Counters
Ladder Program
Cyclic Task (Task 0)
P_First_Cycle
First Cycle Flag
Always ON Flag
IN00 interrupt Task (interrupt Task 140)
P_On
Always ON Flag
IN01 interrupt Task (interrupt Task 141)
P_On
Always ON Flag
7-50
BSET(071)
← Initializes the work area.
#0
D0
D5
MOVL(498)
#0
← Initializes the workpiece length data.
D10
MSKS(690)
← Interrupt input 0
0100
← Clears mask (Enables interrupts.)
#0
MSKS(690)
← Interrupt input 1
0101
← Clears mask (Enables interrupts.)
#0
INI(880)
← High-speed counter input 1
#0011
← PV change
#0002
← New PV data (Clears PV to 0.)
D0
MOVL(498)
← Interrupt input 0
← Moves latched PV A to work area.
A10144
D2
MOVL(498)
← Interrupt input 1
A10146
← Moves latched PV B to work area.
D4
-L(441)
← Latched PV B
D4
← Latched PV A
D2
D10
CJ2M CPU Unit Pulse I/O Module User's Manual
Need help?
Do you have a question about the SYSMAC CJ Series and is the answer not in the manual?
Questions and answers