Modbus
From KINGSTAR 4.3, KINGSTAR motion library provides Modbus function blocks (FBs) that allow you to use Modbus RTU and TCP master and slave.
Modbus function blocks in LogicLab
In KINGSTAR LogicLab 4.3 or later version, in Library Tree, you can find the Modbus FBs in the Connectivity folder. You'll also find the connection FBs in Ethernet and Serial folders.
- Modbus: Modbus commands.
- ModbusSlaveData: Modbus memory areas. Double-click an item to see the address range.
- Ethernet: TCP connection settings
- Serial: RTU connection settings.
Work with Modbus
KINGSTAR supports two modes for Modbus communication: RTU and TCP. You can use them at the same time, but the RTU master can only communicate with a RTU slave and the TCP master can only communicate with a TCP slave. Before you use RTU or TCP, you need to read Modbus RTU or Modbus TCP to know the prerequisites.