beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 219

background image

MVI56-BAS ♦ ControlLogix Platform

Reference

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 219 of 234

December 13, 2011

PRT2 can also be used as a DF1 port if the DF1 driver is enabled (using CALL

108). Refer to Using DF1 Protocol Communications for more information on

using the DF1 protocol.

Changing the Port Communication Parameters
The port communication parameters can be changed using the MODE

command:
The MVI56-BAS ports PRT1 (COM2) and PRT2 (COM3) have the following

default communication parameters:

Description

Value

Baud Rate

19200

Parity

N

Number of Data Bits

8

Number of Stop Bits

1

Handshaking

N

In order to change a port communication parameter, you should use the MODE

function.

MODE Syntax for PRT1 (COM2) and PRT2 (COM3)
MODE(port,baud rate, parity, data bits, stop bits, handshake, storage type)

Where:

Port:

PRT1, PRT2

Communication rate:

300, 600, 1200, 2400, 4800, 9600, 19200.

Parity:

N (none), E (even), O (odd).

Number of data bits:

7 or 8 .

Number of Stop Bits:

1 or 2 .

Handshaking:

N (no handshaking), S (software handshaking),
H (hardware handshaking), B (hardware and software handshaking)

Storage type:

E (store information in user ROM and RAM) ,
R (store information in battery backed RAM)

For example, in order to change the PRT 1 communication baud rate to 9600,

the user would enter:

Ready
>MODE(PRT1,9600,N,8,1,N,R)

MODE Syntax for DH-485 (COM1) port
MODE(port, baud rate, host node address, module node address, maximum

node address, , storage type)

Where:

Port:

DH485

Communication rate:

300, 600, 1200, 2400, 4800, 9600, 19200.

Host Node Address:

0 to 31