Panasonic FP Series Programming Manual page 290

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

DAY_OF_WEEK1
DAY_OF_WEEK1 returns the day of the week for any date as an INT. The number 1 corresponds
Description
to Monday; 7 corresponds to Sunday.
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.
see page 1319
PLC types
Data types
Data type
DATE
ANY16
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
The value iDAY_OF_WEEK_value = 2 corresponds to Tuesday.
ST
When programming with structured text, enter the following:
iDAY_OF_WEEK_value
Return the day of the week
I/O
Function
input
date
output
1 (Monday) – 7 (Sunday)
:= DAY_OF_WEEK1(DATE_value);
Date and time instructions
289

Advertisement

Table of Contents
loading

Table of Contents