The text of a manual · part 29 of 45
Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 14 - Preparing Power-Up Routines
Pages 235 to 238 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual
The original document is the PDF (5.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1785-L20B and Allen-Bradley 1785-L40B
Page 235
Chapter
14
Preparing Power-Up Routines
Using This Chapter
Setting Power-Up Protection
For Information About:
Go to Page
Setting power-up protection
14-1
Allowing or inhibiting startup
14-2
Defining controller power-up procedure
14-2
You can configure your controller so that if a power-loss is experienced while in run mode, the controller does not come back up in run mode. User control bit S:26/1 defines whether power-up protection (e.g., fault routine) is executed upon power-up. If S:26/1 is
After power loss, the controller
Set (1)
Scans the fault routine before returning to normal program scan When set, the controller scans the fault routine once to completion after the controller recovers from a power loss. You can program the fault routine to determine whether the controller’s status will let the controller respond correctly to logic and whether to allow or inhibit the startup of the controller.
Reset (0)
Powers up directly at the first rung on the first program file
Set S:26/1 manually from the Controller Status screen, or latch this bit through ladder logic.
1
Publication 1785-UM012D-EN-P - July 2005
Page 236
14-2
Preparing Power-Up Routines
Allowing or Inhibiting Startup
Major fault bit S:11/5 controls whether you can power up the controller in run mode after a loss of power. Do not confuse this bit with user control bit S:26/1. This Bit
Tells the Controller user control S:26/1 whether or not to scan a fault routine upon power up before returning to normal program scan.
major fault S:11/5 whether or not to fault at the end of scanning the fault routine.
After a power loss is experienced while the controller is in run mode, the controller automatically sets major fault bit S:11/5 if user control bit S:26/1 has been set. If the Fault Routine Makes S:11/5
Then the Controller
Set (1)
Faults at the end of scanning the fault routine Leave this bit set to inhibit startup
Reset (0)
Resumes scanning the controller memory file Reset this bit to allow startup
IMPORTANT
Defining a Controller Power-Up Procedure
Publication 1785-UM012D-EN-P - July 2005
You can use JMP and LBL instructions to scan only the portion of the fault routine associated with a particular fault or power-up condition.
The user control bits S:26/0 and S:26/1 define how the controller starts in run mode after a power loss or when you switch to run mode from program or test mode.
Page 237
Preparing Power-Up Routines
14-3
To set and reset bits: 1. Cursor to the bit location. 2. Set by entering 1; reset the bit by entering 0. Use this Bit To 0
Control controllers that are using SFCs This bit determines if the SFC restarts or resumes at the last active step after a power loss.
1
Select power-loss protection If this bit is set and a power loss occurs, the controller sets major fault bit 5 and executes a fault routine you define before it returns to normal program scan.
The above table describes the possible start-up routines. For more information about fault routines, see chapter 16. See chapter 21 for definitions of the user control bits (S:26/0-6).
Possible Controller Power-Up Routines If You are
With
And You Want to:
Then Set Bit 0 and 1 as Shown: 15..............0
Using SFCs
No fault routine
Restart at the first step xxxxxxxx xxxxxx00
Restart at the last active step xxxxxxxx xxxxxx01
Start at the first file xxxxxxxx xxxxxx0x
Restart using the fault routine file xxxxxxxx xxxxxx1x
Restart using the fault file and then the first step xxxxxxxx xxxxxx10
Not using SFCs
Using a fault file
Fault routine
SFCs
Restart using the fault file and then the last active step xxxxxxxx xxxxxx11 Not using a fault file
Not using SFCs
Start at the first file in the controller’s memory.
xxxxxxxx xxxxxx00
Each x indicates a bit that can be 0 or 1 for the status value described.
Publication 1785-UM012D-EN-P - July 2005
Page 238
14-4
Preparing Power-Up Routines
Notes
Publication 1785-UM012D-EN-P - July 2005