Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
8-22
8.2 Counter Function Dedicated Instruction
8.2.4 ICLTHRD instruction
ICLTHRD1, ICLTHRD2
8.2.4 ICLTHRD instruction
ICLTHRD1, ICLTHRD2
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/FBD]
[ST]
ICLTHRD1(M0, 1, D100);
ICLTHRD1(P)
ICLTHRD2(P)
P: Executing condition
:
indicates any of the following
instructions.
ICLTHRD1 ICLTHRD1P
ICLTHRD2 ICLTHRD2P
Input argument
EN:
Executing condition :Bit
n:
Latch count value (1,2) :ANY16
Output argument
ENO:
Execution result :Bit
d:
Start number of the device in which the latch count value is
stored
:ANY32
Setting
data
Internal device
R, ZR
J\
U\G
Zn Constant Others
Bit Word Bit Word
n


LCPU
ST
ICLTHRD1
EN ENO
n
ICLTHRD1
(EN, n, d);ENO:=
d
Structured ladder/FBD
d
d