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


 
8.2 Counter Function Dedicated Instruction
8.2.5 ICSMPRD instruction
8-23
8
BUILT-IN I/O FUNCTION
INSTRUCTION
ICSMPRD1, ICSMPRD2
ICSMPRD1, ICSMPRD2
8.2.5 ICSMPRD instruction
ICSMPRD1, ICSMPRD2
Function
This instruction stores a sampling count value of the specified CH (refer to the following) to .
ICSMPRD1(P): CH1
ICSMPRD2(P): CH2
Program Example
The following program stores the sampling count value of CH 1 to D100 and D101 when M0
turns ON.
[Structured ladder/FBD]
[ST]
ICSMPRD1(M0, D100);
ICSMPRD1(P)
ICSMPRD2(P)
P: Executing condition
:
indicates any of the following
instructions.
ICSMPRD1 ICSMPRD1P
ICSMPRD2 ICSMPRD2P
Input argument
EN:
Executing condition :Bit
Output argument
ENO:
Execution result :Bit
d:
Start number of the device in which the sampling count value
is stored
:ANY32
Setting
data
Internal device
R, ZR
J\
U\G
Zn Constant Others
Bit Word Bit Word

LCPU
ST
ICSMPRD1
EN ENO
ICSMPRD1
(EN, d);ENO:=
d
Structured ladder/FBD
d
d