Справочник Пользователя для Mitsubishi Electronics MELSEC Q series MELSEC L series

Скачать
Страница из 412
8.2 Counter Function Dedicated Instruction
8.2.5 ICSMPRD instruction
8-23
8
B
U
IL
T-
IN
 I/
O
 FU
N
C
TI
O
N
 
IN
S
TRUC
TI
ON
IC
SM
PRD1,
 IC
SMPRD2
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