FB_HVACSystemTaskInfo

The function block determines system variables of the task with a resolution of 1 ms, in which it is currently called. If the current cycle time is less than 1 ms, the set task cycle time tTaskCycleTime is output on the output variable tCycleTime.
The tTaskCycleTime of the PLC program must not be longer than 100 ms, as otherwise the digital outputs will be released.
The reason for this is that the internal K-bus of the bus terminals runs synchronously to the PLC program, the bus will no longer be triggered early enough and the bus terminal watchdog is activated.
VAR_OUTPUT
bReady : BOOL;
tTaskCycleTime : TIME;
tCycleTime : TIME;
usiSystemTask : USINT;
bReady: The variable is TRUE if the system information has been read out.
tTaskCycleTime: Set task cycle time.
tCycleTime: Cycle time required for the last cycle.
usiSystemTask: Task index of the task.
Requirements
Development environment | required library | required function |
---|---|---|
TwinCAT 3.1 build 4022.16 or higher | Tc2_HVAC V3.3.1.0 | TF8000 | TC3 HVAC V1.0.0.0 |