Setup functions, Call 30 – set prt2 port parameters, Chapter 14 – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 237: Call 30 – set prt2 port parameters -1, Chapter, Purpose, Syntax

Advertising
background image

1

Publication 1746-RM001A-US-P

Chapter

14

Setup Functions

This chapter describes and illustrates commands used to set port parameters within
the BASIC program or from the command line. Table 14.1 lists the corresponding
mnemonics.

CALL 30 – Set PRT2 Port
Parameters

Purpose

Use CALL 30 to set the port parameters for port PRT2. Table 14.2 lists the PRT2
port parameters and their selections in the order they are PUSHed on the stack
before executing the CALL.

Syntax

PUSH [bits per word]
PUSH [parity enable]
PUSH [number of stop bits]
PUSH [software handshaking enable/disable]
PUSH [hardware handshaking enable/disable]
CALL 30

Table 14.1 Chapter Reference Guide

If you need (to)

Use this mnemonic Page

Set the PRT2 port parameters.

CALL 30

14-1

Set the program port baud rate.

CALL 78

14-2

Reset the print head pointer.

CALL 99

14-3

Reset port PRT1 to the default settings.

CALL 105

14-4

Reset port PRT2 to the default settings.

CALL 119

14-4

Set port parameters of ports PRT1, PRT2, and DH485.

MODE

14-5

Table 14.2 PRT2 Port Parameters

PRT2 Port Parameters

Selections

Bits per word

5, 6, 7, 8

Parity enable

0 = None, 1 = Odd, 2 = Even

Number of stop bits

1 = 1 Stop bit , 2 = 2 Stop bits , 3 = 1.5 Stop bits

Software handshaking

0 = None, 1 = XON-XOF

Hardware handshaking

0 = Disabled DCD, 1 = Enabled DCD

Advertising