Download OP-1224 Pushbutton Panel

Transcript
44
Applying Ladder Logic
Controlling LEDs
Separately
You can control the LEDs separately from the status of the pushbuttons. In the
example below, we are using Allen-Bradley input type files (I:0/2, I:0/3 and I:0/4) to
trigger the ON/OFF of LED3, LED4 and LED5. Remember: Any pushbutton
configured for maintained (alternate action) will ignore the bits in these two
words. Independent control of the LEDs can only be accomplished if you have
Enabled LED Separation during your initial configuration. (See Page 19, Step
9.)
SLC 5/03 or 5/04
Mapped Memory Location
m (such as N7: 0/0-- 0/15)
m+1 (such as N7: 1/0 1/15)
I:0
Light LED 3
N7:4
2
I:0
2
Light LED 4
N7:4
3
I:0
3
Light LED 23
4
N7:5
6
Function
1
2
3
4
5
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Pushbuttons 1-16 ON/OFF
Pushbuttons 17-24 ON/OFF
m+2 (such as N7: 2/0 2/15)
LEDs 1-16 flash
m+3 (such as N7: 3/0 3/15)
LEDs 17-24 flash
m+4 (such as N7: 4/0 4/15)
LEDs 1-16 ON/OFF
m+5 (such as N7: 5/0 5/15)
LEDs 17-24 ON/OFF
m+6 (such as N7: 6/0 6/15)
Force Function Data (1-16)
m+7 (such as N7: 7/0 7/15)
Force Function Mode/Data (17-24)
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
m+4 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
Not Used
24 23 22 21 20 19 18 17
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
m+5 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
N7:4
LED number
bit number
LED number
N7:5
bit number
6
7
8