PLC API Behavior of the output vector 5 control loops are managed in this diagram. In this case, "tCtrlCycleTime = 6 · tTaskCycleTime". The programmer must create the following array in the PLC if this function block is to be used: arrOutputVector : ARRAY[1..nNumberOfControlLoops] OF BOOL; The function block sets the bits in this vector to TRUE or FALSE. The control loops that are managed with the loop scheduler are to be switched into the eCTRL_MODE_ACTIVE state when the corresponding bit in the output vector is TRUE. See sample code below. Inputs VAR_INPUT nManValue : DWORD; eMode : E_CTRL_MODE; END_VAR TF4100 24 Version:
2.2.4 Name Type Description nManValue DWORD This input allows the first 32 bits in the output vector to be set in eCTRL MODE MANUAL. A 1 sets the first bit, a 2 the second bit, a 3 _ _ the first and second bits, ... eMode E CTRL MODE _ _ Input that specifies the operation mode [} 173] of the function block.