Syntax, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 212

Publication 1746-RM001A-US-P
13-22 Input Functions
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
>1
REM EXAMPLE PROGRAM
>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 TIMEOUT = 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
231
E7
Target node cannot respond because length requested is too
large.
235
EB
Target node cannot respond because target node denies
access.
236
EC
Target node cannot respond because requested function is
currently unavailable.
241
F1
module detects illegal target file type.
250
FA
Target node cannot respond because another node is file
owner (has sole file access).
251
FB
Target node cannot respond because another node is
program owner (has sole access to all files).
Table 13.7 Output Argument
Decimal
Output
Hexadecimal
Output
Description