34
4 LABELS
4.3 Data Type
*1 The time data is used in the time data type function of standard functions. For the standard function, refer to the following.
MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)
*2 When using a constant for a label of the time data, prefix "T#" to the label.
■Data types of timers and counters
The data types of a timer, retentive timer, counter, and long counter are structures that have contacts, coils, and current
values.
*1 The unit of the current value is specified by instruction name.
*2 When use a long counter in the OUT LC instruction: 0 to 4294967295
When use a long counter in the UDCNTF instruction: -2147483648 to +2147483647
For the operation of each device, refer to the following.
MELSEC iQ-F FX5 User's Manual (Application)
The specification method of each member is the same as the member specification of the structure data type. (Page 38
Structures)
Time
*1
TIME Handles values as d (day), h (hour), m
(minute), s (second), or ms (millisecond)
T#-24d20h31m23s648 ms to
T#24d20h31m23s647 ms
*2
32-bit
String(32) STRING Handles a character string (character) Up to 255 letters (half-width
character)
Variable
Timer TIMER Structure that corresponds to a timer (T) of
a device
Page 34 Data types of timers and counters
Retentive Timer RETENTIVETIMER Structure that corresponds to a retentive
timer (ST) of a device
Counter COUNTER Structure that corresponds to a counter (C)
of a device
Long Counter LCOUNTER Structure that corresponds to a long
counter (LC) of a device
Pointer POINTER Type that corresponds to a pointer (P) of a device (MELSEC iQ-F FX5 User's Manual
(Application))
Data type Member
name
Data type of
member
Description Value range
Timer TIMER S Bit Indicates contacts. The operation is the same
as the contact of a timer device (TS).
0 (FALSE), 1
(TRUE)
C Bit Indicates coils. The operation is the same as the
coil of a timer device (TC).
0 (FALSE), 1
(TRUE)
N Word [unsigned]/Bit
String [16-bit]
Indicates a current value. The operation is the
same as the current value of a timer device
(TN).
0 to 32767
*1
Retentive Timer RETENTIVETIMER S Bit Indicates contacts. The operation is the same
as the contact of a retentive timer device (STS).
0 (FALSE), 1
(TRUE)
C Bit Indicates coils. The operation is the same as the
coil of a retentive timer device (STC).
0 (FALSE), 1
(TRUE)
N Word [unsigned]/Bit
String [16-bit]
Indicates a current value. The operation is the
same as the current value of a retentive timer
device (STN).
0 to 32767
*1
Counter COUNTER S Bit Indicates contacts. The operation is the same
as the contact of a counter device (CS).
0 (FALSE), 1
(TRUE)
C Bit Indicates coils. The operation is the same as the
coil of a counter device (CC).
0 (FALSE), 1
(TRUE)
N Word [unsigned]/Bit
String [16-bit]
Indicates a current value. The operation is the
same as the current value of a counter device
(CN).
0 to 32767
Long Counter LCOUNTER S Bit Indicates contacts. The operation is the same
as the contact of a long counter device (LCS).
0 (FALSE), 1
(TRUE)
C Bit Indicates coils. The operation is the same as the
coil of a long counter device (LCC).
0 (FALSE), 1
(TRUE)
N Double Word [unsigned]/
Bit string [32-bit]
Indicates a current value. The operation is the
same as the current value of a long counter
device (LCN).
*2
Data type Description Value range Bit
length