Use input for multiple actions
Posted: 18 Dec 2019, 13:11
Hi all,
we want to use an single input to start and stop a process.
The idea would be like this:
- configure input as counter with detecting positive edge
- first press with positive edge will be detected as start
- second press with positive edge will be detected as stop
- value of counter will be read and stored in the beginning
- if change of counter value is detected do appropriate action
1. Question:
Can this kind of behaviour (detecting positive edge) only be done with the counter mechanism or is there another possibility?
2. Question:
in the datasheets of the DIO-Modules is stated that 6 Counters can be used per module. I also read in this forum that only 6 counters can be used in total.
If I have 2 DIO-Modules, can I use 12 counters in total or is this limited by 6 counters as well?
Thanks in advance,
Harry
we want to use an single input to start and stop a process.
The idea would be like this:
- configure input as counter with detecting positive edge
- first press with positive edge will be detected as start
- second press with positive edge will be detected as stop
- value of counter will be read and stored in the beginning
- if change of counter value is detected do appropriate action
1. Question:
Can this kind of behaviour (detecting positive edge) only be done with the counter mechanism or is there another possibility?
2. Question:
in the datasheets of the DIO-Modules is stated that 6 Counters can be used per module. I also read in this forum that only 6 counters can be used in total.
If I have 2 DIO-Modules, can I use 12 counters in total or is this limited by 6 counters as well?
Thanks in advance,
Harry