Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Basic language
Table of contents
Document Outline
- 1746-RM001A-US-P, BASIC Language Reference Manual
- Important User Information
- Table of Contents
- Preface
- Language Elements
- Data Types
- Expressions and Operators
- BASIC Commands
- Command Line CALLs
- CALL 73 – Battery-Backed RAM Disable
- CALL 74 – Battery-Backed RAM Enable
- CALL 77 – Protected Variable Storage
- CALL 81 – User Memory Module Check and Description
- CALL 82 – Check User Memory Module Map
- CALL 101 – Upload User Memory Module Code to Host
- CALL 103 – Print PRT1 Output Buffer and Pointer
- CALL 104 – Print PRT1 Input Buffer and Pointer
- CALL 109 – Print Argument Stack
- CALL 110 – Print PRT2 Output Buffer Pointer
- CALL 111 – Print PRT2 Input Buffer Pointer
- Assignment Functions
- Control Functions
- Execution Control and Interrupt Support Functions
- CALL 16 – Enable DF1 Packet Interrupt
- CALL 17 – Disable DF1 Packet Interrupt
- CALL 20 – Enable Processor Interrupt
- CALL 21 – Disable Processor Interrupt
- CALL 26 – Module Interrupt
- CALL 38 – Expanded ONERR Restart
- CALL 70 – ROM to RAM Program Transfer
- CALL 71 – ROM/RAM to ROM Program Transfer
- CALL 72 – RAM/ROM Return
- GOSUB
- ONERR
- ON-GOSUB
- ONTIME
- PUSH
- POP
- RETI
- RETURN
- STOP
- Math and Backplane Conversion Functions
- CALL 14 – 16-Bit Signed Integer to BASIC Floating-Point
- CALL 15 – 16-Bit Unsigned Integer to BASIC Floating-Point
- CALL 24 – BASIC Floating-Point to 16-Bit Signed Integer
- CALL 25 – BASIC Floating-Point to 16-Bit Binary
- CALL 88: BASIC Floating-Point to SLC Floating-Point
- CALL 89: SLC Floating-Point to BASIC Floating-Point
- Clock/Calendar Functions
- CALL 40 – Set Clock/ Calendar Time
- CALL 41 – Set Clock/ Calendar Date
- CALL 42 – Set Day of Week
- CALL 43 – Retrieve Date/ Time String
- CALL 44 – Retrieve Date Numeric
- CALL 45 – Retrieve Time String
- CALL 46 – Retrieve Time Numeric
- CALL 47 – Retrieve Day of Week String
- CALL 48 – Retrieve Day of Week Numeric
- CALL 52 – Retrieve Date String
- Status Functions
- CALL 36 – Get Number of Characters in PRT2 Buffers
- CALL 51 – Check CPU Output Image Buffer
- CALL 55 – Check CPU Input Image Buffer
- CALL 58 – Check M0 File
- CALL 59 – Check M1 File
- CALL 75 – Check SLC 500 Controller CPU Status
- CALL 80 – Check Battery Condition
- CALL 86 – Check DH485 Interface File Remote Write Status
- CALL 87 – Check DH485 Interface File Remote Read Status
- CALL 95 – Get Number of Characters in PRT1 Buffers
- CALL 97 – Enable Port PRT2 DTR Signal
- CALL 98 – Disable Port PRT2 DTR Signal
- CALL 108 – Enable DF1 Driver Communications
- CALL 113 – Disable DF1 Driver Communications
- CALL 120 – Clear module Input and Output Buffers
- CALL 121 – Get SLC Processor Program ID Number
- Output Functions
- CALL 23 – Transfer Data from the CPU Files to Port 1 or 2
- CALL 28 – Write to Remote DH485 SLC Data File
- CALL 29 – Read/Write to a PLC/SLC from the Module Internal String
- CALL 31 – Display Current PRT2 Port Setup
- CALL 37 – Clear PRT2 Input/Output Buffers
- CALL 54 – Transfer BASIC Output Buffer to CPU Input Image
- CALL 57 – Transfer BASIC Output Buffer to CPU M1 File
- CALL 85 – Transfer BASIC Output Buffer to DH485 Common Interface File
- CALL 91 – Write BASIC Output Buffer to Remote DH485 Data File
- CALL 93 – Write Output Buffer to Remote DH485 Common Interface File
- CALL 94 – Display Current PRT1 Port Setup
- CALL 96 – Clear PRT1 Input/Output Buffers
- CALL 112 – User LED Control
- CALL 114 – Transmit DF1 Packet
- CALL 115 – Check DF1 XMIT Status
- CALL 123 – Write to Remote DF1 PLC Data File
- PH0., PH1.
- ST@
- Input Functions
- CALL 22 – Transfer Data from Port 1 or 2 to the CPU Files
- CALL 27 – Read Remote DH485 SLC Data File
- CALL 29 – Read/Write to a PLC/SLC from the Module Internal String
- CALL 35 – Get Numeric Input Character from PRT2
- CALL 53 – Transfer CPU Output Image to BASIC Input Buffer
- CALL 56 – Transfer CPU M0 File to BASIC Input Buffer
- CALL 84 – Transfer DH485 Interface File to BASIC Input Buffer
- CALL 90 – Read Remote DH485 Data File to BASIC Input Buffer
- CALL 92 – Read Remote DH485 Common Interface File to BASIC Input Buffer
- CALL 117 – Get DF1 Packet Length
- CALL 118 – PLC/SLC Unsolicited Writes
- CALL 122 – Read Remote DF1 PLC Data File
- GET
- INPL
- INPS
- INPUT
- LD@
- READ
- Setup Functions
- String Functions
- CALL 60 – String Repeat
- CALL 61 – String Append
- CALL 62 – Number to String Conversion
- CALL 63 – String to Number Conversion
- CALL 64 – Find a String in a String
- CALL 65 – Replace a String in a String
- CALL 66 – Insert a String in a String
- CALL 67 – Delete a String in a String
- CALL 68 – Find the Length of a String
- STRING
- Decimal/Hexadecimal/Octal/ASCII Conversion Table
- BASIC Command, Statement, and CALL Quick Reference Guide
- Index
- Back Cover