ICLTHRD1, ICLTHRD2
8.2.4
ICLTHRD instruction
ICLTHRD1(P)
ICLTHRD2(P)
Structured ladder
ICLTHRD1
EN
ENO
n
Input argument
EN:
n:
ENO:
Output argument
d:
Function
This instruction stores a latch count value n of the specified CH (refer to the following) to
• ICLTHRD1(P): CH1
• ICLTHRD2(P): CH2
Program Example
The following program stores the latch count value 1 of CH 1 to D100 and D101 when M0 turns
ON.
[Structured ladder]
[ST]
ICLTHRD2(M0, 1, D100);
8.2 Counter Function Dedicated Instruction
8-22
8.2.4 ICLTHRD instruction
ST
ENO:=
ICLTHRD1
d
Executing condition
Latch count value
Execution result
Start number of the device in which the latch count value is
stored
Internal device
Setting
data
Bit
Word
−
n
−
d
ICLTHRD1, ICLTHRD2
P: Executing condition
instructions.
ICLTHRD1
ICLTHRD1P
(EN, n, d);
ICLTHRD2
ICLTHRD2P
:Bit
:ANY16
:Bit
:ANY32
J
\
R, ZR
U
Bit
Word
−
−
L CPU
:
indicates any of the following
Zn
Constant
Others
\G
−
.
d
−