AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.22.2 MODBUS.WRITEFLOAT
General Information
Type R/W
Description
This statement writes a floating-point value to
the specified ModBus slave.
Units TBD
Range TBD
Default
Value
TBD
Data Type Float
Start Ver-
sion
TBD
Description
This statement writes a floating-point value to the specified ModBus slave. If any error occurs,
this function sets MODBUS.ERR to indicate the source of the error. The register address
passed to this function is the first register address of the 32 bit floating point value.
This is a ModBus master statement. Set RuntimeProtocol to 3 before using it or a runtime error
is received.
ModBus master statements and functions cannot be nested. If you get an interrupt while wait-
ing for a response to a ModBus master statement or function, you cannot initiate another Mod-
Bus master statement or function in the interrupt handler. If you do, you get runtime error 36.
There is not complete standardization on the format of floating-point numbers among all Mod-
Bus devices. Set Modbus.FloatWordOrder to 0 to properly write floating point numbers to a
ModBus slave. Refer to Using an AKD BASIC as a ModBus Master.
Related Topics
MODBUS.WRITE16 | MODBUS.WRITE32
337 Kollmorgenâ„¢ | March 30, 2012