Making Corrections To Your Program; Communications Setup - Allen-Bradley 1747-PBASE Programming Manual

Basic development software
Table of Contents

Advertisement

9-14
Communicating with the Module
RS-232 Communications
Setup
Publication 1746-PM001A-US-P

Making Corrections to Your Program

The normal sequence in writing programs using the BASIC Development Software
is:
1. Write a .BDL file using the BASIC development language.
2. Translate/compile the .BDL file to create a .BAS file.
3. Download the file to the module.
After downloading, you should test and debug your program. Give careful
consideration as to where you will make changes and corrections as a result of
testing and debugging. Remember, at this time you have three versions: the .BDL
and .BAS files in your personal computer and the downloaded file in your module.
Though it may be faster to make simple corrections in Terminal mode by line
editing the program in the module (described in the SLC 500 BASIC and BASIC-T
User Manual publication number 1746-UM004A-US-P and the BASIC Module
Series B User Manual, publication number 1771-6.5.113), these corrections will
not be reflected in the personal computer versions of the program.
If you do make minor changes to the program in the module, always go back to the
original .BDL file, duplicate those changes, and translate/compile the program.
Then download it to the module and verify that it works as intended. This ensures
that the versions all match and that you have some backup for the program in the
module.
If you must do extensive editing to a program, you should go back to the original
.BDL file. Even though you can upload an edited file from the module to your
personal computer, it will be a .BAS version of that file and cannot be reverse
translated to the .BDL format.
Before configuring the terminal communication parameters, the type of
communications being used must be selected as either RS-232 or DH485.
General Purpose Communications is not intended for use with
NOTE
the module. This is done through the Terminal Selection menu
accessed through the Setup and Configuration menu. Refer to
Chapter 3 for details on terminal selection.
To configure the communication parameters for the communication type being
used, access the Terminal Setup menu using the following path:
Path: Toplevel Menu → → → → teRminal [RS-232] → → → → Setup
Path: Main Menu → → → → Other → → → → teRminal [RS-232] → → → → Setup

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents