I'm really new to the concept of flowcode and I'm trying to find a way to implement a safety feature that enables input activation of 2 operating push buttons within 0.5 seconds (two hand device type III C according to EN 574)
So, I need to check if both inputs are enabled within 0.5 seconds... But I can't find a way to do so.
Maybe someone can shed me some light on this one...
Thanks!
Enabling buttons within 0.5 seconds... But how?
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Enabling buttons within 0.5 seconds... But how?
Hi organetic,
Please don't start a thread within Tips and trick with a question.
Since your last post was posted in Flowcode V6, I have moved this post to the same area.
As for detecting the switch within 0.5 seconds, this can be achieved by using port interrupts.
The effect is almost instant so long as another interrupt is no being serviced at the same time.
But if the general rule of kept interrupts as shouh as possible, then this should not pose a problem.
Since you're going to be using more than one interrupt then I would recommend you learning about port interrupt on change (IOC)
Perhaps this could be a starting point:
http://www.matrixtsl.com/mmforums/viewt ... 31&#p35231
If you create a flowchart and get stuck, I can see if I can help you further.
Maritn
Please don't start a thread within Tips and trick with a question.
Since your last post was posted in Flowcode V6, I have moved this post to the same area.
As for detecting the switch within 0.5 seconds, this can be achieved by using port interrupts.
The effect is almost instant so long as another interrupt is no being serviced at the same time.
But if the general rule of kept interrupts as shouh as possible, then this should not pose a problem.
Since you're going to be using more than one interrupt then I would recommend you learning about port interrupt on change (IOC)
Perhaps this could be a starting point:
http://www.matrixtsl.com/mmforums/viewt ... 31&#p35231
If you create a flowchart and get stuck, I can see if I can help you further.
Maritn
Martin