Status Bytes with CODESYS

We use status bytes on the RevPi devices to enter multiple functions or information at a specific location in the process image. In the sections Status Bytes on the RevPi Core and Status Bytes on the RevPi Connect you can find out which status bytes are available on the RevPi devices and how you can use them.

Use of Status Bytes with CODESYS

CODESYS provides an automatic mapping between the variable you use in your application and the status byte of the RevPi device.

  • Double-click on the RevPi device in the device tree.
    The Mapping table opens.
    In the column Channel all status bytes of the RevPi device (here RevPi Core) are listed:

  • In the Variable column, enter a custom name for the status byte you want to use.

When loading a project on the RevPi device, the values are mapped automatically.

Mapping of the values in CODESYS

The default values for the configurable status bytes are:

Status byte

Defaults

RS485ErrorLimit1 10
RS485ErrorLimit2 1000
RevPiLED FALSE

If the default values are to be changed, the values must be assigned in the corresponding POU (Program Organization Unit). For more information about POU, refer to the CODESYS Online Help.