Translating your program – Rockwell Automation 1747-PBASE BASIC Development Software Programming Manual User Manual

Page 31

Advertising
background image

Publication 1746-PM001A-US-P

Getting Familiar with Your Development Software 2-11

Translating Your Program

Path: Toplevel menu

Translate/compile

Path: Toplevel menu

Edit mode

Other

Translate/compile

QuickStroke: [CTRL F8]

1. If using a mouse, move the cursor over to the Other menu and click the left

mouse button. If you do not have a mouse, press

[F2]

to get to the pull-down

menus. Cursor to the right or left to highlight the Other menu and press

[Enter]

.

2.

2.

2.

2. Move the cursor to Translate/compile and press

[Enter]

or click the left

mouse button. A dialog box appears asking you to select a translator/compiler.
At this point, there is only one available that recognizes the .BDL extension
under which you saved your file.

3.

3.

3.

3. Move the cursor to select

1747–PBASE Translator

and press

[Enter]

or the

left mouse button.

If you did not make any errors in entering this program, the translation occurs
successfully. If you had errors, an error message appears in the message line, and the
cursor moves to the location of the error in the program.

After successfully translating a .BDL file, a new file is created using the same name
but with the .BAS extension. The .BAS file contains the BASIC language version of
your program, including line numbers. In our case, there is now a file named
FIRST.BDL and a file named FIRST.BAS.

Physically Connecting to Your BASIC or BASIC-T Module

At this point you could download the FIRST.BAS program to the module and
execute it on the module. To do so requires that you connect the module to one of
your personal computer’s serial ports (COM1 through COM8). If you have the
Allen-Bradley 1784-KR card installed in your personal computer, you could
connect to this instead of a serial port.

You may need to refer to Chapter 3 for details on terminal selection, and Chapter 9
for details on Terminal mode setup. Refer to the SLC 500™ BASIC and BASIC-T
Modules User Manual
(publication number 1746-UM004A-US-P) for details on
making hardware connections.

IMPORTANT

Translation is required only if your file was written using the
BASIC Development Language (BDL). If you wrote the file
using the BASIC language as described in the BASIC Language
Reference Manual
(publication number 1746-RM001A-US-P) or
the SLC 500™ BASIC and BASIC-T Module User Manual
(publication number 1746-UM004A-US-P), translation is not
necessary.

Advertising