Eliminating translator errors, Translator configuration, Eliminating translator errors -4 – Rockwell Automation 1747-PBASE BASIC Development Software Programming Manual User Manual

Page 98: Find next compiler error -4, Find next compiler error

Advertising
background image

Publication 1746-PM001A-US-P

8-4 Translating Your Program

390

CALL 46

400

POP A

410

P. A,”:”,

420

POP A

430

P. A,”:”,

440

POP A

450

P. A,” “,

460

POP A

470

P. “Operator #”, OP-48,” acknowledged”

480

END

It also creates a .MAP file for use when executing the debugger discussed in
Chapter 9.

If the translator/compiler encounters any errors in your .BDL file, it aborts the
translation and tags these errors for you to correct. When translator errors are
found, you must correct them as discussed in the following section before
continuing.

Eliminating Translator
Errors

If the translator encounters errors when it translates your .BDL file, the translate
operation is halted, and the error window is created. The error window contains a
listing of all the errors that were generated and the corresponding program line
number.

If an error is found in an include file during translation, another window is opened
containing that include file. The cursor is placed at the error location in that file.

Find Next Compiler Error

This feature locates the next error in the source file window generated by the most
recent compile. If you are not currently on the source file window, you are bumped
to that window when the

find neXt error

option is selected.

Path: Toplevel Menu

Edit mode

Other

find neXt error

QuickStroke: Toplevel Menu

Edit mode

[Ctrl F2]

When the

find neXt error

option is selected, the cursor is positioned on the line

that caused the translator error; and a brief description of the error is shown on the
message line.

Translator Configuration

The configuration for the 1747-PBASE Translator converts .BDL files to .BAS
files. The translator configuration can be altered through the COMPILER/
PROGRAM SETUP dialog box, accessed through the following path:

Path: Toplevel Menu

Configuration menu

Filename extensions

BDL

Compiler–Program setup

1747-PBASE Translator

Advertising