IO Code
This function may be used to automatically generate the necessary program code for referencing hardware terminals to the PLC and BACnet objects. The generated code is created as a program in the PLC.
- 1. To start the IO Code generation, navigate to the BACnet server and select the Settings dialog.
- 2. Select the hardware and use the button IO Code.
- Digital and Analog input and output terminals and channels are detected and the program code is generated.
- Digital input channels are mapped to BACnet Binary-Input objects.
- Digital output channels are mapped to BACnet Binary-Output objects.
- Analog input channels are mapped to BACnet Analog-Input objects.
- Analog output channels are mapped to BACnet Analog-Output objects.
- 3. Using the button Create in Plc generates the code as a program in the folder POUs/BACnet_IoBus.
- 4. Call this program cyclically, e. g. from the POU MAIN.
IoBus_0_Device_2_EtherCAT();