Modbus master settings

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

Moderator: Benj

Post Reply
Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Modbus master settings

Post by Walbeek »

Hi there,

I'm testing the modbus master function in FC6.
The modbus commands seems to use standard Modicon addressing for all registers.
I have some PLC-controllers that I want to use the modbus master with.
They all use different addresses than the standard listing.
For example, I would like to use the ForceSingleCoil command for testing.
In the Koyo Click PLC, the Y001 output is on modbus address 8193.
In the Picsys PL250 PLC, the Q1/B1 is on modbus address 120.
Are there any settings to chose the location of the output?
Please let me know if anyone can help me.

Rinie
Greetings, Rinie
Flowcode V7 user

Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Re: Modbus master settings

Post by Walbeek »

Hi there,

Can anybody help me with the Modbus function in Flowcode?
I'm testing "ForceSingleCoil" by sending this to a Slave with address 1, coli 1 to 32 depending on inputs, and 1 as a value for the coil.
I asume that this should switch the coil in the Slave, in this case a PLC to test with.
The PLC doesn't seen to respond.
I have connected a logic analiser and data goes out, the analiser doesn't give errors on the modbus protocol.

When I use "ForceSingleCoil", what goes out?
The PLC uses modbus address 8193 for output Y000.
I can't find any info on what is send, is "Coil 1" address 8193 or isn't this a standard modbus value?
Please let me know

RInie
Greetings, Rinie
Flowcode V7 user

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: Modbus master settings

Post by Benj »

Hello Rinie,

Modbus coils have Modbus addresses 1 - 9999 which equates to 0 - 9998 for the data address.

So for Modbus address 8193 you should send the data address 8192.
I can't find any info on what is send, is "Coil 1" address 8193 or isn't this a standard modbus value?
Coil 1 would be address 0.

https://www.google.co.uk/search?q=modbus+address+range

Post Reply