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

Скачать
Страница из 412
8-18
8.2 Counter Function Dedicated Instruction
8.2.1 ICCNTRD instruction
ICCNTRD1, ICCNTRD2
8.2  
Counter Function Dedicated Instruction
8.2.1  
ICCNTRD instruction
ICCNTRD1, ICCNTRD2
Function
This instruction stores a value at the time of instruction execution to the current value of the 
specified CH (refer to the following).
Program Example
The following program stores the most recent value to the CH 1 current value (SD1880, SD1881) 
when M0 turns ON.
[Structured ladder/FBD]
[ST]
ICCNTRD1(M0);
ICCNTRD1(P)
ICCNTRD2(P)
P: Executing condition
:
 
indicates any of the following
 
instructions.
ICCNTRD1
ICCNTRD1P
ICCNTRD2
ICCNTRD2P
Input argument
EN:
Executing condition
:Bit
Output argument
ENO:
Execution result
:Bit
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
Instruction
CH
Device in which the current value is stored
ICCNTRD1(P)
CH1
SD1880, SD1881
ICCNTRD2(P)
CH2
SD1900, SD1901
LCPU
ST
ICCNTRD1
EN
ENO
ICCNTRD1
(EN);
ENO:=
Structured ladder/FBD