Applies To: |
|
Summary: |
What Modbus function codes does the Citect MODBUS driver support? |
Solution: | ||||||||||||||||||
The MODBUS driver supports read functions
1, 2, 3, 4 & 20 and write functions 5, 6, 15,16 & 21.
For writes, there is a choice depending upon what addresses you are writing to and how many data blocks are written. For example, if you are writing to an output register, then the driver will automatically use Fn6 for one (16bit) register or Fn16 for multiple registers (i.e.. writing real numbers or two or more consecutive integers). See table below for a summary -
Function codes 20 and 21 are only available with Modbus driver version 2.04.07, and later. See also article Q2930. Note: Whilst this KB article refers to the MODBUS driver, the comments can also be applied to the MODNET driver. |
Keywords: |
Related Links
Attachments