Panasonic FP Series Programming Manual page 874

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F231_SEC_TO_DTBCD
This function converts a specified number of seconds into date and time. The time data is
Description
calculated from 01/01/2001 at 00:00 hours.
For a conversion from time data into seconds, please refer to F230_DTBCD_TO_SEC (see page
871).
Example:
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types
Availability of F231_SEC_TO_DTBCD (see page 1323)
Data types
Variable
s_SEC
d_DTBCD
Operands
For
s_SEC
d_DTBCD
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
Conversion of Seconds into Time Data
Data type
Function
ANY32
Area in which the number of seconds are stored (32 bits)
DTBCD
Head area in which time data is stored
Relay
WX
WY
WR
WL
-
WY
WR
WL
Set
permanently
for an instant
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
If
 the specified address using the index
modifier exceeds a limit.
 the number of seconds (s) >=
16#BC191380 (valid until 31 Dec. 2100
23:59:59).
 the data memory of 'd' exceeds the area.
Date and time instructions
Constant
-
-
873

Advertisement

Table of Contents
loading

Table of Contents