Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modbus Plugin
#6
Actually the number of valves is adjustable in SIP.
If you go to Options > Station handling and change the number of expansion boards. Each "expansion board" adds 8 stations so if you change the number of expansion boards from 0 to 1 you will now have 16 stations...

The Signaling capability is shown in the signalling examples plugin. Look in SIP/plugins/signaling_examples.py and you will see simple functions for each signal that SIP sends.

The function under ### valves ### receives a signal when SIP tries to start or stop a station/valve. That can be used in a plugin to send the modbus command to your slave arduinos.

The power_node.ino arduino code is used for controlling 4 or 8 relays. You will need to set the code for "active low" relays for the sainsmart relays (lines 17 and 18 in the code)

There is a relay_board plugin for SIP that you can use with your sainsmart relays:
https://github.com/KanyonKris/relay_board/wiki

You can install the plugin from Plugins > manage plugins > Browse more plugins. This will get you started with the valves close to your Pi.

Let me know how things are going.

Dan

 [url=https://gist.github.com/Dan-in-CA/c873883d734caea5ff52ad11d5875b36][/url]
Reply


Messages In This Thread
Modbus Plugin - by cyberthom - 2017 Mar 07, 03:54 PM
RE: Modbus Plugin - by dan - 2017 Mar 07, 10:54 PM
RE: Modbus Plugin - by cyberthom - 2017 Mar 08, 10:30 AM
RE: Modbus Plugin - by dan - 2017 Mar 08, 04:41 PM
RE: Modbus Plugin - by cyberthom - 2017 Mar 09, 07:11 PM
RE: Modbus Plugin - by dan - 2017 Mar 10, 03:00 AM
RE: Modbus Plugin - by cyberthom - 2017 Mar 23, 09:50 PM
RE: Modbus Plugin - by dan - 2017 Mar 24, 04:38 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)