Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 97

Advertising
background image

Operating Functions

Chapter 5

5–60

The five values PUSHed on the stack before executing the CALL are in the
following order:

Parameter

Selections

Number of bits/word

Parity Enable

Number of Stop Bits

Software Handshaking

Hardware Handshaking

5,6,7,8

0=None,2=Even 1=Odd

1=1 Stop Bit, 2=2 Stop Bits, 3=1.5 Stop Bits

0=None, 1=XON–XOF

0=Disable DCD

1=enable DCD

Example:

100 PUSH 8 : REM 8 BITS/WORD

120 PUSH 0 : REM NO PARITY

140 PUSH 1 : REM 1 STOP BIT

160 PUSH 0 : REM NO SOFTWARE HANDSHAKING

160 USH 0

EM

S FTWA E HA DSHAKI G

180 PUSH 0 : REM DISABLE DCD

200 CALL 30 : REM SET UP PERIPHERAL PORT

or

Example:

100 PUSH 8,0,1,0,0:CALL 30

Important: Hardware and software handshaking is disabled and both I/O
buffers are cleared on power-up.

This routine displays the current peripheral port configuration on the
terminal. No argument is PUSHed or POPed.

Enter CALL 31 [return] from the command mode.

Example:

CALL 31 [RETURN]

DCD OFF
1 STOP BIT
NO PARITY
8 BITS/CHAR

Important: XON/XOFF status is shown only if enabled.

5.8.1
Peripheral Port Support –
Parameter Set – CALL 30
(continued)

5.8.2
Peripheral Port Support –
Display Peripheral Port
Parameters –CALL 31

Advertising