FeedBack Statements
u57jcs
Posts: 19
Hi, I am New to the forum, I want to know about Feedback statements. How do they work, How to prgram a MET-7 Metreau 7-Button Keypad for feedback statements.
Thanks in Advance Guys. Cheers..
Thanks in Advance Guys. Cheers..
0
Comments
Thanks for replying mate. This below is the part of the code in which the first button of the Keypad is programmed to switch on the lights and switch them off if they are on.
I want to know how to program to receive feedback from the keypad.
At the same time i want to turn on the LED light of the first button of the keypad when the lights are on and turn of the lights of the first button of the keypad when the lights are off.
here is the code:
PROGRAM_NAME='incLighting'
DEFINE_EVENT
BUTTON_EVENT [dvBFKPDW,1]
{
PUSH:
{
IF(BFKPDW1 =0)
{
SEND_COMMAND dvBFDIM1, 'P1-2&5-6L100'
SEND_COMMAND dvBFDIM2, 'P3L100'
SEND_COMMAND dvBFSW1, 'P1-3&5-6L100T0'
SEND_COMMAND dvBFSW2, 'P4L100T0'
BFKPDW1 =1
}
ELSE
{
SEND_COMMAND dvBFDIM1, 'P1-2&5-6L0'
SEND_COMMAND dvBFDIM2, 'P3L0'
SEND_COMMAND dvBFSW1, 'P1-3&5- 6L0T0'
SEND_COMMAND dvBFSW2, 'P4L0T0'
BFKPDW1 =0
}
}
}
DEFINE_PROGRAM
[dvBFKPDW,1] = (BFKPDW1 == 1)
Thanks ion Advance.
IE:
on[dvBFKPDW, 1]
Turn it off:
off[dvBFKPDW, 1]
Easy, peasy.
Paul