Rockwell Automation 2711 PANELBUILDER SOFTWARE USER MANUAL User Manual
Page 388

PLC Programming Considerations
Appendix A
A-24
The G file size is set to 3 using the Specialty I/O Configuration
function. The M0 and M1 file sizes are set to 32 in the Advanced Set Up
function.
Since only the first 30 words of the input and output files contain valid
information, the scanned input and output words can be set to 30.
Reducing the number of scanned input and output words decreases your
SLC scan time.
Configuration information is entered in the Modify G File function.
Word 0 is reserved and therefore cannot be modified. Word 1 indicates
the starting address of the device, word 2 indicates its size.
Figure A.14
Sample SLC Ladder Logic
( )
1
O:1.16
END
MOV
MOVE
Source
I:3.0
Dest
O:1.17
ON button
] [
0
OFF button
I:1.16
O:2
0
1
I:1.16
( )
0
O:2
Pump
0
O:2
Pump ON
Conditions
If the ON push button is pressed, turn
the pump on. If the OFF push button
is pressed, turn the pump off.
When the pump is on, display the
pressure from the pressure gauge on
the PanelView terminal Numeric Value
Display.
When the pump is on, display the ON
state of the Multi-State Indicator on
the PanelView terminal.