Page 1 of 1

Modbus master settings

Posted: Tue Apr 11, 2017 2:25 pm
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

Re: Modbus master settings

Posted: Tue May 09, 2017 3:27 pm
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

Re: Modbus master settings

Posted: Tue May 09, 2017 3:32 pm
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