beautypg.com

Call 115 – check df1 xmit status, Call 115 – check df1 xmit status -27, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 177: Purpose, Syntax

background image

Publication 1746-RM001A-US-P

Output Functions 12-27

Example

>1

REM EXAMPLE PROGRAM

>10 CALL 114

>20 END

CALL 115 – Check DF1
XMIT Status

Purpose

Use CALL 115 to check the DF1 transmit status. This routine has no input
arguments and one output argument. The output argument returns a value that
represents the DF1 transmit status. The possible DF1 transmit status values are
shown below:

0 - No transmit result pending

1 - Transmit result pending

2 - Transmission successful

3 - Transmission failed

4 - Enquiry timeout, no transmission

5 - If modem handshaking is selected, either a loss of CTS signal while
transmitting or a fatal transmitter failure has occurred. If no handshaking is
selected, a fatal transmitter failure has occurred.

6 - If modem handshaking with constant carrier has been selected for either
half–duplex or full–duplex modes, this error indicates transmission failure due
to modem disconnection (DCD signal loss for more than 10 seconds).

7 - DF1 driver is not enabled.

Syntax

CALL 113
POP [DF1 transmit status]

Example

>1

REM EXAMPLE PROGRAM

>10 CALL 113

>20 POP X

>30 END

IMPORTANT

Transmit status value 4 should never be returned if full-duplex
mode is selected.