
Chapter
Call Routines 69–127
13
13 -28
Syntax
PUSH remote device node address
PUSH starting element offset (x2) of remote device file
PUSH number of words to be transferred
PUSH message time-out value
CALL
92
POP
status of message instruction
Example
>1
REM EXAMPLE PROGRAM
>
30 PUSH 1 : REM REMOTE NODE ADDRESS = 1
>
40 PUSH 0 : REM OFFSET = 0
>
50 PUSH 10 : REM WORD LENGTH = 10
>
60 PUSH 5 REM TIME-OUT VALUE = 0.5 SECONDS
>
70 CALL 92
>
80 POP R : REM GET THE OUTPUT ARGUMENT
>
90 IF (R<>0) THEN PRINT “READ ERROR CODE IS”,R
>
100 REM PRINT ERROR
READY
>RUN
READ ERROR CODE IS 5
Comentarios a estos manuales