problems understanding / using modbus component

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

problems understanding / using modbus component

Post by CSM2711 »

Hi,
I'm trying to get a modbus communication right now, unfortunately I have an understanding problem here.
I hope someone can help with this.
I use the valve from the appendix. Now I want to change the setpoint (register 0x0004,0x00005).
Here I would have to send the following string:

SlaveID: 1 Function code 6 Address0x0006 Data XXX

But if I use the function present singleRegister (functioncode6) starts the addressing at 40001 so this can not work or I understand something wrong here?

communication protocol
https://www.voegtlin.com/data/329-3042_ ... igicom.pdf

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: problems understanding / using modbus component

Post by Benj »

Hello,

Modbus addresses are strange and are fairly misleading.

Address 40001 really equates to Register 0.

So sending the command singleRegister with the address 4 and 5 will generate the 0x0004 and 0x0005 you need.

Post Reply