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

Page 129

Advertising
background image

5–18

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

COPY_DEVICE_SETUP_DEFAULTS (port_ id, device_num )

This command is used to restore the communication defaults for a
device attached to the control. Executing this command restores the
defaults set for a specific device and overwrites any changes that
were made for that device with the device configuration API data
items.

The “port_id” argument is an enumeration which identifies which
port you are configuring. The “device_num” argument is also
enumerated and identifies the specific device for which
communication defaults are to be loaded. See the enumerations
chapters for port_id and device_num enumerations. For example:

[COPY_DEVICE_SETUP_DEFAULTS (1, 16)]

Loads the defaults in port A (1) for the Greco Minifile
(device number 16).

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

DEACTIVATE_RIO_PASSTHROUGH (no argument)

Use this command to deactivate the remote I/O passthrough feature.

For example:

[DEACTIVATE_RIO_PASSTHROUGH]

deactivates RIO passthrough.

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

ENTER_SERIAL_IO_MONITOR_MODE (`port_ id", com_mode")

This command is used to load the serial I/O monitor. This will place
the control in a “setup diagnostic” mode and tie up the serial port for
diagnostics. Use this mode to troubleshoot the control’s serial
communications.

The “port_id” argument is an enumeration which identifies which
port you are configuring. The “com_mode” argument specifies the
I/O monitor will be in either transmit or receive mode and is
enumerated as follows:

Enumeration

Result:

1

Receive

2

Transmit

Advertising