Details Of Dedicated Instructions - Mitsubishi Electric MELSEC-L02SCPU User Manual

Cpu module, built-in i/o function
Table of Contents

Advertisement

8.10.1

Details of dedicated instructions

(1) Current value read instructions: ICCNTRD1(P), ICCNTRD2(P)
ICCNTRD1
ICCNTRD1P
ICCNTRD2
ICCNTRD2P
Internal device
Setting data
Bit
(a) Setting data
Setting data
(b) Function
This function stores the current counter value in the special register.
For ICCNTRD1(P), the storage area is CH1 Current value (SD1880 or SD1881).
The number of steps is basically one.
(c) Error
In the following cases, an operation error occurs. Error flag (SM0) turns on and an error code is stored into
SD0.
• Other than "Normal Mode" is selected for "Operation Mode Setting" of the specified channel.
• High-speed counter function of the specified channel is not enabled.
(d) Program example
The latest value is stored into CH1 Current value (SD1880, SD1881) when M0 turns on.
242
Command
Command
Command
Command
R, ZR
Word
Bit
Word
Setting item
J\
U\G
Bit
Word
Setting range
ICCNTRD1
ICCNTRD1P
ICCNTRD2
ICCNTRD2P
Constant
Z
Others
K, H
$
Data type
(Error code: 4116)
(Error code: 4116)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents