SPLat Logo

ModBus: Slave configuration

NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

ModBus: Slave configuration

Configuring a SPLat as a ModBus slave is very simple. You simply need to set up a Communications Control Block (CCB) with the required parameters and invoke it with a ComSetCCB instruction.

The CCB contains the address of the slave, and is frozen at design time. If you need the address to be set dynamically, say from user input, you can use the ComDevAddr instruction. The ComDevAddr instruction must be executed after the ComSetCCB instruction.