SOReilly wrote:Hello,
Below is an example of how you can create a latching function in your CDL3 using the keypad buttons.
I have created an Activate - Deactivate user condition with the Output Channel set as a GP Off / On.
The activate condition is Keypad Button X = 1 and GP Off / On = 0 for 0.2s
The deactivate condition is Keypad Button X = 1 and GP Off / On = 1 for 0.2s
The output channel will switch from 0 to 1 or vice versa depending on the value of the output channel.
The GP Off / On channel must have been either 0 or 1 for 0.2 seconds before the condition will accept another button press, this adds a debouce to ensure the deactivate condition isn't immediately triggered after the activate condition becomes true.
Users browsing this forum: No registered users and 1 guest