Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 48

Advertising
background image

Chapter 3

Getting Started with the Control Coprocessor

3-19

Use the CC_STATUS utility to view the current status of the control
coprocessor. See Figure 3.21 for an example screen.

Figure 3.21

CC_STATUS Screen

PCBridge Microware’s PC hosted OS-9/680x0 Development System

$ CC_STATUS

Allen-Bradley Control Coprocessor Status

Series/Revision: .............. A/E (1.30)
PLC-5: ........................ on-line
Expander: ..................... not present
Battery: ...................... OK
PLC-5 to Coprocessor Reset: ... disabled
Station Address: .............. not set
Ethernet Address: ............. 00 00 BC 1B 00 0A
Total Memory: ................. 5120k
TAG Table: .................... 1024
Non-Volatile Memory
RAM Disk: .................. 640k
Module Memory: ............. 50k
User Memory: ............... 3k

When you power up or reset the control coprocessor, it executes the startup
file /DD/STARTUP. This file is a text file that contains one or more
command lines. The shell executes each command line in the exact order
given in the file. It is similar to a DOS AUTOEXEC.BAT file.

You can bypass the execution of the startup file by holding the control
coprocessor reset button—or the keyswitch on the serial expander
module—until the CPU LED on the main module begins to blink,
approximately 5 seconds.

In order for the startup file to execute on powerup or reset, you must have
previously executed the

setime

command to set the real-time clock.

Example Startup File

The following is an example of a startup file;

tmode -w=0 -w=1 baud=19200

*change baud of /term port

xmode /t1 baud=19200

*change baud of /t1 port

shell <>>>/t1&

*activates a shell on /t1

procs

*see what processes are currently running

You cannot set environment variables in a startup file because OS-9
invokes a separate shell to run the script file. However, you can set
environment variables when you set up a password file. See page 3-20
for more information.

See OS-9 Operating System User Manual, publication 1771-6.5.102, for
more information on shell procedure files.

View ControlĆCoprocessor

Current Status

Create a User Startup File

Advertising