8 communication capabilities – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual

Page 64

Advertising
background image

6Ć24

6.8

Communication Capabilities

BASIC communicates with other processing elements in a system,

including operator's terminals and other application tasks, using the

following statements. A number of these statements access

Processor serial ports.
1. OPEN statement
2. CLOSE statement
3. INPUT statement
4. PRINT/PRINT USING statement
5. IOWRITE statement
6. GET statement
7. PUT statement
8. READ statement
9. DATA statement
10. RESTORE statement

6.8.1

OPEN Statement

The OPEN statement allocates a Processor port to allow application

tasks to communicate with an external device such as a personal

computer. Once you allocate a port, you can use the INPUT, PRINT,

GET, or PUT statements to communicate through the port.

Depending on the port you are allocating, you may also need to use

the CLOSE statement in conjunction with the OPEN statement.
You can allocate a port only in a task running on the Processor that

contains the port. The OPEN statement cannot be used to

communicate with other tasks. See the OPEN CHANNEL statement

description in section 6.6.3 for information about interĆtask

communication.
Ports You Can Use for Serial Communication
Multibus rackĆbased Processor modules have two serial ports,

labeled PROGRAMMER/PORT B" and PORT A", reading top to

bottom. Use the PROGRAMMER/PORT B port for connecting the

Processor to the personal computer running the AutoMax

Programming Executive software. The other port, PORT A, is

available for use by application tasks. If there are multiple Processor

modules in the rack, only the leftmost PROGRAMMER/PORT B port

is reserved for communicating with the Executive software. All other

Processor ports in the rack are available for use by application

tasks.
The PC3000 Processor also has two serial communication ports.

The 25Ćpin DĆshell port works exactly like the PROGRAMMER/PORT

B port on the rackĆbased Processor described above. The 9Ćpin port

works like the
PORT A port on the rackĆbased Processor. On the PC3000, however,

both ports may be available for communication with external

devices, depending on the setting of jumper JP2. Refer to the

PC3000 User Manual, J2Ć3096, for more information on setting the

jumper.

Advertising
This manual is related to the following products: