beautypg.com

Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 6

background image

Publication 1746-RM001A-US-P

Table of Contents iv

Chapter 11

Status Functions

CALL 36 – Get Number of Characters in PRT2 Buffers . . . . . . . . . 11-2
CALL 51 – Check CPU Output Image Buffer . . . . . . . . . . . . . . . . . 11-3
CALL 55 – Check CPU Input Image Buffer. . . . . . . . . . . . . . . . . . . 11-4
CALL 58 – Check M0 File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5
CALL 59 – Check M1 File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
CALL 75 – Check SLC 500 Controller CPU Status . . . . . . . . . . . . . 11-7
CALL 80 – Check Battery Condition . . . . . . . . . . . . . . . . . . . . . . . . 11-8
CALL 86 – Check DH485 Interface File Remote Write Status. . . . . 11-8
CALL 87 – Check DH485 Interface File Remote Read Status . . . . . 11-9
CALL 95 – Get Number of Characters in PRT1 Buffers . . . . . . . . 11-10
CALL 97 – Enable Port PRT2 DTR Signal . . . . . . . . . . . . . . . . . . 11-11
CALL 98 – Disable Port PRT2 DTR Signal . . . . . . . . . . . . . . . . . . 11-11
CALL 108 – Enable DF1 Driver Communications. . . . . . . . . . . . . 11-12
CALL 113 – Disable DF1 Driver Communications . . . . . . . . . . . . 11-18
CALL 120 – Clear module Input and Output Buffers . . . . . . . . . . 11-18
CALL 121 – Get SLC Processor Program ID Number . . . . . . . . . . 11-19

Chapter 12

Output Functions

CALL 23 – Transfer Data from the CPU Files to Port 1 or 2 . . . . . . 12-2
CALL 28 – Write to Remote DH485 SLC Data File . . . . . . . . . . . . 12-6
CALL 29 – Read/Write to a PLC/SLC from the
Module Internal String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-13
CALL 31 – Display Current PRT2 Port Setup . . . . . . . . . . . . . . . . 12-14
CALL 37 – Clear PRT2 Input/Output Buffers . . . . . . . . . . . . . . . . 12-15
CALL 54 – Transfer BASIC Output Buffer to CPU Input Image. . 12-15
CALL 57 – Transfer BASIC Output Buffer to CPU M1 File . . . . . 12-16
CALL 85 – Transfer BASIC Output Buffer to DH485
Common Interface File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-17
CALL 91 – Write BASIC Output Buffer to Remote DH485 Data File 12-18
CALL 93 – Write Output Buffer to Remote DH485
Common Interface File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-22
CALL 94 – Display Current PRT1 Port Setup . . . . . . . . . . . . . . . . 12-24
CALL 96 – Clear PRT1 Input/Output Buffers . . . . . . . . . . . . . . . . 12-24
CALL 112 – User LED Control . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-25
CALL 114 – Transmit DF1 Packet. . . . . . . . . . . . . . . . . . . . . . . . . 12-26
CALL 115 – Check DF1 XMIT Status. . . . . . . . . . . . . . . . . . . . . . 12-27
CALL 123 – Write to Remote DF1 PLC Data File. . . . . . . . . . . . . 12-28
PRINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-35
PH0., PH1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-37
ST@ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-38