Rockwell-automation 1746-BAS BASIC LANGUAGE User Manual Page 167

  • Download
  • Add to my manuals
  • Print
  • Page
    / 280
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 166
Publication 1746-RM001A-US-P
Output Functions 12-17
Syntax
PUSH [number of words to be transferred]
CALL 57
POP [processor mode]
Example
>1 REM EXAMPLE PROGRAM
>50 PUSH 64 : REM TRANSFER LENGTH IS 64 WORDS
>60 CALL 57 : REM TRANSFER BASIC OUTPUT BUFFER TO M1
>70 POP X : REM LOGIC PROCESSOR STATUS IS IN X
>80 PRINT X
READY
>RUN 0
READY
>
CALL 85 – Transfer
BASIC Output Buffer to
DH485 Common
Interface File
Purpose
Use CALL 85 to transfer up to 40 words to the DH485 Common Interface File.
This routine has two input arguments and one output argument. The first input
argument is the starting word offset of the DH485 Common Interface File. If the
word offset value is not within the range 0 to 127, the output argument equals 1.
The second input argument is the number of words to be transferred from the
module output buffer to the DH485 Common Interface File. If the second input
argument number is not within the range 1 to 40, the output argument equals 2.
The output argument specifies the transfer status. It can have one of the following
values:
0 - Successful transfer
1 - Illegal starting offset
2 - Illegal length
Word integrity is guaranteed during this transfer. File integrity is not.
Syntax
PUSH [starting word offset in DH485 interface file]
PUSH [number of words to be transferred]
CALL 85
POP [transfer status]
Page view 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 279 280

Comments to this Manuals

No comments