Using the programming environment, Chapter objectives create a c test program – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 53

Advertising
background image

Chapter

4

4-1

Using the Programming Environment

This chapter provides an example of creating and compiling a C program
using the PCBridge software and the DOS editor; it then shows you how to
transfer the program to the control coprocessor. The chapter also provides
an example of a BASIC program.

For information on:

See page:

Creating a C test program

4Ć1

Compiling a C test program

4Ć2

Sending a binary file to the

control coprocessor

4Ć3

Running a C programon

the control coprocessor

4Ć5

Confirming file passage to

the control coprocessor

4Ć5

Creating a BASIC test

program

4Ć5

Accessing RAM disk

4Ć6

Create a test C program using the text editor. The default text editor is
DTE, a public domain text editor provided for your convenience. Use it to
edit small files and PCBridge configuration information. For more
information on DTE, view the files DTE.MAN, DTE.DOC, and DTE.HLP
in the \PCBRIDGE\EDITOR subdirectory.

Important: You need the 1771-PCB software—installed in Chapter 3—to
create C and assembler programs for the control coprocessor.

1.

If you do not want to use DTE, select

E)

Editor

Name

on the

PCBridge Configuration Options menu and change the text editor.

Important: The text editor you select must run in 250 Kbytes or
less of memory, depending on your system configuration.

2.

Select

E)

Edit

on the PCBridge main menu to get the text editor.

3.

Using your text editor, create the following C test program.
See Figure 4.1.

Chapter Objectives

Create a C Test Program

Introduction

Installing the Control

Coprocessor

Getting Started with the

Control Coprocessor

Using the Programming

Environment

Developing Programs

Interpreting Fault

Codes and Displays

Using the Ethernet

Interface

Using the Serial Ports

Advertising