Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 166

Advertising
background image

API Library of Routines

Appendix B

CC_PLC_STATUS

B-35

Description

Use CC_PLC_STATUS to get the current PLC-5 programmable-
controller status.

C Example

unsigned status;

unsigned plc_sts;

.

.

.

status = CC_PLC_STATUS (&plc_sts);

.

.

.

BASIC Example

The BASIC function code is 108.

DIM status : INTEGER

DIM plc_stat : INTEGER

.

.

.

rem * CC_PLC_STATUS - Get current PLC status information

RUN AB_BAS (108,status,ADDR(plc_stat))

print using “S16<,H8”, “PLC status = ”, plc_stat

.

.

.

References

None.

Advertising