Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 57

Advertising
background image

Chapter 4

Using the Programming Environment

4-5

To confirm that the C file is resident in the control coprocessor:

1.

Select

O)

OS-9

Terminal

on the PCBridge main menu. You get the

control-coprocessor OS-9 command-line interface.

The C file that you previously sent to the control coprocessor should
reside in the directory that you last accessed on OS-9.

2.

At the

$

prompt, type

dir

and press

[Return]

to verify that the C

test file was successfully transferred to the control coprocessor.

Figure 4.7

C Test File on OSĆ9

3.

At the

$

prompt, type the name of your executable file—

hello

—and

press

[Return]

. The program executes and prints the

Hello,

world!

message.

This section provides a BASIC example program. You can develop and
run your BASIC program with either:

a personal computer with PCBridge software—develop and run your

BASIC example program; download it to the control coprocessor via the
PCBridge send-ASCII-file function

an ASCII terminal—use OS-9 to develop and run your BASIC example

program

See the OS-9 Operating System User Manual, publication 1771-6.5.102,
and the OS-9 BASIC User Manual, publication 1771-6.5.103, for more
information on creating and running BASIC programs.

Confirm File Passage to the

Control Coprocessor

Create a BASIC

Test Program

Advertising