Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 271
Chapter
Call Routines 69–127
13
13 -13
Use CALL 85 to transfer up to 40 words starting at the designated offset of
the BASIC output buffer to the DH-485 Common Interface File starting at
the same designated offset from word 0.
This call does not interrupt nor is it interrupted by a DH-485 read or write
from or to the DH-485 common interface file.
Word integrity is guaranteed during this transfer. File integrity is not.
Input and Output Arguments
This routine has two input arguments and one output argument. The first
input argument is the starting word offset (0 – 127) of the DH-485
Common Interface File and the BASIC output buffer. The second input
argument is the length in words (1 to 40) to be transferred from the BASIC
module output buffer to the DH-485 Common Interface File.
The output argument specifies the transfer status. It can have one of these
values:
0 = successful transfer
1 = illegal starting offset; transfer does not take place
2 = illegal length; transfer does not take place
Syntax
PUSH
starting word offset in DH-485 interface file
PUSH
number of words to be transferred
CALL 85
POP
transfer status
Example
>1 REM EXAMPLE PROGRAM
>40 PUSH 31 : REM OFFSET ADDRESS = 31
>50 PUSH 3 : REM WORD LENGTH = 3
>60 CALL 85 : REM TRANSFER DATA TO DH-485 CIF
>70 POP R
>80 IF R<>0 PRINT “TRANSFER ERROR CODE = ”,R
>90 REM PRINT ERROR
READY
>RUN
READy
CALL 85: Transfer BASIC
Output Buffer to DH-485
Common Interface File