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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 280
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 206
Publication 1746-RM001A-US-P
Input Functions 13-17
CALL 53 – Transfer CPU
Output Image to BASIC
Input Buffer
Purpose
Use CALL 53 to transfer words 0 to 7 of the CPU output image table to words 200
to 207 of the module input buffer. This routine has no input arguments and one
output argument. The output argument is the status of the Logic Processor. It can
have one of the following values:
0 – Logic processor is in the Run mode
1 – Logic processor is not in the Run mode
Word integrity is guaranteed during this transfer. File integrity is not. Handshaking
bits can be used in your application program to provide file integrity.
All data transferred to the module from the SLC 500 processor must be routed
through the module input buffer. Table 13.4 lists the definition of the addresses in
the module input buffer.
Syntax
CALL 53
POP [processor status]
Example
>1 REM EXAMPLE PROGRAM
>30 CALL 53 : REM XFER CPU OUTPUT IMAGE TO BASIC INPUT BUFFER
>40 POP X : REM LOGIC PROCESSOR STATUS
>50 IF (X<>0) THEN PRINT “PROCESSOR NOT IN RUN MODE”
READY
>RUN
Table 13.4 Module Input Buffer Addresses
Address Definition
0 to 39 Data transferred from the DH485 common interface file.
40 to 99 Reserved
100 to 163 Data transferred from the SLC 500 CPU module M0 file.
164 to 199 Reserved
200 to 207 Data transferred from the SLC 500 CPU output image table.
Page view 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 279 280

Comments to this Manuals

No comments