Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 279
Advertising
![background image](/manuals/579953/279/background.png)
Chapter
Call Routines 69–127
13
13 -21
Syntax
PUSH
remote device node address
PUSH
remote device file number
PUSH
remote device file type
PUSH
starting element offset (x2) of remote device file
PUSH
number of elements to be transferred
PUSH
message time-out value
CALL 90
POP
status of message instruction
Example
>10 PUSH 1 : REM REMOTE NODE ADDRESS = 1
>20 PUSH 5 : REM REMOTE FILE 5
>30 PUSH ASC(C) : REM FILE TYPE = COUNTER
>40 PUSH 0 : REM OFFSET = 0
>50 PUSH 10 : REM ELEMENT LENGTH = 10 = 30 WORDS
>60 PUSH 5 : REM TIME-OUT = 0.5 SECONDS
>70 CALL 90
>80 POP R : REM GET THE OUTPUT ARGUMENT
>90 IF (R<>0) THEN PRINT “READ ERROR CODE =”,R
READY
>RUN
READ ERROR CODE = 5
Advertising