Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 73

Advertising
background image

Chapter 5

Developing Programs

5-13

Synchronization Function

Use the CC_PLC_SYNC function to synchronize the control-coprocessor
calling task to the PLC-5 programmable-controller ladder-program scan.
This function automatically puts the current application to sleep until the
start of the next PLC-5 program scan.

Because of the multi-tasking feature of OS-9, it is most effective to
synchronize only one priority task to the PLC-5 programmable-controller
ladder-program scan.

Status Function

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

Use the CC_STATUS and CC_EXPANDED_STATUS functions to get the
current status of the control coprocessor.

Clear MessageĆHandler Function

Use the CC_MKILL utility to clear pending message handlers so they are
available for use by other applications. For example, messages can still be
pending for an aborted or terminated application that was performing
message functions. These pending messages can cause the message
handler to be pending indefinitely.

Syntax for the CC_MKILL utility is:

cc_mkill {<opts>}

Function: Kill PLC Message Entry

Options: -r=<num> Kill Pending Read Message (0-31,[*])

-w=<num> Kill Pending Write Message (0-31,[*])

-a=* Kill All Read/Write Messages

Using this utility, you can clear one entry at a time or you can clear all
message handlers. The following example clears the read handler for
message 13:

$ cc_mkill -r=13

The following example clears all message handlers:

$ cc_mkill -a=*

Advertising