beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 123

background image

MVI56-BAS ♦ ControlLogix Platform

BASIC CALLs Syntax

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 123 of 234

December 13, 2011

9.3

Serial Port CALLs

CALL 30: Set PRT2 Port Parameters

Use CALL 30 to set the port communication parameters for PRT2.

Syntax:

PUSH [A]
PUSH [B]
PUSH [C]
PUSH [D]
PUSH [E]
CALL 30

Where:
A = bits per word (5,6,7,8)
B = parity enable (0 = none, 1= Odd, 2=Even)
C = number of stop bits (1 = 1 stop bits, 2 = 2 stop bits, 3 = 1.5 stop bits)
D = software handshaking (0 = none, 1 = XON-XOF)
E = hardware handshaking (0=Disabled DCD, 1=Enabled DCD)

Example:

.
.
.
125 PUSH 8,0,1,1,0: CALL 30
.
.
.