ForceMultCoils – 15, SlaveAddr, CoilAddr16, ItemCount, SPAddr16
A ModBus Master script command
When processed this command will result in the SPLat master sending out a ModBus function 15 query (Force coils), then wait for the response.
Parameters are:
| Item | Bit Length | Description |
|---|---|---|
| SlaveAddr | 8 | An 8-bit slave address |
| CoilAddr16 | 16 | The 16-bit, 0-based address of a coil (0xxxx reference) in the slave. This will be the starting point for the write. |
| ItemCount | 8 | An 8-bit count of how many coils are to be written (forced). The minimum is 1. The maximum is determined by available communications buffer size (documented elsewhere). ItemCount contiguous items will be written in the slave. |
| SPAddr16 | 16 | A 16-bit semaphore address within the SPLat master’s RAM, counting from RAM byte 0, bit 0. For example, RAM byte 34, bit 5 would be 34×8 + 5 = 277. ItemCount semaphores read from the master, starting at this address, will be written to contiguous coils in the slave. |