Logic Machine Forum
RS-485 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: RS-485 (/showthread.php?tid=5005)



RS-485 - piotreviron - 05.10.2023

Hello , I m newbie here

Can somebody help me with Modbus RS-485? I need step-by-step instruction how it works . I will be grateful if you can send me screenshots what should I do to make it work . I have to control heater on RS-485 and I don't know how to get value from the device and how to send  value to device .
Smile


RE: RS-485 - admin - 05.10.2023

Do you have Modbus documentation for your device? Without a list of coil/register addresses and data types it won't be possible to interface this device.


RE: RS-485 - piotreviron - 05.10.2023

I m sending documentation from my RTU 1 . I have there 2 devices on 1 address . I need to control theirs working status , cool or heat mode and I need to have the temperature status on visualization (Mosaic3.0). Can you help me with that?


RE: RS-485 - Daniel - 05.10.2023

Use the Read test functionality to read some registers form it, post here correct configuration. Use address based 0.


RE: RS-485 - piotreviron - 05.10.2023

Here is the result


RE: RS-485 - Daniel - 05.10.2023

Is this correct value?


RE: RS-485 - piotreviron - 05.10.2023

And the question is , how to have the temperature value in my Mosaic3.0 visualization ?

I think yes 'cuz , there could be 25,9 C'

(05.10.2023, 12:45)Daniel Wrote: Is this correct value?

Yes

(05.10.2023, 10:51)admin Wrote: Do you have Modbus documentation for your device? Without a list of coil/register addresses and data types it won't be possible to interface this device.



RE: RS-485 - Daniel - 05.10.2023

Do not worry about Mosaic for now, first you must read data from modbus and then write it to object.  Later you will select a widget you want and map this object to widget and job done.

Now when you have the settings is time to create profile in json format.  All the parameters of the file you can find here:
https://openrb.com/docs/modbus.htm

I created for you the starting point(see attached) and you can just eddit it and copy paste and change parameters. Notepadd++ is a good tool to use.
Once all is done you must import this profile to LM, then add device with addres 1 and select your profile.
Next step is to mapp  or create objects. Once device is created just click on mapping and finish the job.
If all goes well you should see values under objects tab.

If all this work then you can move to Mosaic.

PS. Each time you change profile you must delete device from LM and add it again.

Powodzenia Wink


RE: RS-485 - piotreviron - 06.10.2023

(05.10.2023, 13:36)Daniel Wrote: Do not worry about Mosaic for now, first you must read data from modbus and then write it to object.  Later you will select a widget you want and map this object to widget and job done.

Now when you have the settings is time to create profile in json format.  All the parameters of the file you can find here:
https://openrb.com/docs/modbus.htm

I created for you the starting point(see attached) and you can just eddit it and copy paste and change parameters. Notepadd++ is a good tool to use.
Once all is done you must import this profile to LM, then add device with addres 1 and select your profile.
Next step is to mapp  or create objects. Once device is created just click on mapping and finish the job.
If all goes well you should see values under objects tab.

If all this work then you can move to Mosaic.

PS. Each time you change profile you must delete device from LM and add it again.

Powodzenia Wink

Dziękuję , już rozumiem o co chodzi Big Grin