Function Key LEDs
Technical Note 7006
Applicable Model(s)
HMC7000
Title
Function Key LEDs
Date
03/28/2013
Rev
00
P/N
0907-7006
Summary
This Technical Note explains how to easily control Function Key LEDs from ladder logic. This can be used to indicate when a function key is active or when attention is needed.
Solution
1.
Create a tag for internal register BW0000 called LED
2.
Create six bit registers starting at B0000 and ending at B0005 with corresponding names LED1, LED2, LED3, etc. These “B” bits correspond to the 0 through 5 bits of the LED (BW0000) register.
3.
Create a global task that moves LED (BW0000) into the LEDs.
4.
Use bit registers LED1 through LED6 to illuminate the corresponding function-key LED.