FeedBack Statements
u57jcs
Junior Member
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..
Comments
-
Feedback from what?
-
ericmedley wrote: »Feedback from what?
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
}
}
} -
Put this is mainline and it will give you LED feedback on your keypad for when your variable is equal to 1, and it will turn off whenever the variable is not equal to 1.
DEFINE_PROGRAM
[dvBFKPDW,1] = (BFKPDW1 == 1) -
Thanks for the reply mate. Am not getting it though. Can any 1 guide me with a sample program. I will really appreciate it.
Thanks ion Advance. -
You can turn an LED on by simply turning on the channel on said keypad.
IE:
on[dvBFKPDW, 1]
Turn it off:
off[dvBFKPDW, 1]
Easy, peasy.
Paul
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums