Using the FB created by FB_Code

The code generated by FB_Code is not called automatically. The first lines in the variable declaration of the generated FB contain the usage information.

Sample BACnet IP

(* Usage : 
fbBeckhoff_1062412 : FB_BACnet_Beckhoff_1062412 :=(Client:=(nDeviceInstance := 42));
*)

Cyclic call, e.g. in POU Main
Using the FB created by FB_Code 1:

Sample BACnet MS/TP

(* Usage : 
{attribute 'TcLinkTo' := '.BACnet_AmsNetId := TIID^Device 3 (BACnet MSTP)^Inputs^AmsNetId'}
fbMstpDevice_3 : FB_BACnet_Adapter;
fb_101_Novos_Touch_BACnet_MSTP : FB_BACnet_101_Novos_Touch_BACnet_MSTP :=(Client:=(Adapter := fbMstpDevice_3, nDeviceInstance := 101));
*)

Cyclic call, e.g. in POU Main
Using the FB created by FB_Code 2:

Using the FB created by FB_Code 3:

Please note that the MS/TP adapter FB must be called cyclically in addition to the FB representing the MS/TP device.