Writing to Modbus ASCII Holding Registers


Recommended Posts

1) I think you are using the old driver here. You should see the type of I/O types you talk about in #2. Just don't use the old driver. On the new driver, you can (at least under RTU) simply set an input channel, meaning if you have read holding register S16, you can do mychannel = 4 and it will set that holding register to 4. Give it a try under ASCII

2) Set Register S16 is the same as write to holding register. You can't write to an input register, so "holding" is assumed. The (6) means use Modbus function 6. S16 is the data type, in this case Signed 16 bit integer.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.