First steps with BACnet/IP

The BACnet/IP supplement is already installed on the CX8091. BACnet/IP is only supported via Ethernet ports X101 and X102. The Ethernet port X001 is not used for BACnet applications. It can be used for programming and configuration. However, this is not necessary, since the switched port X101/102 can also be used for these purposes.

For the example you need a PC with TwinCAT R3 build 2241 or higher, a digital input terminal (KL1104), a digital output terminal (KL2114) and a KL9010 end terminal. Connect the terminals to the CX8091. To test BACnet you need a PC with Intel chipset and real-time Ethernet driver installed.

First steps

  1. Disable the OPC UA server (see Deactivating the OPC UA server)
     
  2. Connect your PC with the CX8091 X101. The IP address is set to DHCP by default (see Address selection switch).
    A local IP address is issued if the CX is operated in a local network without DHCP server. Usually this takes 2 to 3 minutes.
     
  3. Switch TwinCAT on the PC to Config mode (blue TwinCAT icon) and start the System Manager.
     
  4. Then use a broadcast search on your programming PC to find the CX. In the System Manager, click on the PC symbol (Choose Target System) or press >F8<

  5. First steps with BACnet/IP 1:

     
  6. The following dialog box opens; click on Search (Ethernet).

  7. First steps with BACnet/IP 2:
     
  8. Select option 1 if DHCP was used for addressing or option 2 if the IP address was not allocated by the DHCP server.
    Then click on Broadcast Search.

  9. First steps with BACnet/IP 3:

    Your network is scanned for Beckhoff controllers. If none is found, this means that the DHCP of the controller is not yet completed or the network settings on your PC are incorrect. Another reason may be a disconnected network cable.
     
  10. By default the host name made up of "CX-" and the last 4 bytes of the MAC address. You can find the MAC address on the side of the CX80xx. The MAC address is always 6 bytes long and the first three bytes are the vendor ID, which is always 00 01 05 in the case of Beckhoff devices.

  11. First steps with BACnet/IP 4:

    An X next to connected means that the CX is already known in the system and can be used. To make it known, click in the list on the CX with which you want to connect and then click on Add route. An input mask opens with User name and Password. By default there is no password, simply confirm by clicking on OK. Afterwards the X should appear next to connected.
     
  12. The CX should now appear in the list of devices. Select it and confirm with OK.
     
  13. In the bottom right corner of the System Manager check whether the connection is available. The indicator must be blue or green but not yellow.
  14. First steps with BACnet/IP 5:
     
  15. If the indicator is green, switch the CX to Config mode ([Shift] [F4], or press the blue TC icon in the System Manager).
    The System Manager will now prompt you whether you want to switch to Config mode. Confirm with OK.
     
  16. The indicator at the bottom right of the System Manager switches to blue. The TC LED of the CX80xx should now also be blue.
     
  17. Now click on I/O Devices and then on Scan Devices.

  18. First steps with BACnet/IP 6:
     
  19. A message appears to indicate that not all devices were detected automatically.
     
  20. Usually the CCAT interface (CX809x) or the corresponding fieldbus interface (other CX80xx devices) is found plus either a K-bus interface or an EtherCAT interface, depending on which terminals are connected to the CX.

  21. First steps with BACnet/IP 7:

    The CCAT interface must be present in the System Manager file and may not be deleted.
    If an error message should appear when scanning, check the revision level of your TwinCAT version and perform an update if necessary.
     
  22. Click on the BACnet device and add a BACnet server.

  23. First steps with BACnet/IP 8:
     
  24. Now select the server.
    In the Settings tab then select EtherCAT/K-Bus AutoMapping and press the Map button.
    Confirm the next dialog also with Map

  25. First steps with BACnet/IP 9:
     
  26. After successful mapping your configuration should have been extended with the BACnet objects corresponding to the terminals.

  27. First steps with BACnet/IP 10:
     
  28. Now activate the configuration. A PLC program is not necessary.
     
  29. For the first binary output click on the Online tab and set the PresentValue to active. The digital output should now switch on.

  30. First steps with BACnet/IP 11:

    If not, check the following:
  31. If your PC has an Ethernet chipset from Intel, you can now operate this PC as a BACnet client, scan the BACnet network, add the CX8091 and control the digital output with the BACnet client. Ensure that you are in the same IP network.

  32. First steps with BACnet/IP 12: