Modbus ASCII with a Flexy

Hi,
I would like to read/write data in a sensor ‘Raven Eye’.
This sensor use RS485 Modbus ASCII.
Can the Flexy communicate easily in Modbus ASCII ? Do you have a method or script ?
I saw on the other forum ‘ewon’, the script exists, Simon of Ewon Support sent it.
I have not access to the script on the forum, my account seems desactivated.
Can you verify how I can get it ?
https://techforum.ewon.biz/thread-171.html

Thank you,
Remi

Hi Remi,

Here’ the files from that forum

ModbusAscii.zip (17.1 KB)

Thank you !

Welcome!

Hi,
I have a respond, but I don’t understand…
I want to read code 3 address 1014 format float.
My tag stays at 0 ‘unknow’. The address of the tag : 31015,F,1
(I tried format IF or 31014 … always at 0 unknow)

The sensor sends really a value at address 1014 ? ( 01 81 01 7D )
What is the problem according you ?

FlexyModbus

Thank you
Remi

Tim, I found the problem.
I have mixed code 3 and code 4 for adress 3xxxx and 4xxxx. I needed code 3, so adress 4xxxx it was necessary.
Thank you !

Hi Remi,

Glad to hear you got it up and running!

Hi,
How I send a command on modbus code 16 on address 4000 ? (Important, the sensor doesn’t accept code 6)

Thank you,
Remi

Tim,
do you know if this Modbus Ascii IoServer can send command ?
I see nothing in debug when I try to write on the value.
Thank you,
Remi

Hi Remi,

I haven’t worked with this too much before, I may need to check with some colleagues in Belgium on Monday to see what the limitations of this IOserver are

OK,
I will waitting your answer about the command.
Thank you very much Tim !

Remi

Hi Remi,

It looks like the person who made this IO server is going to be on vacation until Wednesday the 17th. I may need to wait a little bit to hear back from him on this one

Hi Tim,
humm it is too long for my tests. I must to finish this week and I return the material after.
Maybe a colleague can respond ?
I see on the other forum, at the bottom of the first message, it seems that the code source is accessible.
Maybe with the source code we will find if the command code 6/16 is functional or not…
Do you have this source code ?

Thank you,
Remi

Hi Remi,

This is what I as able to find for the source code

ModbusAsciiSources.zip (140.4 KB)

Hi Tim,
Did you have time to discuss with the person who made this IO server ? (about using the code 16)

Thank you,
Remi

Hi Remi,

Which question did you have?

Hi Tim,
same question since 5th July.
On Modbus Ascii, how I send a command on modbus code 16 on address 4000 ? (Important, the sensor doesn’t accept code 6)

Thank you,
Remi

He said he doesn’t have a device around right now to test it but he just wrote this and asked if you could try it out

ModbusAscii.zip (17.3 KB)

He said you need to use the format I16 or W16 in the Tag address

Hi,
the new IO server can’t read anything.
All the tags are at 0 with an error ‘Unknow’.

(I tried W16 instead W, but I think that the problem is before, directly on the IO_Server and not the address)

Thank you for your help.
Remi

Hi Remi,

I can check with them and let you know what I find out. Were you able to try an I16 tag address?