22 LABELS
22.4 Data Types
375
22
• The bit data in the word type label can be used by specifying a bit number.
• The bit type array label can be used as 16-bit or 32-bit data by specifying the number of digits.
For the bit specification and digit specification methods, refer to the following.
MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks)
■Timer and counter data types
The data types of the timer, counter, long counter, retentive timer, long retentive timer, and long timer are the structures having
a contact, coil, or current value.
*1 The unit of the current value is set in CPU parameters ("Timer Limit Setting").
For details on the operation of each device, refer to the following.
Page 330 DEVICES
The specification method of each member is the same as that of the structure data type. ( Page 381 Structures)
Data type Member
name
Member data type Description Value range
Timer TIMER S Bit Indicates a contact. The operation is the same
as the contact (TS) of a timer device.
0 (FALSE), 1 (TRUE)
C Bit Indicates a coil. The operation is the same as
the coil (TC) of a timer device.
0 (FALSE), 1 (TRUE)
N Word [unsigned]/bit
string [16 bits]
Indicates the current value. The operation is the
same as the current value (TN) of a timer
device.
0 to 65535
*1
Retentive timer RETENTIVETIMER S Bit Indicates a contact. The operation is the same
as the contact (STS) of a retentive timer device.
0 (FALSE), 1 (TRUE)
C Bit Indicates a coil. The operation is the same as
the coil (STC) of a retentive timer device.
0 (FALSE), 1 (TRUE)
N Word [unsigned]/bit
string [16 bits]
Indicates the current value. The operation is the
same as the current value (STN) of a retentive
timer device.
0 to 65535
*1
Long timer LTIMER S Bit Indicates a contact. The operation is the same
as the contact (LTS) of a long timer device.
0 (FALSE), 1 (TRUE)
C Bit Indicates a coil. The operation is the same as
the coil (LTC) of a long timer device.
0 (FALSE), 1 (TRUE)
N Double word [unsigned]/
bit string [32 bits]
Indicates the current value. The operation is the
same as the current value (LTN) of a long timer
device.
0 to 4294967295
*1
Long retentive timer LRETENTIVETIMER S Bit Indicates a contact. The operation is the same
as the contact (LSTS) of a long retentive timer
device.
0 (FALSE), 1 (TRUE)
C Bit Indicates a coil. The operation is the same as
the coil (LSTC) of a long retentive timer device.
0 (FALSE), 1 (TRUE)
N Double word [unsigned]/
bit string [32 bits]
Indicates the current value. The operation is the
same as the current value (LSTN) of a long
retentive timer device.
0 to 4294967295
*1
Counter COUNTER S Bit Indicates a contact. The operation is the same
as the contact (CS) of a counter device.
0 (FALSE), 1 (TRUE)
C Bit Indicates a coil. The operation is the same as
the coil (CC) of a counter device.
0 (FALSE), 1 (TRUE)
N Word [unsigned]/bit
string [16 bits]
Indicates the current value. The operation is the
same as the current value (CN) of a counter
device.
0 to 65535
Long counter LCOUNTER S Bit Indicates a contact. The operation is the same
as the contact (LCS) of a long counter device.
0 (FALSE), 1 (TRUE)
C Bit Indicates a coil. The operation is the same as
the coil (LCC) of a long counter device.
0 (FALSE), 1 (TRUE)
N Double word [unsigned]/
bit string [32 bits]
Indicates the current value. The operation is the
same as the current value (LCN) of a long
counter device.
0 to 4294967295