Download Modbus for Field Technicians
Transcript
Modbus for Field Technicians PRACTICAL HELP The FieldServer Modbus RTU drivers offer several function moves that handle 32-bit integers and 32-bit float values. More importantly, these function moves consider all different forms of byte sequencing. The following table shows the FieldServer function moves that copy two adjacent 16-bit registers to a 32-bit integer value. Function Keyword Swap Mode Source Bytes Target Bytes 2.i16-1.i32 N/A [ab][cd] [abcd] 2.i16-1.i32-s byte and word swap [ab][cd] [dcba] 2.i16-1.i32-sb byte swap [ab][cd] [badc] 2.i16-1.i32-sw word swap [ab][cd] [cdab] The following table shows the FieldServer function moves that copy two adjacent 16-bit registers to a 32-bit floating point value: Function Keyword Swap Mode Source Bytes Target Bytes 2.i16-1.ifloat N/A [ab][cd] [abcd] 2.i16-1.ifloat-s byte and word swap [ab][cd] [dcba] 2.i16-1.ifloat-sb byte swap [ab][cd] [badc] 2.i16-1.ifloat-sw word swap [ab][cd] [cdab] Page 73