Panasonic FP Series Programming Manual page 873

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Date and time instructions
F230_DTBCD_TO_
SEC
This function converts time data (date and time) into the number of seconds. It calculates the time
Description
span between the specified time date and 01/01/2001 at 00:00 hours. The time data is specified in
the DUT "DTBCD".
For a conversion from seconds into time data, please refer to F231_SEC_TO_DTBCD (see page
872).
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.
Availability of F230_DTBCD_TO_SEC (see page 1323)
PLC types
Data types
Variable
Data type
DTBCD
s_DTBCD
ANY32
d_SEC
Operands
For
s_DTBCD
d_SEC
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
872
Time Data Conversion into Seconds
Function
Area in which the input time data is stored
Area in which the converted second information is stored (32
bits)
Relay
WX
WY
WR
WL
SV
-
WY
WR
WL
SV
Set
If
permanently
for an instant
T/C
Register
Constant
EV
DT
LD
FL
EV
DT
LD
FL
 the specified address using the index
modifier exceeds a limit.
 values other than BCD are specified for
's'.
 the value which exceeds the range in the
time data of 's' is specified.
-
-

Advertisement

Table of Contents
loading

Table of Contents