Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 170
Advertising
![background image](/manuals/579606/170/background.png)
API Library of Routines
Appendix B
CC_STATUS
B-39
C Example
unsigned coprostat;
.
.
.
coprostat = CC_STATUS();
if (!(coprostat & 0x0001)) BAT_LOW_ALARM ();
.
.
.
BASIC Example
The BASIC function code is 111.
DIM coprostat :INTEGER
.
.
.
rem * CC_STATUS - Get current coprocessor status information
RUN AB_BAS (111,coprostat)
print using “S20<,H8”,“Coprocessor status = ”,coprostat
.
.
.
References
CC_EXPANDED_STATUS(); utility cc_status
Advertising