Block that performs a programmed enabling for a time based on RTC (Real Time Clock).
Ladder Representation

Block Structure
Variable Type |
Name |
Data Type |
Description |
VAR_INPUT |
EN |
BOOL |
Block enabling |
TIMEON_HOUR |
BYTE USINT SINT |
Enabling hour |
|
TIMEON_MINUTE |
BYTE USINT SINT |
Enabling minute |
|
TIMEON_SECOND |
BYTE USINT SINT |
Enabling second |
|
TIMEOFF_HOUR |
BYTE USINT SINT |
Disabling hour |
|
TIMEOFF_MINUTE |
BYTE USINT SINT |
Disabling minute |
|
TIMEOFF_SECOND |
BYTE USINT SINT |
Disabling second |
|
Q_OPTION# |
BYTE |
Output operation |
|
VAR_OUTPUT |
Q |
BOOL |
Block output |
Operation
When this block has a TRUE value in EN, it has two modes of operation. If Q_OPTION# is Normal, Q is enabled when the internal clock's time is equal to that defined by the parameters TIMEON and disabled when the internal clock's time is equal to the parameters set by TIMEOFF. If Q_OPTION# is Inverted, Q is disabled when the internal clock's time is equal to that defined by the parameters TIMEON and enabled when the internal clock's time is equal to the parameters set by TIMEOFF.
When EN has FALSE value, Q remains FALSE.
Block Flowchart

Example in Ladder

In the example above, the INTIME block is enabled, the Q_OPTION# input is enabled for NORMAL operation and the current time of the internal clock of the device is lower than the registered enabling inputs of the block (HOUR_ON, MINUTE_ON and SECOND_ON). This way, the Q output is disabled.

In the example above, the INTIME block is enabled, the Q_OPTION# input is enabled for NORMAL operation and the current time of the internal clock of the device is equal to the registered in the enabling inputs of the block (HOUR_ON, MINUTE_ON and SECOND_ON). This way, the Q output is disabled.

In the above example, the INTIME block is disabled. This way, regardless of the input, the Q output is disabled.

In the example above, the INTIME block is enabled, the Q_OPTION# input is enabled for NORMAL operation and the current time of the internal clock of the device is equal to the registered in the disabling inputs of the block (HOUR_OFF, MINUTE_OFF and SECOND_OFF). This way, the Q output is enabled.

In the example above, the INTIME block is enabled, the Q_OPTION# input is enabled for NORMAL operation and the current time of the internal clock of the device is superior to the registered in the disabling inputs of the block (HOUR_OFF, MINUTE_OFF and SECOND_OFF). Thus, the Q output is disabled.
Example in ST
The example below displays the instructions for applying the example above in the ST language.
VAR HOUR_ON : SINT := 9; MINUTE_ON : SINT := 26; SECOND_ON : SINT := 0; HOUR_OFF : SINT := 9; MINUTE_OFF : SINT := 27; SECOND_OFF : SINT := 0; END_VAR
DO1 := FB_INTIME( EN:=DI1, TIMEON_HOUR:=HOUR_ON, TIMEON_MINUTE:=MINUTE_ON, TIMEON_SECOND:=SECOND_ON, TIMEOFF_HOUR:=HOUR_OFF, TIMEOFF_MINUTE:=MINUTE_OFF, TIMEOFF_SECOND:=SECOND_OFF, Q_OPTION:=0);
|
|---|