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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 280
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 164
Publication 1746-RM001A-US-P
Output Functions 12-15
CALL 37 – Clear PRT2
Input/Output Buffers
Purpose
Use CALL 37 to clear the peripheral port input and/or output buffers. Use the
following PUSHes to clear the corresponding buffer:
PUSH 0 to clear the output buffer.
PUSH 1 to clear the input buffer.
PUSH 2 to clear both buffers.
Syntax
PUSH [buffer selection]
CALL 37
Example
>1 REM EXAMPLE PROGRAM
>10 PUSH 0 : REM CLEARS THE OUTPUT BUFFER
>20 CALL 37
>30 END
READY
>RUN
READY
>
CALL 54 – Transfer
BASIC Output Buffer to
CPU Input Image
Purpose
Use CALL 54 to transfer words 200 to 207 of the module output buffer to words 0
to 7 of the CPU input image table. This routine has no input arguments and one
output argument. The output argument is the status of the Logic Processor.
Word 200 in the BASIC output buffer is reserved and can not be modified. This
word provides module status information to the SLC 500 processor. Bit 15 is the
module mode bit. It can have one of the following values:
0 - BASIC or BASIC-T module is in the Run mode
1 - BASIC or BASIC-T module is not in the Run mode
Bit 14 of word 200 is the EEPROM checksum bit. It can have one of the following
values:
0 - EEPROM checksum is correct
1 - EEPROM checksum is incorrect
Page view 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 279 280

Comments to this Manuals

No comments