Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 35 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Appendix B - Processor Status File

Pages 275 to 286 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 275

Appendix

B

Processor Status File

Processor status data is stored in data file 2. IMPORTANT

For more information about any of these topics, see the description in this manual or the documentation for your programming software.

S:0 - S:2 This Word

Stores

S:0

Arithmetic flags • bit 0 = carry • bit 1 = overflow • bit 2 = zero • bit 3 = sign

S:1Processor status and flags

1

S:1/00

RAM checksum is invalid at power-up

S:1/01

Controller in run mode

S:1/02

Controller in test mode

S:1/03

Controller in program mode

S:1/04

Controller uploading to memory module

S:1/05

Controller in download mode

S:1/06

Controller has test edits enabled

S:1/07

Mode select switch in REMOTE position

S:1/08

Forces enabled

S:1/09

Forces present

S:1/10

Controller controllerr successfully uploaded to memory module

S:1/11

Performing online programming

S:1/12

Not defined

S:1/13

User program checksum calculated

S:1/14

Last scan of ladder or SFC step

S:1/15

Controller running first program scan or the first scan of the next step in an SFC

Publication 1785-UM012D-EN-P - July 2005

Page 276

B-2

Processor Status File

This Word

Stores

S:2Switch setting information S:2/00 through S:2/05

Channel 1A DH+ station number

S:2/06

Channel 1A DH+ baud rate 057.6 kbps 1230.4 kbps

S:2/07 S:2/08

Not defined

S:2/09

Last state 0outputs are turned off 1outputs retain last state

S:2/11 S:2/12

I/O chassis addressing bit 12bit 11 00illegal 101/2-slot 011-slot 112-slot

S:2/13 S:2/14

Memory module transfer bit 14bit 13 00memory module transfers to controller memory if controller memory is not valid 01memory module does not transfer to controller memory 11memory module transfers to controller memory at powerup

S:2/15

Controllercontroller memory protection 0enabled 1disable

Publication 1785-UM012D-EN-P - July 2005

Page 277

Processor Status File

B-3

S:3-10 This Word

Stores

S:3 to S:6

Active Node table for channel 1A WordBitsDH+ Station # 30-1500-17 40-1520-37 50-1540-57 60-1560-77

S:7

Global status bits: (See also S:27, S:32, S:33, S:34, and S:35) • S:7/0-7 • S:7/8-15 rack fault bits for racks 0-7 unused

S:8

Last program scan (in ms)

S:9

Maximum program scan (in ms)

S:10Minor fault (word 1) See also S:17 S:10/00

Battery is low (replace in 1-2 days)

S:10/01

DH+ active node table has changed

S:10/02

STI delay too short, interrupt program overlap

S:10/03 memory module transferred at power-up

S:10/04

Edits prevent SFC continuing; data table size changed during program mode; reset automatically in run mode

S:10/05

Invalid I/O status file

S:10/06 reserved

S:10/07

No more command blocks exist to execute block-transfers

S:10/08

Not enough memory on the memory module to upload the program from the controller

S:10/09

No MCP is configured to run

S:10/10

MCP not allowed

S:10/11

PII word number not in local rack

S:10/12

PII overlap

S:10/13 no command blocks exist to get PII

S:10/14

Arithmetic overflow

S:10/15

SFC “lingering” action overlap - step was still active when step was reactivated

Publication 1785-UM012D-EN-P - July 2005

Page 278

B-4

Processor Status File

S:11 This Word

Stores

S:11major fault word

Publication 1785-UM012D-EN-P - July 2005

S:11/00

Corrupted program file (codes 10-19). See major fault codes (S:12).

S:11/01

Corrupted address in ladder program (codes 20-29). See major fault codes (S:12).

S:11/02

Programming error (codes 30-49). See major fault codes (S:12).

S:11/03

