Sets real value to registers of given byte order. The argument byte order must be one of the following:
MODBUS_REAL_ABCD
MODBUS_REAL_BADC
MODBUS_REAL_CDAB
MODBUS_REAL_DCBA
The routine sets argument error' to
E_INVALID` on any other value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | value |
Real value to set. |
||
integer(kind=u2), | intent(out) | :: | registers(2) |
Registers to write to. |
||
integer, | intent(in) | :: | byte_order |
Byte order. |
||
integer, | intent(out), | optional | :: | error |
Error code. |