beautypg.com

Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 289

background image

Chapter
Call Routines 69–127

13

13 -31

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 93

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 THE TIME-OUT VALUE = 0.5 SECONDS

>70 CALL 93 : REM WRITE DATA FROM BASIC OUTPUT BUFFER

>80 POP R : REM GET THE OUTPUT ARGUMENT

>90 IF R<>0 THEN PRINT READ ERROR CODE = ”,R

READY

>RUN

READ ERROR CODE = 5