Call 113 - Disable Df1 Driver Communications; Call 120 - Clear Module Input And Output Buffers - Rockwell Automation Allen-Bradley SLC 500 BASIC Reference Manual

Hide thumbs Also See for Allen-Bradley SLC 500 BASIC:
Table of Contents

Advertisement

11-18
Status Functions
CALL 113 – Disable DF1
Driver Communications
CALL 120 – Clear module
Input and Output Buffers
Publication 1746-RM001A-US-P
Syntax
PUSH [operational code]
PUSH [Poll timeout or ACKnowledge timeout]
PUSH [message retries or ENQuiry retries]
PUSH [RTS On delay or NAK received retries]
PUSH [RTS Off delay or NULL value]
PUSH [module DF1 address]
CALL 108
Example
>1
REM EXAMPLE PROGRAM
>10 PUSH 5 : REM HDMWOCC, ENABLE DPD, BCC ERROR CHECKING
>20 PUSH 200 : REM WAIT 1 SECOND TO BE POLLED BY MASTER
>30 PUSH 2 : REM PERFORM 2 RETRIES
>40 PUSH 4 : REM 20 MS RTS ON DELAY
>50 PUSH 4 : REM 20 MS RTS OFF DELAY
>60 PUSH 10 : REM module ADDRESS OF 10
>70 CALL 108
>80 END
Purpose
Use CALL 113 to disable DF1 driver communications. This routine has no input
arguments and no output arguments. This CALL terminates DF1 communication
immediately, even if the serial transmission of a data packet is in progress. You
should write your user program so that it completes any transmission before
performing CALL 113. This CALL clears the PRT2 transmission and receive
buffers.
Syntax
CALL 113
Example
>1 REM EXAMPLE PROGRAM
>10 CALL 113
>20 END
Purpose
Use CALL 120 to clear the module input and output buffers. This routine has one
input argument and no output arguments. The input argument is an 8-bit word

Advertisement

Table of Contents
loading

This manual is also suitable for:

Allen-bradley slc 500 basic-t1746-bas1746-bas-t

Table of Contents