Terry Posted November 28, 2021 Share Posted November 28, 2021 I need to configure a MODBUS DO to start and stop a pump to maintain level in a tank. I already have an analog level signal coming in and displaying properly, and manual control of the DO working in response to a valve switch. Thanks, Terry Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted November 28, 2021 Share Posted November 28, 2021 If you just have one, the easiest way is to simply use a Channel Event. So, if you have a channel called "level" with your level reading, and a digital output channel called "pump" that controls the pump, and you want the pump to turn on at 3, and off at 4 (I'm assuming the pump is filling the tank), you would put this in the Event for the level channel: if (level[0] < 3) pump = 1 endif if (level[0] > 4) pump = 0 endif Make sure it goes in the event for "level" and NOT pump. The event is a tab in the channel view for the channel. Expand CHANNELS: in the workspace, then click on the level channel. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.