This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Change Duplex settings through scripts
#1
Hello,

is it possible to change this setting through scripting? 
   
Reply
#2
Can you explain why do you need to change it? For RS485 duplex must be set to half. It won't work with full duplex.
Reply
#3
(09.01.2023, 07:48)admin Wrote: Can you explain why do you need to change it? For RS485 duplex must be set to half. It won't work with full duplex.

I have a  smart RS485 energy meter 'Inepro MOD380' After every time the grid turns off LM5 doesnt see the signal, then if i change to full-duplex and then back to half-duplex it suddenly works again, it is the only way it reconnects to the meter.
That is why
Reply
#4
You can restart Modbus via a script like this:
Code:
os.execute('sh /lib/genohm-scada/plugins/modbus/stop.sh')
os.sleep(1)
os.execute('sh /lib/genohm-scada/plugins/modbus/start.sh')
Reply


Forum Jump: