Data type
*1
Time
String(32)
Timer
Retentive Timer
Counter
Long Counter
Pointer
*1 The time data is used in the time data type function of standard functions. For the standard function, refer to the following.
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.
Data type
Timer
TIMER
Retentive Timer
RETENTIVETIMER
Counter
COUNTER
Long Counter
LCOUNTER
*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.
User's manual (Application)
The specification method of each member is the same as the member specification of the structure data type. (Page 28
Structures)
4 LABELS
24
4.3 Data Type
Description
TIME
Handles values as d (day), h (hour), m
(minute), s (second), or ms (millisecond)
STRING
Handles a character string (character)
TIMER
Structure that corresponds to a timer (T) of
a device
RETENTIVETIMER
Structure that corresponds to a retentive
timer (ST) of a device
COUNTER
Structure that corresponds to a counter (C)
of a device
LCOUNTER
Structure that corresponds to a long
counter (LC) of a device
POINTER
Type that corresponds to a pointer (P) of a device (User's manual (Application))
Member
Data type of
name
member
S
Bit
C
Bit
N
Word [unsigned]/Bit
String [16-bit]
S
Bit
C
Bit
N
Word [unsigned]/Bit
String [16-bit]
S
Bit
C
Bit
N
Word [unsigned]/Bit
String [16-bit]
S
Bit
C
Bit
N
Double Word [unsigned]/
Bit string [32-bit]
Value range
T#-24d20h31m23s648 ms to
T#24d20h31m23s647 ms
Up to 255 letters (half-width
character)
Page 24 Data types of timers and counters
Description
Indicates contacts. The operation is the same
as the contact of a timer device (TS).
Indicates coils. The operation is the same as the
coil of a timer device (TC).
Indicates a current value. The operation is the
same as the current value of a timer device
(TN).
Indicates contacts. The operation is the same
as the contact of a retentive timer device (STS).
Indicates coils. The operation is the same as the
coil of a retentive timer device (STC).
Indicates a current value. The operation is the
same as the current value of a retentive timer
device (STN).
Indicates contacts. The operation is the same
as the contact of a counter device (CS).
Indicates coils. The operation is the same as the
coil of a counter device (CC).
Indicates a current value. The operation is the
same as the current value of a counter device
(CN).
Indicates contacts. The operation is the same
as the contact of a long counter device (LCS).
Indicates coils. The operation is the same as the
coil of a long counter device (LCC).
Indicates a current value. The operation is the
same as the current value of a long counter
device (LCN).
Bit
length
32-bit
*2
Variable
Value range
0 (FALSE), 1
(TRUE)
0 (FALSE), 1
(TRUE)
*1
0 to 32767
0 (FALSE), 1
(TRUE)
0 (FALSE), 1
(TRUE)
*1
0 to 32767
0 (FALSE), 1
(TRUE)
0 (FALSE), 1
(TRUE)
0 to 32767
0 (FALSE), 1
(TRUE)
0 (FALSE), 1
(TRUE)
*2