BaInterface

TcHmiBa controls that support the BaInterface can also be used without the BaSite and TF8040 PLC templates. Functionality and behavior may vary.

BaInterface 1:

For more information, see the documentation for BaInterfaceHandler.

Use

The BaInterface attribute from the BaData category requires a TcHmi symbol.

Without specification of structure and content by a TF8040 PLC template, the assignment of the variables for the control must be done via the attribute BaInterfaceSymbolNames from the category BaData.

Sample

Explanation using the sample of a self-created PLC function block FB_SimpleLight for toggling a light. The state-variable bState is stored in a structure.

FUNCTION_BLOCK FB_SimpleLight
VAR_INPUT
  bToggle       : BOOL;
END_VAR
VAR_OUTPUT
  stFeedback    : LightFeedback;
END_VAR

This is to be used by the TcHmiBa control Light.

For this purpose, the symbol of the function block is transferred to the BaInterface attribute and then the variables are assigned via the BaInterfaceSymbolNames attribute.

BaInterface 2:

Using nested symbols

Nested symbols can be accessed with the following syntax.

stFeedback::bState