Timing a modbus IP relay to be held for a limited time
-
Hi I'm new to Mango I have hooked up my PLC ok and all is good. I have created a graphical UI wich has a button to close the relay on my PLC, however when I trigger the relay to be closed I would like to open it automatically after 500ms, I would appreciate any help I'm new to Mango.
Regards
-
Hi Eightbit,
Does it strictly require a 500ms pause before setting it open again? You can easily set a "State" event detector on your data point, with it needing to be in that state for 1 second. Then you'll set up a "set point" event handler on the event handler's page for the event you've created on the data point. Have the target for the set point actual be the initial point, and set it back to open.
If you require more accurate timing, you may consider implementing that control in the PLC. This is also perhaps a preferable allocation of controls responsibility, if there is some badness should the relay stay open longer than that.
-
No, it doesn't have to be 500ms actually 3 seconds would be fine. I agree that this should be setup in the PLC however I would like to implement this in Mango. I had a look in setting up the "State" event detector on the data point. However I can't see how this is done.
Is there a document or a Video describing these processes? I would relay appreciate your help. -
At the bottom of the edit data point page for an existing point, you'll see the event detectors section. Select 'State' from the dropdown, and hit the add button.
In my image, the properties of the state detector are shown on the right. I have given it an alias, the state that it is detecting, and the duration in that state. There is information about the state detectors inside the blue question mark bubble in the section. Save your data point after you've added the detector.
Then, go to the event handlers page (the sprocket / gear icon), and find the point you've created the detector on in the Point Event Detectors section. Expand it and find the detector we created. Click it, and you'll be able to create a handler by configuring the setup and saving the detector. I have guessed at what I think your situation requires in the images.
-
Thank you so much it works like a treat. :-)