Enabling write access from the PLC

Objects representing an input information like ACC, AI, BI, etc. provide an input variable (nVal, fVal or bVal) whose value is transferred to the Present_Value property without further processing.

Objects representing an output information like AO, AV, etc. provide an input variable representing the PLC value (nVal, fVal, bVal). In addition, to activate the value at the specified program priority the variable bEnPgm needs to be set to TRUE. In case the value of bEnPgm is set to FALSE, the value will be set to NULL at the specified program priority.

In case of _5P function blocks for each of the priorities (with the exception of manual operator which is likely provided from the BMS) a separate flag is provided.

The currently active Priority can be determined from the variable eActPrio (1-16, 17=Relinquish_Default).