WEEK_DAY_CMP (51)
WEEK_DAY_CMP (51)
ID 51
Application: |
PLC |
SIM |
Group: TIMERS AND COUNTERS
Short description:
Function propagating the signal on selected days of the week.
Inputs (1):
no. |
type |
impulse |
mark |
notes |
1 |
B |
no |
IN |
input signal |
Outputs (1):
no. |
type |
impulse |
mark |
notes |
1 |
B |
no |
OUT |
output signal |
Settings:
no. |
type |
name |
notes |
1 |
B |
MON |
Monday marker |
2 | B | TUE | Tuesday marker |
3 | B | WED | Wednesday marker |
4 | B | THU | Thursday marker |
5 | B | FRI | Friday marker |
6 | B | SAT | Saturday marker |
7 | B | SUN | Sunday marker |
Function operation:
The WEEK_DAY_CMP function allows the signal to be propagated to the function output on selected days of the week, set during the creation of the function block. The function reads the current day of the week from the appropriate register, which in the next step it compares with the marker for that day, set in the settings parameters. If a marker has been set for the current day, the function propagates the signal from the IN input to the OUT output, otherwise it sets the OUT output to the low state.
R registers and M markers used:
No. |
name |
description |
R - read, W - write |
notes |
R3753 |
Date_Day_of_Week | Date | R |
output signal |