Previous Topic

Next Topic

Book Contents

Book Index

ForceCoil - 5, SlaveAddr, CoilAddr16, SPAddr16

A ModBus Master script command

When processed this command will result in the SPLat master sending out a ModBus function 5 query (Force single coil), then wait for the response.

Parameters are:

SlaveAddr

An 8-bit slave address

CoilAddr16

The 16-bit, 0-based address of a coil (0xxxx reference) in the slave.

SPAddr16

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 34x8 + 5 = 277. The value of this semaphore will be forced into the selected coil in the slave.

 

 

Previous Topic

Next Topic