Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

The setting of the option "Enabled 1" is necessary, since the variable "xExec" is not used in any task and writing would therefore not work.

...


Image Added


Settings on the Modbus_TCP_Slave_Device (slave)

Tab 'General'

  • Activate monitoring of the communication.

    Image Added

    Warning

    The unit ID must not be used for Modbus TCP!
    This is only used for TCP/RTU gateways.

    Info

    The unit ID is only used for forwarding (gateway) to a Modbus Serial Bus.
    For TCP/IP, the MODBUS-Server is addressed by means of the IP address.

...

  • In this case, the MODBUS unit ID is not used (the value 0xFF has to be used).
    For a serial connection, the Modbus devices are addressed with unit IDs from 1 to 247 (0 is used for broadcast addresses).

Tab 'I/O mapping'

  • Assign input and output variables.

...


  • Image Added


Downloading and starting the projects

...

  • Load the application to the controller.
    Image Removed
    Image Added

Slave

  • Load the application to the controller

Note

The value changes only after transmission has been triggered manually in the master.


Image RemovedImage Added