Call 115: check df1 status – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 307

Advertising
background image

Chapter
Call Routines 69–127

13

13 -49

Use CALL 115 to check the DF1 transmit status.

Input and Output Arguments

This routine has no input arguments and one output argument. The output
argument returns a value that represents the DF1 transmit status:

0 = no transmit result pending

1 = transmit result pending

2 = transmission successful

3 = transmission failed

4 = enquiry timeout, no transmission– this status should never be

returned if full-duplex mode is selected

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 115

POP

DF1 transmit status

Example

>1 REM EXAMPLE PROGRAM

>10 CALL 115

>20 POP X

>30 END

CALL 115: Check DF1
Status

Advertising