FB_ScheduleBlock: Schedule Block

Overview

The function block FB_ScheduleBlock is used to control actions at a defined month, day, and time.

The following graphic shows the pin diagram of the function block FB_ScheduleBlock:

G-SE-0033409.1.jpg

 

 

I/O Variables Description

The table describes the input variables of the function block in the TwidoEmulationSupport library:

Input

Data Type

Description

i_xEnable

BOOL

Enable the function block FB_ScheduleBlock.

i_etStartMonth

ET_Month

The month to set the output. (January to December).

i_etEndMonth

ET_Month

The month to reset the output. (January to December).

i_uiStartDay

UINT

[1..31] Activation start day

i_uiEndDay

UINT

[1..31] Activation end day

i_uiStartHour

UINT

[0..23] Activation start hour

i_uiEndHour

UINT

[0..23] Activation end hour

i_uiStartMinute

UINT

[0..59] Activation start minute

i_uiEndMinute

UINT

[0..59] Activation end minute

i_xMonday

BOOL

Run activity on Monday

i_xTuesday

BOOL

Run activity on Tuesday

i_xWednesday

BOOL

Run activity on Wednesday

i_xThursday

BOOL

Run activity on Thursday

i_xFriday

BOOL

Run activity on Friday

i_xSaturday

BOOL

Run activity on Saturday

i_xSunday

BOOL

Run activity on Sunday

G-SE-0032378.1.gif-high.gif

 

 

The table describes the output variables of the function block in the TwidoEmulationSupport library:

Output

Data Type

Description

q_xOutput

BOOL

This output is set to 1 when the present date and time are between the setting of the start of the active period and the setting of the end of the active period.

q_etScheduleBlockDiag     

ET_ScheduleBlockDiag

Diagnostic code ET_ScheduleBlockDiag.

q_sMsg

String

Diagnostic message

G-SE-0032379.1.gif-high.gif

 

 

The data structure DTU.ERROR (ENUM) describes errors which occur when using the functions of the CAA_DtUtility library. Error code range 5750-5799 is reserved for this library in the prefix registration for libraries. For more information, refer to CAA libraries/CAA_DTUtil.library/Data types/Enumerations/DTU.ERROR (ENUM).