Recommended Posts

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
if (level[0] > 4)
   pump = 0

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.


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.