Controller detected an SFC fault (codes (71-79). See major fault codes (S:12).

S:11/04

Controller detected an error when assembling a ladder program file (code 70); duplicate LBLs found.

S:11/05

Start-up protection fault. The controller sets this major fault bit when powering up in Run mode if the user control bit S:26/1 is set.

S:11/06

Peripheral device fault

S:11/07

User-generated fault; controller jumped to fault routine (codes 0-9). See major fault codes (S:12).

S:11/08

Watchdog faulted

S:11/09

System configured wrong (codes 80-82, 84-88, 200-208). See major fault codes (S:12).

S:11/10

Recoverable hardware error

S:11/11

MCP does not exist or is not a ladder or SFC file

S:11/12

PII file does not exist or is not a ladder file

S:11/13

STI file does not exist or is not a ladder file

S:11/14

Fault routine does not exist or is not a ladder file

S:11/15

Faulted program file does not contain ladder logic

Page 279

Processor Status File

B-5

This word stores the following fault codes:

S:12 This Fault Code

Indicates this Fault

And the Fault Is

00-09

Reserved for user-defined fault codes.

Recoverable:

You can use user-defined fault codes to identify different types of faults or error conditions in The fault routine can instruct the your program by generating your own recoverable fault. To use these fault codes, choose an controller to clear the fault and input condition that decides whether to jump to a fault routine file, then use the JSR then resume scanning the instruction as the means to jump to the fault routine file. program. To use the JSR instruction, enter the fault code number 0-9 (an immediate value) as the first input parameter of the instruction. Any other input parameters are ignored (even if you have an SBR instruction at the beginning of your fault routine file. You cannot pass parameters to the fault routine file using JSR/SBR instructions). A fault routine executes when You do not have to use the user-defined fault codes to generate your own fault. If you any of these faults occur. program a JSR with no input parameters, the controller will write a zero to the Fault Code field. The purpose of using the user-defined fault codes is to allow you to distinguish among different types of faults or error codes based on the 0-9 fault code numbers. When the input condition is true, the controller copies the fault code number entered as the first input parameter of the JSR instruction into word 12 of the processor status file (S:12), which is the Fault Code field. The controller sets a Major Fault S:11/7 “User-Generated Fault.” The controller then faults unless you clear the Major Fault word (S:11) or the specific fault bit via ladder logic in the fault routine. 10

Run-time data table check failed

Recoverable:

11

Bad user program checksum

12

Bad integer operand type, restore new controller memory file

13

Bad mixed mode operation type, restore new controller memory file

14

Not enough operands for instruction, restore new controller memory file

15

Too many operands for instructions, restore new controller memory file

16

Corrupted instruction, probably due to restoring an incompatible controller memory file (bad opcode)

17

Can’t find expression end; restore new controller memory file

18

Missing end of edit zone; restore new controller memory file

19

Download aborted

20

You entered too large an element number in an indirect address

21

You entered a negative element number in an indirect address

22

You tried to access a non-existent program file

23

You used a negative file number, you used a file number greater than the number of existing files, or you tried to indirectly address files 0, 1, or 2

24

You tried to indirectly address a file of the wrong type

The fault routine can instruct the controller to clear the fault and then resume scanning the program.

A fault routine executes when any of these faults occur.

Recoverable

Publication 1785-UM012D-EN-P - July 2005

Page 280

B-6

Processor Status File

This Fault Code

Indicates this Fault

And the Fault Is

30

You tried to jump to one too many nested subroutine files

Non-recoverable

31

You did not enter enough subroutine parameters

32

You jumped to an invalid (non-ladder) file

The fault routine will be executed but cannot clear major fault bit 2.

33

You entered a CAR routine file that is not 68000 code

34

You entered a negative preset or accumulated value in a timer instruction

35

You entered a negative time variable in a PID instruction

36

You entered an out-of-range setpoint in a PID instruction

37

You addressed an invalid module in a block-transfer, immediate input, or immediate output instruction

38

You entered a RET instruction from a non-subroutine file

Non-recoverable

39

FOR instruction with missing NXT

The fault routine will be executed but cannot clear major fault bit 2.

40

The control file is too small for the PID, BTR, BTW, or MSG instruction

Recoverable

41

NXT instruction with missing FOR

Non-recoverable

42

You tried to jump to a non-existent label

43

File is not an SFC

The fault routine will be executed but cannot clear major fault bit 2.

44

Error using SFR. This error occurs if:

Recoverable

• you tried to reset into a simultaneous path • you specified a step reference number that is not found or is not tied to a step (it is a transition) • the previous SFR to a different step is not complete

45

Invalid channel number entered

46

Length operand of IDI or IDO instruction is greater than the maximum allowed

47

SFC action overlap. An action was still active when the step became re-activated

Publication 1785-UM012D-EN-P - July 2005

Recoverable

Non-recoverable. The fault routine will be executed but cannot clear major fault bit 2.

Page 281

Processor Status File

This Fault Code

Indicates this Fault

And the Fault Is

70

The controller detected duplicate labels

Non-recoverable

71

The controller tried to start an SFC subchart that is already running

72

The controller tried to stop an SFC subchart that isn’t running

73

The controller tried to start more than the allowed number of subcharts

74

SFC file error detected

75

The SFC has too many active functions

76

SFC step loops back to itself.

77

The SFC references a step, transition, subchart, or SC file that is missing, empty or too small

78

The controller cannot continue to run the SFC after power loss

79

You tried to download an SFC to a controller that cannot run SFCs

80

You have an I/O configuration error

81

You illegally set an I/O chassis backplane switch by setting both switch 4 and 5 on

82

Illegal cartridge type for selected operation. This error also occurs if the controller doesn’t have a memory module, but the backplane switches are set for a memory module. Make sure the backplane switches are correct (set switch 6 ON and switch 7 OFF if the controller doesn’t have a memory module).

83

User watchdog fault

Recoverable

84

Error in user-configured adapter mode block-transfer

Non-recoverable

85

Memory module bad

86

Memory module is incompatible with host

87

Scanner rack list overlap

88

Scanner channels are overloading the remote I/O buffer; too much data for the controller to process. If you encounter fault code 88, be sure you followed the design guidelines listed on page 4-9. Specifically, make sure you:

B-7

Non-recoverable

• group together 1/4-racks and 1/2-racks of each logical rack. Do not intersperse these with other rack numbers • if using complementary I/O addressing, treat complementary rack addresses individually when grouping racks; primary rack numbers are separate from complement rack numbers

Publication 1785-UM012D-EN-P - July 2005

Page 282

B-8

This Fault Code

Processor Status File

Indicates this Fault

And the Fault Is

90

Sidecar module extensive memory test failed. Call your Allen-Bradley representative for service

Recoverable

91

Sidecar module undefined message type

92

Sidecar module requesting undefined pool

93

Sidecar module illegal maximum pool size

94

Sidecar module illegal ASCII message

95

Sidecar module reported fault, which may be the result of a bad sidecar program or of a hardware failure

96

Sidecar module not physically connected to the PLC-5 controller

97

Sidecar module requested a pool size that is too small for PC3 command (occurs at power-up)

98

Sidecar module first/last 16 bytes RAM test failed

99

Sidecar module-to-controller data transfer faulted

100

Controller-to-sidecar module transfer failed

101

Sidecar module end of scan transfer failed

102

The file number specified for raw data transfer through the sidecar module is an illegal value

103

The element number specified for raw data transfer through the sidecar module is an illegal value

104

The size of the transfer requested through the sidecar module is an illegal size

105

The offset into the raw transfer segment of the sidecar module is an illegal value

106

Sidecar module transfer protection violation; for PLC-5/26, -5/46, and -5/86 controllers only

Publication 1785-UM012D-EN-P - July 2005

Page 283

Processor Status File

B-9

S:13-S:24 This Word:

Stores

S:13

Program file where fault occurred

S:14

Rung number where fault occurred

S:15

VME status file

S:16

I/O status File

S:17Minor fault (word 2) See also S:10. S:17/00

BT queue full to remote I/O

S:17/01

Queue full - channel 1A; maximum remote block-transfers used

S:17/02

Queue full - channel 1B; maximum remote block-transfers used

S:17/03

Queue full - channel 2A; maximum remote block-transfers used

S:17/04

Queue full - channel 2B; maximum remote block transfers used

S:17/05

No modem on serial port

S:17/06

• Remote I/O rack in local rack table or • Remote I/O rack is greater than the image size. This fault can also be caused by the local rack if the local rack is set for octal density scan and the I/O image tables are smaller than 64 words (8 racks) each.

S:17/07

Firmware revision for channel pairs 1A/1B or 2A/2B does not match controller firmware revision

S:17/08

ASCII instruction error

S:17/09

Duplicate node address

S:17/10

DF1 master poll list error

S:17/11

Protected controller data table element violation

S:17/12

Protected controller file violation

S:17/13

Using all 32 ControlNet MSGs

S:17/14

Using all 32 ControlNet 1771 READ and/or 1771 WRITE CIOs

S:17/15

Using all 8 ControlNet Flex I/O CIOs

S:18

Controller clock year

S:19

Controller clock month

S:20

Controller clock day

S:21

Controller clock hour

S:22

Controller clock minute

S:23

Controller clock second

S:24

Indexed addressing offset

S:25

Reserved

Publication 1785-UM012D-EN-P - July 2005

Page 284

B-10

Processor Status File

S:26-S:35 This Word

Stores

S:26User control bits S:26/00

Restart/continuous SFC: when reset, controller restarts at first step in SFC. When set, controller continues with active step after power loss or change to RUN

S:26/01

Start-up protection after power loss: when reset, no protection. When set, controller sets major fault bit S:11/5 when powering up in run mode.

S:26/02

Define the address of the local rack: when reset, local rack address is 0. When set, local rack address is 1.

S:26/03

Set complementary I/O (series A only): when reset, complementary I/O is not enabled. When set, complementary I/O is enabled.

S:26/04

Local block-transfer compatibility bit: when reset, normal operation. When set, eliminates frequent checksum errors to certain BT modules.

S:26/05

PLC-3 scanner compatibility bit: when set (1), adapter channel response delayed by 1 ms; when reset (0) operate in normal response time.

S:26/06

Data table-modification inhibit bit. When set (1), user cannot edit the data table or modify forces while the controller keyswitch is in the RUN position. You control this bit with your programming software

S:26/07 through S:26/15

Reserved

S:27

Rack control bits: (See also S:7, S:32, S:33, S:34, and S:35) • S:27/0-7 - - I/O rack inhibit bits for racks 0-7 • S:27/8-15 - - I/O rack reset bits for racks 0-7

S:28

Program watchdog setpoint

S:29

Fault routine file

S:30

STI setpoint

S:31

STI file number

S:32

Global status bits: (See also S:7, S:27, S:33, S:34, and S:35) • S:32/0-7 • S:32/8-15

S:33

Rack control bits: (See also S:7, S:27, S:32, S:34, and S:35) • S:33/0-7 • S:33/8-15

S:34 rack fault bits for racks 20-27 (octal) unused

Rack control bits: (See also S:7, S:27, S:32, S:33, and S:34) • S:35/0-7 • S:35/8-15

Publication 1785-UM012D-EN-P - July 2005

I/O rack inhibit bits for racks 10-17 I/O rack reset bits for racks 10-17

Global status bits: (See also S:7, S:27, S:32, S:33, and S:35) • S:34/0-7 • S:34/8-15

S:35 rack fault bits for racks 10-17 (octal) unused

I/O rack inhibit bits for racks 20-27 I/O rack reset bits for racks 20-27

Page 285

Processor Status File

IMPORTANT

B-11

Setting inhibit bits in the processor status file (S:27, S:33, or S:35) does not update inhibit bits in the I/O status file.

S:36-S:78 This Word

Stores

S:36 - S:45

Reserved

S:46

PII program file number

S:47

PII module group

S:48

PII bit mask

S:49

PII compare value

S:50

PII down count

S:51

PII changed bit

S:52

PII events since last interrupt

S:53

STI scan time (in ms)

S:54

STI maximum scan time (in ms)

S:55

PII last scan time (in ms)

S:56

PII maximum scan time (in ms)

S:57

User program checksum

S:58

Reserved

S:59

Extended-local I/O channel discrete transfer scan (in ms)

S:60

Extended-local I/O channel discrete maximum scan (in ms)

S:61

Extended-local I/O channel block-transfer scan (in ms)

S:62

Extended-I/O channel maximum block-transfer scan (in ms)

S:63

Protected controller data table protection file number

S:64

The number of remote block-transfer command blocks being used by channel pair 1A/1B.

S:65

The number of remote block-transfer command blocks being used by channel pair 2A/2B.

S:66

Reserved.

Publication 1785-UM012D-EN-P - July 2005

Page 286

B-12

Processor Status File

This Word

Stores

S:68

Installed memory card type: 0 - No memory card installed 1 - 1785-ME16 2 - 1785-ME32 3 - 1785-ME64 4 - 1785-ME100 5 - 1785-CHBM 6 - 1785-RC 7-15 - Reserved When the 1785-RC module is installed, the eight least-significant bits indicate the memory card’s status: Bit 3 is set when the memory card is installed Bit 2 is set when contact is detected closed Bit 1 is set when the relay is driven open Bit 0 is set when 120V ac is present on the memory card When any other memory card is installed, the bits are undefined.

S:77

Communication time slice for communication housekeeping functions (in ms)

S:78

MCP I/O update disable bits Bit 0 for MCP A Bit 1 for MCP B etc.

S:79-S:127 This Word

Stores

S:79

MCP inhibit bits Bit 0 for MCP A Bit 1 for MCP B etc.

S:80-S:127

MCP file number MCP scan time (in ms) MCP max scan time (in ms) The above sequence applies to each MCP; therefore, each MCP has 3 status words. For example,word 80: file number for MCP A word 81: scan time for MCP A word 82: maximum scan time for MCP A word 83: file number for MCP B word 84: scan time for MCP B etc.

Publication 1785-UM012D-EN-P - July 2005