8.2
Counter Function Dedicated Instruction
Current value read
ICCNTRD1, ICCNTRD2
LCPU
Structured ladder/FBD
ICCNTRD1
EN
ENO
The following instruction can go in the dotted squares.
ICCNTRD1, ICCNTRD1P, ICCNTRD2, ICCNTRD2P
■Executing condition
Instruction
ICCNTRD1
ICCNTRD2
ICCNTRD1P
ICCNTRD2P
■Argument
Input/output
Name
argument
Input argument
EN
Output argument
ENO
Setting
Internal device
data
Bit
Word
Processing details
This instruction stores a value at the time of instruction execution to the current value of the specified CH (refer to the
following).
Instruction
CH
ICCNTRD1(P)
CH1
ICCNTRD2(P)
CH2
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 );
ST
ENO:=
(EN);
ICCNTRD1
Executing condition
Description
Executing condition
Execution result
R, ZR
J\
Bit
Word
Device in which the current value is stored
SD1880, SD1881
SD1900, SD1901
Data type
Bit
Bit
U\G
Zn
Constant
8 BUILT-IN I/O FUNCTION INSTRUCTION
8.2 Counter Function Dedicated Instruction
8
Others
287