Panasonic FP Series Programming Manual page 291

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Date and time instructions
GET_RTC_DT
GET_RTC_DT reads the PLC's real-time clock value for the clock/calendar function. If the PLC has
Description
no real-time clock or if the real-time clock is not functioning, the result is an invalid date and time
value.
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC types
Data types
Data type
DATE_AND_TIME
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD
ST
When programming with structured text, enter the following:
DT_value
:= GET_RTC_DT();
290
Read the Real-Time Clock
Availability of GET_RTC_DT (see page 1326)
I/O
Function
output
date and time

Advertisement

Table of Contents
loading

Table of Contents