Miscellaneous – Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual

Page 132

Advertising
background image

5–21

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

STOP_SERIAL_IO_MONITOR (no arguments)

This command is used to stop the serial I/O monitor. For example:

[STOP_SERIAL_IO_MONITOR]

will halt the I/O monitoring operation on the port selected with the
command ENTER_SERIAL_IO_MONITOR. This command does
not however exit serial I/O monitor mode. Use the
EXIT_SERIAL_IO_MONITOR command to exit monitor mode.

Important: This command does not apply to the 9/PC CNC.

CANCEL_MESSAGE (no argument)

Use this command to cancel active messages at the CNC. Note it
does not clear any active OCI error messages (those loaded by your
DDE application, the OCI data server, or the Windows NT operating
system). This command clears all active error messages (provided
the cause of the error has been eliminated).

CALCULATE("calc_string")

Use this command to perform a calculation on the equation entered
as the calc_string with this command. Refer to your operation and
programming manual for valid calc syntax. The solution to this
calculation is returned in the API data item
CALCULATION_RESULT.

For example:

[CALCULATE(”2*8”)]

would return the value of 16 to the API item
CALCULATION_RESULT.

CLEAR_ACTIVE_ERRORS (no argument)

This command clears all active error messages at the CNC from the
error message log. Note it does not clear any active OCI error
messages (those loaded by your DDE application, the OCI data
server, or the Windows NT operating system).

Miscellaneous

Advertising