Ti 505 Basic

Embed Size (px)

Text of Ti 505 Basic

Series 505 Basic Module Users Manual

25865460031

WARNINGTo ensure that the equipment described by this manual, as well as all equipment connected to and used with it, operates satisfactorily and safely, all applicable local and national codes that apply to installing and operating the equipment must be followed. Since codes can vary geographically and can change with time, it is the users responsibility to determine which standards and codes apply, and to comply with them. FAILURE TO COMPLY WITH APPLICABLE CODES AND STANDARDS CAN RESULT IN DAMAGE TO EQUIPMENT AND/OR SERIOUS INJURY TO PERSONNEL. All equipment should be installed and operated according to all applicable sections of the National Fire Code, National Electrical Code, and the codes of the National Electrical Manufacturers Association (NEMA) as a minimum. Contact your local Fire Marshall and Electrical Inspector to determine which codes and standards apply to your specific case. Personnel who are to install and operate the equipment should carefully study this manual and any others referred to by it prior to installation and/or operation of the equipment. If you have any questions regarding the installation or operation of the equipment, or if more information is desired, contact your authorized Applications Engineering Distributor (AED) or the Texas Instruments Hot Line (6154612501).

Copyright 1991 by Texas Instruments Incorporated All Rights Reserved Printed in USAThe information and/or drawings set forth in this document and all rights in and to inventions disclosed herein and patents which might be granted thereon disclosing or employing and the materials, methods, techniques or apparatus described herein are the exclusive property of Texas Instruments Incorporated and its licensors. No copies of the information or drawings shall be made without the prior consent of Texas Instruments Incorporated. Texas Instruments provides customer assistance in varied technical areas. Since TI does not possess full access to data concerning all of the uses and applications of customers products, TI does not assume responsibility either for customer product design or for any infringements of patents or rights of others which may result from TI assistance. The specifications and descriptions contained in this manual were accurate at the time they were approved for printing. Since Texas Instruments Incorporated constantly strives to improve all its products, we reserve the right to make changes to equipment and/or manuals at any time without notice and without incurring any obligation other than as noted in this manual.

2

5008137

MANUAL PUBLICATION HISTORYSeries 505 Basic Module Users Manual Order Manual Number: 25865460031 Refer to this history in all correspondence and/or discussion about this manual.

Event Original Issue

Date 12/89

Description Original Issue (25924970001)

LIST OF EFFECTIVE PAGESPages Cover/Copyright Registration Questionnaire RMR Card History/Effective Pages iii viii 1-1 1-4 2-1 2-24 3-1 3-77 A-1 A-6 B-1 B-6 C-1 C-2 D-1 D-6 Description Original Original Original Original Original Original Original Original Original Original Original Original Original Pages Description

ContentsChapter 11.1 1.2

Introduction1-2 1-3

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Chapter 22.1 2.2

Installation and Initialization2-2 2-3 2-5 2-5 2-7

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the Configuration Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.1 Configuring 6-switch Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.2 Configuring the 4-switch Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.3 Installing the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3

Connecting Cables and Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9 2.3.1 Communications Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9 2.3.2 RS232C/432 Communications . . . . . . . . . . . . . . . . . . . . . . . . 2-10 Connecting a VPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 Connecting Other Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15 Starting-up the Programmable Basic Module . . . . . . . . . . . . . . . . . . . . 2-16 2.6.1 User-Initiated Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16 2.6.2 Verifying PLC-module Communication . . . . . . . . . . . . . . . . . . 2-16 Starting-up the System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.1 Starting-up the VPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.2 Checking Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.3 Caps Lock On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.4 Enabling VPU Auxiliary (Printer) Port . . . . . . . . . . . . . . . . . . . . . 2.7.5 Error Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.6 Starting-up Other Programming Devices . . . . . . . . . . . . . . . . Hardware Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.8.1 Programming Device and/or Module Failure . . . . . . . . . . . . 2.8.2 Battery Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.8.3 Changing the Battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18 2-18 2-20 2-20 2-21 2-21 2-22 2-23 2-23 2-23 2-24

2.4 2.5 2.6

2.7

2.8

Contents

iii

Chapter 33.1 3.2

Programming Language3-3 3-4 3-4 3-4 3-4 3-6 3-7 3-8 3-11 3-11 3-12 3-12 3-13 3-14 3-14 3-15 3-16 3-16 3-17 3-18 3-20 3-21 3-22 3-25 3-27 3-28 3-35 3-36 3-36 3-37 3-38 3-39 3-40 3-41 3-44 3-52

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operation Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.1 RUN Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.2 PROGRAM Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.3 Power-up Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.4 Source Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.5 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.6 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BASIC Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 CONTINUE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.2 LIST Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 LOAD Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.4 NEW Command and Retentive Memory . . . . . . . . . . . . . . . . 3.3.5 RUN Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.6 SAVE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.7 SIZE Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BASIC Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.1 DEF Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.2 DIM Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.3 ERROR Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.4 ESCAPE/NOESC Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.5 FIND Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.6 FOR/NEXT Loop Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.7 INPUT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.8 LET Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.9 PRINT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.10 RANDOM Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.11 REM Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.12 STOP/END Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.13 TAB Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.14 TIME Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.15 UNIT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.16 Internal Data Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.17 Branch Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.18 CALL (PLC Interface Statement) . . . . . . . . . . . . . . . . . . . . . . . . 3.4.19 Subroutine Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.3

3.4

iv

Contents

3.5

BASIC Functions . . . . . . . . . . . . . . . . . . . . . .