Cc_plc_status, C syntax, Parameters – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 165: Returns
API Library of Routines
Appendix B
CC_PLC_STATUS
B-34
Returns current status of the processor status flags and major fault
words. This function can be used with a direct-connect mode control
coprocessor only.
C Syntax
#include
unsigned CC_PLC_STATUS (plc_sts)
unsigned *plc_sts;
Parameters
plc_sts
A bit map of the current PLC-5 programmable controller status. The bit
map is defined as:
Bit
No.
Definition
Bit
No.
Definition
0
RAM bad
16
bad user program memory
1
run mode
17
illegal operand address
2
test mode
18
programming error
3
program mode
19
function chart error
4
burning EEPROM
20
duplicatelabels found
5
download mode
21
power loss fault
6
edits enabled
22
chan 3 fault
7
remote modes
23
user jsr to fault routine
8
forces enabled
24
watchdog fault
9
forces present
25
system illegally configured
10
successful EEPROM burn
26
hardwarefault
11
onlineediting
27
MCP file does not exist
/MCP fileis not ladder or SFC
12
debug mode
28
PII fileis not ladder
/PII file does not exist
13
user program checksum done
29
STI program is not ladder
/STI program does not exist
14
last scan of ladder/SFC step
30
Fault program is not ladder
/fault program does not exist
15
first scan of ladder/SFC step
31
Faulted program does not exist
/fault program is not ladder
Returns
Status
Symbolic Name
Meaning
0
CC_SUCCESS
Operation successful
157
CC_E_NOTCONNECT
PLC is not connected or offline
CC_PLC_STATUS