Timestr (Date And Time Character String Conversion) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

14.15 TIMEstr (Date and Time Character String Conversion)

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
W
W
X
Y
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 PRINT 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.
● Checking the combination of year, month, day, or day of the week is not performed.
WUME-FP7CPUPGR-12
14.15 TIMEstr (Date and Time Character String Conversion)
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
Real
St
Integer
numbe
rin
r
g
D
K
H
SF
" "
F
Index
modifie
r
14-75

Advertisement

Table of Contents
loading

Table of Contents