14.28 ETIMEstr (Date and Time Character String Conversion: With
Storage Area Size)
■
Ladder diagram
■
List of operands
Operand Description
S1 Starting address of the device that stores date and time information (7 words)
S2 Starting address of the device that stores conversion patterns (hex data, 1 word)
D Starting address of the device that stores the string data as the conversion result
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S1 ● ● ● ● ● ● ● ●
S2 ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ●
■
Outline of operation
● This instruction converts data and time information to character strings.
● The date and time information to be output is year, month, day, day of the week, hour,
minute, and second.
● This instruction can be used when date and time information is required for creating mail
texts. This instruction is used in combination with the EPRINT instruction.
■
Processing
● Converts the date and time information specified by [S1] to ASCII code, and stores it as
string data in the area that starts with [D].
● The conversion pattern is specified for [S2].
■
[S1]: Settings of date and time information
● Specify the starting address of the device that stores the date and time information.
● Specify SD50 if you want to output the current time and date of PLC.
14.28 ETIMEstr (Date and Time Character String Conversion: With Storage
Area Size)
WUME-FP7CPUPGR-12 14-115