Rockwell-automation 1771-DB Basic Module User Manual - Series A Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Équipement Rockwell-automation 1771-DB Basic Module User Manual - Series A. Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 167
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Allen-Bradley

I–1UserManual1771–DB BasicModuleAllen-Bradley

Page 2 - Table of Contents

Using This ManualChapter 11–2There are three different types of precautionary statements in this manual:Important, CAUTION and WARNING.Important: used

Page 3

Operating FunctionsChapter 55–63This routine gets the current character in the 255 character, peripheral portinput buffer. It returns the decimal repr

Page 4 - Table of Contents iii

Operating FunctionsChapter 55–64Example: u10 REM PERIPHERAL PORT INPUT USING CALL 35 u20 STRING 200,20 u30 DIM D(254) u40 CALL 35: POP X u50 IF X tu2

Page 5 - Table of Contentsiv

Operating FunctionsChapter 55–65Use this routine to retrieve the number of characters in the chosen buffer asits output argument. You must PUSH which

Page 6 - Table of Contents v

Operating FunctionsChapter 55–66This routine has one input argument and no output arguments. If no IDnumber is pushed prior to CALL 38, an error occur

Page 7

Operating FunctionsChapter 55–67CALL 111 prints the complete buffer with addresses, front pointer and thenumber of characters in the buffer to the con

Page 8 - Table of Contents vii

Operating FunctionsChapter 55–68Use this routine to set the following wall clock time functions:H = hours (0 to 23)M = minutes (0 to 59)S = seconds(0-

Page 9 - Using This Manual

Operating FunctionsChapter 55–69CALL 43 returns the current date and time as a string. PUSH the numberof the string to receive the date/time (dd/mmm/y

Page 10 - Conventions

Operating FunctionsChapter 55–70The time of day is available in numeric form by executing a CALL 46 andPOPing the three variables off of the argument

Page 11 - Introducing the BASIC Module

Operating FunctionsChapter 55–71CALL 52 returns the current date in a string (dd/mmm/yy). PUSH thenumber of the string to receive the date. You must a

Page 12 - Hardware Features

Operating FunctionsChapter 55–72Two operators in the BASIC Module can manipulate STRINGS. Theseoperators are ASC() and CHR(). The ASC() operator retur

Page 13 - Software Features

Chapter 2Introducing the BASIC ModuleThis chapter discusses the functions and features of the BASIC Module.When you finish reading this chapter, you s

Page 14 - 2.5 Specifications

Operating FunctionsChapter 55–73You can also use the ASC() operator to change individual characters in adefined string.Example:u5 STRING 1000,40 u10 $

Page 15 - Installing the BASIC Module

Operating FunctionsChapter 55–74The CHR() operator converts a numeric expression to an ASCII character.Example:uPRINT CHR(65) ALike the ASC() operator

Page 16 - Chapter 3

Operating FunctionsChapter 55–755.10.2.2 Cursor Positioning on an Industrial TerminalAllen-Bradley Industrial Terminal – Refer to the Industrial Termi

Page 17 - Configuration Plugs

Operating FunctionsChapter 55–76It is important to note that since the carriage return character is the stringterminator, you cannot use it within a s

Page 18

Operating FunctionsChapter 55–77Example program 1: uLIST 10 REM STRING ALLOCATION COMPUTATION KNOWING: 20 REM 1)# CHARACTERS IN LONGEST STRING 2)# OF

Page 19 - Initial Start-up Procedure

Operating FunctionsChapter 55–78Example program 2: uLIST 10 REM STRING ALLOCATION COMPUTATION KNOWING: 20 REM 1)# CHARACTERS IN LONGEST STRING 2) AMOU

Page 20 - Module Status LED’s

Operating FunctionsChapter 55–79Example program 3: 10 REM STRING ALLOCATION COMPUTATION KNOWING: 20 REM 1) AMOUNT OF STRING MEMORY 2) #OF STRING VARI

Page 21 - Installing the User Prom

Operating FunctionsChapter 55–805.10.3.1 String Repeat – CALL 60 This routine allows you to repeat a character and place it in a string. Youcan use th

Page 22

Operating FunctionsChapter 55–815.10.3.2 String Append (Concatenation) – CALL 61This routine allows you to append one string to the end of another str

Page 23 - Discharge

Operating FunctionsChapter 55–825.10.3.4 String to Number Conversion – CALL 63This routine converts the first decimal number found in the specified st

Page 24 - Battery (continued)

Introducing the BASIC ModuleChapter 22–2Figure 2.1BASIC Module Front EdgeYour module is a one-slot module with the following functions andfeatures:13

Page 25 - Using the Serial Ports

Operating FunctionsChapter 55–835.10.3.5 Find a String in a String – CALL 64This routine finds a string within a string. It locates the first occurren

Page 26 - Chapter 4

Operating FunctionsChapter 55–845.10.3.6 Replace a String in a String – CALL 65This routine replaces a string within a string. Three arguments areexpe

Page 27 - Program Port

Operating FunctionsChapter 55–855.10.3.7 Insert String in a String – CALL 66This routine inserts a string within another string. The call expects thre

Page 28

Operating FunctionsChapter 55–865.10.3.8 Delete String from a String – CALL 67This routine deletes a string from within another string. The call expec

Page 29 - Terminal to the Program Port

Operating FunctionsChapter 55–875.10.3.9 Determine Length of a String – CALL 68This routine determines the length of a string. One input argument isex

Page 30

Operating FunctionsChapter 55–88This routine shifts program execution from a running ROM program to thebeginning of the RAM program. No arguments are

Page 31 - Configuring the Software

Operating FunctionsChapter 55–89The user is now executing ROM 4 if it exists. If the ROM routinerequested does not exist the result is:PROGRAM NOT FOU

Page 32 - Peripheral Port

Operating FunctionsChapter 55–90CALL 73 disables the battery-backed RAM, prints “Battery BackupDisabled” when executed and allows a purging reset. The

Page 33

Operating FunctionsChapter 55–91Example:For using protected variable storage area.A. Scalar VariablesPush all variables in one line:uPRINT MTOP 14335

Page 34 - Peripheral Port (continued)

Operating FunctionsChapter 55–92B. ArraysUse an array to set up the datauPRINT MTOP 14335 uPRINT MTOP-24 14311uPUSH 14311:REM NEW MTOP ADDRESS CALL 77

Page 35

Introducing the BASIC ModuleChapter 22–3One RS-423A/232C/RS-422 compatible serial communications port(PERIPHERAL port), supporting bi-directional XON/

Page 36 - RS-422 Devices

Operating FunctionsChapter 55–93The Active LED is on constantly during program execution or commandmode. When you issue a CALL 79 the Active LED remai

Page 37 - Assembly Parts

Operating FunctionsChapter 55–94You can use CALL 99 when printing out wide forms to reset the internalprint head character counter and prevent the aut

Page 38

Operating FunctionsChapter 55–95CALL 119 resets the peripheral port to the following default settings:8 bits/character1 stop bitNo parityDCD offXON-XO

Page 39

Chapter 6ProgrammingAfter reading this chapter you should be able to:program your BASIC Module for use with a programmable controller.use block-transf

Page 40

ProgrammingChapter 66–2The BASIC Module also maintains a block-transfer-read (BTR) buffer thatis the value of the next block, read by the host process

Page 41

ProgrammingChapter 66–3Refer to figure 6.1 for the sample ladder logic and figure 6.2 for thecorresponding BASIC program. The values shown in figure 6

Page 42 - Control Stack

ProgrammingChapter 66–4Figure 6.2Sample BASIC Module Programu5 DIM A(10) u10 REM SET BTW LENGTH TO 10 WORDS u20 PUSH 10: CALL 4 u30 REM SET BTR LEN

Page 43 - Command: RUN

ProgrammingChapter 66–5You can use the following ladder logic program with PLC-3 or PLC-3/10processors. This program assumes that your application req

Page 44 - Command: LIST

ProgrammingChapter 66–6Figure 6.5Sample PLC-3 Family Ladder Diagram6.4 PLC-3 Family Processors(continued)

Page 45 - Command: LIST# or LIST

ProgrammingChapter 66–7Rung 1 — Rung one is true only at power-up. It uses status word 3, bit 3(the AC power loss bit of the PLC-3) to zero the contro

Page 46 - Command: Disabling Control C

IsolationG The Programming Port is isolated fromthe 1771 I/O backplane. (+500 V)G The Peripheral Port is isolated fromthe 1771 I/O backplane. (+500 V)

Page 47

ProgrammingChapter 66–8Figure 6.6Sample PLC-5 Family Ladder Logic6.5 PLC-5 Family Processors(continued)

Page 48 - [integer] (continued)

ProgrammingChapter 66–9Figure 6.7Sample PLC-5 Family Ladder LogicRungs 1 and 2 – Rungs 1 and 2 execute the BTR and BTW instructionsalternately. When t

Page 49 - Command: PROG

ProgrammingChapter 66–101. The block lengths PUSHed for CALLs 4 and 5 must equal thecorresponding lengths on your BTW/BTR instructions in the processo

Page 50

Chapter 7Data TypesThis chapter describes the data types and formats used by the BASICModule Data Conversion CALL routines. After reading this chapter

Page 51 - Command: PROG2

Data TypesChapter 77–2This value requires one word of the processor data table. The data isrepresented by a 3-digit binary coded decimal integer (figu

Page 52

Data TypesChapter 77–3Figure 7.3Truncated 4-Digit BCD IntegerThis value requires one word of the processor data table. The data isrepresented by a 4-d

Page 53

Data TypesChapter 77–4This value requires two words of the processor data table. The first wordcontains overflow, underflow and sign data and the thre

Page 54 - Statements: CLOCK1

Data TypesChapter 77–5This value requires two words of the processor data table. The first wordcontains the overflow, underflow, sign data and the thr

Page 55 - Statements: DAT

Data TypesChapter 77–6The BASIC Module interfaces with the PLC-2, PLC-3 and PLC-5 familyprocessors. You can send the following data types to the BASIC

Page 56 - [rel expr]

Chapter 8Editing A ProcedureAfter reading this chapter you should be able to make corrections ormodifications to your BASIC programs using the editing

Page 57 - [rel expr] (continued)

Chapter 3Installing the BASIC ModuleThis chapter describes how to install your BASIC module in a 1771 I/Orack. After reading this chapter you should b

Page 58 - Statements: DO – WHILE

Editing A ProcedureChapter 88–2Invoke the insert command by typing [CTRL]A. This command insertstext at the cursor position. You must type a second [C

Page 59

Editing A ProcedureChapter 88–3REN[NUM1],[NUM2] — begins at the start of the program andcontinues through the end of the program. The new line numbers

Page 60

Editing A ProcedureChapter 88–4The following example shows you how to edit a simple procedure.Example:When the screen shows You do thisLIST10 EM10 REM

Page 61 - Statement: GOTO [ln num]

Chapter 9Error Messages and AnomaliesAfter reading this chapter you should be familiar with the module’s errormessages and anomalies.When BASIC is in

Page 62

Error Messages and AnomaliesChapter 99–2ARITH. UNDERFLOW — An ARITH. UNDERFLOW occurs when anarithmetic operation exceeds the lower limit of a module

Page 63 - Statement: INPUT

Error Messages and AnomaliesChapter 99–3EXTRA IGNORED — Error occurs when an INPUT statement requiringnumeric data, receives numeric data followed by

Page 64

Error Messages and AnomaliesChapter 99–4IN ROM — The IN ROM message displays if you attempt to load a ROMprogram to tape with CALL 32 or 38. You shoul

Page 65 - Statement: LD@ [expr]

Error Messages and AnomaliesChapter 99–5STRING# NOT ALLOCATED — This error occurs if you attempt toaccess a string that is outside the allocated strin

Page 66 - Statement: LET

Error Messages and AnomaliesChapter 99–6BAD POSITION— This error occurs if you attempt to access a stringposition that is beyond the declared length o

Page 67 - [ln num)

Error Messages and AnomaliesChapter 99–7INVALID BAUD RATE ENTERED — This error occurs when a baud rateother than 300, 600, 1200, 2400, 4800, 9600 or 1

Page 68 - [expr],[ln num]

Installing the BASIC ModuleChapter 33–2Your module receives its power through the 1771 I/O chassis backplanefrom the chassis power supply. It does not

Page 69 - Statement: PRINT or P

Error Messages and AnomaliesChapter 99–82. When using the variable I before an ELSE statement, put a space betweenthe I and the ELSE statement. If yo

Page 70 - Statements

Error Messages and AnomaliesChapter 99–99. If you use a VT100 terminal, the BASIC Module can miss an XONcharacter sent by your terminal when you enabl

Page 71 - Statements (continued)

Appendix AQuick Reference GuideMnemonic Page Description ExampleABS( )5–45 ABSOLUTE VALUE ABS(–3)ASC( ) 5–72 RETURNS INTEGER VALUE OF ASCII CHARACTER

Page 72

Quick Reference GuideAppendix AA–2Mnemonic Page Description ExamplePH0 5–37 PRINT HEX MODE WITH ZERO SUPPRESSION PH0.APH1 5–37 PRINT HEX MODE WITH NO

Page 73 - Statement: PRINT# or P.#

Appendix BDecimal/Hexadecimal/Octal/ASCIIConversion TableColumn 1 Column 2 Column 3 Column 4DEC HEX OCT ASC DEC HEX OCT ASC DEC HEX OCT ASC DEC HEX OC

Page 75 - Statement: PUSH[expr]

Appendix CBasic Module Programming HintsThese programming hints can help you to properly program your moduleto increase module performance.1. Always d

Page 76 - Statement: POP[var]

Publication 1771–6.5.34 July 1987Allen-Bradley, a Rockwell Automation Business, has been helping its customers improveproductivity and quality for mor

Page 77 - Statement: REM

Installing the BASIC ModuleChapter 33–3Figure 3.1Keying Diagram for Placement of Module Keying BandsYou may change the position of these bands if subs

Page 78

Installing the BASIC ModuleChapter 33–4Figure 3.2The Configuration PlugsAll other configuration plugs are factory set. Do not reset these factory setc

Page 79 - Statement: STRING

Installing the BASIC ModuleChapter 33–5Now that you have determined the configuration, power requirements,location, keying and wiring for your module,

Page 80

Using This Manual 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 Chapter Objectives 1. . . . . . . . . . . . . . . . . . . . .

Page 81 - Operators (continued)

Installing the BASIC ModuleChapter 33–6When the ACTIVE LED comes on observe the sign-on message displayedon the terminal followed by tREADY.You are no

Page 82 - Unary Operators

Installing the BASIC ModuleChapter 33–7If the FLT LED lights after the module has been operating properly checkthe following troubleshooting chart. Pr

Page 83

Installing the BASIC ModuleChapter 33–8Figure 3.4User PROM and Battery HolderTo replace the EPROM:1. Turn the small screw in the socket just above the

Page 84

Installing the BASIC ModuleChapter 33–9Electrostatic discharge can damage integrated circuits or semiconductors inthis module if you touch backplane c

Page 85

Installing the BASIC ModuleChapter 33–10The BAT LOW indicator should go out.You can monitor the battery low condition in revision A and revision Bmodu

Page 86 - Relational Expressions

Chapter 4Using the Serial PortsThis chapter describes how to use the program serial port and theperipheral serial port to connect terminals, Data Cart

Page 87 - Special Function Operators

Using the Serial PortsChapter 44–2CAUTION: Be sure you properly ground the system beforeturning on power. A difference in ground potential between th

Page 88

Using the Serial PortsChapter 44–3The program port is an RS-423A/232C compatible serial port that providesminimum signal line connection to terminals,

Page 89 - Routines

Using the Serial PortsChapter 44–4Important: The program port always resets the most significant bit of allits data inputs. The range of each byte o

Page 90

Using the Serial PortsChapter 44–5You can use an Industrial Terminal System as the programming system forthe BASIC Module. Connect the module to CHANN

Page 91

Table of Contentsii4.3.4 Connecting a T50 Industrial Terminal (Cat. No. 1784-T50) to the Program Port I–9. . . . . . . . . . . . . . . . . . . . . .

Page 92 - Input Call Conversion

Using the Serial PortsChapter 44–6You can connect a T30 Industrial Terminal to the BASIC Module programport to act as a dumb terminal.Refer to the fol

Page 93

Using the Serial PortsChapter 44–74.3.4.1Configuring the SoftwareConfigure the driver package for compatibility with the BASIC Module bysetting:baud r

Page 94 - Routines (continued)

Using the Serial PortsChapter 44–8The peripheral port is an asynchronous serial communication channelcompatible with RS-423A/232C or RS-422 interfaces

Page 95

Using the Serial PortsChapter 44–9Figure 4.7Cable Connection to SA/SB RecorderOutput Data – The BASIC Module stops sending characters within 2characte

Page 96 - Parameter Set – CALL 30

Using the Serial PortsChapter 44–104.4.2.1 Hardware ConfigurationYou must configure the BASIC Module peripheral port and the T30Industrial Terminal se

Page 97

Using the Serial PortsChapter 44–11You can use a 1770-SB Data Cartridge Recorder or 1770-SA DigitalCassette Recorder to save and load BASIC programs t

Page 98

Using the Serial PortsChapter 44–12Figure 4.9Point-to-Point RS-422 ConnectionsFigure 4.10Multi-drop configuration with master and multiple slavesImpor

Page 99

Using the Serial PortsChapter 44–13You must supply cables for connecting devices to the program andperipheral ports. You can construct the cables with

Page 100 - Port – CALL 35

Chapter 5Operating FunctionsAfter reading this chapter you should be familiar with the BASICinstruction set and be ready to begin BASIC programming. T

Page 101 - Port – CALL 35 (continued)

Operating FunctionsChapter 55–2You may put more than one statement on a line, if separated by acolon (:). You can use only one statement number per li

Page 102 - Operating Functions

Table of Contents iii5.3.12 Command: XFER 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3.13 Command: PROG 12. . . . . . . . . . .

Page 103

Operating FunctionsChapter 55–3A constant is a real number that ranges from +1E–127 to +.99999999E+127. A constant can be an integer. We refer to cons

Page 104

Operating FunctionsChapter 55–4Important: The BASIC Module requires less time to find a scalarvariable because there is no expression to evaluate. I

Page 105

Operating FunctionsChapter 55–5The argument stack (A-stack) stores all constants that the BASIC Moduleis currently using. Operations such as add, subt

Page 106

Operating FunctionsChapter 55–6The following sections list and describe the commands you canuse with the BASIC Module.Action Taken: After you type RUN

Page 107

Operating FunctionsChapter 55–7Action Taken: If you stop a program by typing a Control C on theconsole device or by execution of a STOP statement, you

Page 108

Operating FunctionsChapter 55–8Variations: Two variations of the LIST command are possible with theBASIC Module.They are:1. LIST [ln num] (cr) and2. L

Page 109 - The ASC Operator

Operating FunctionsChapter 55–9Action taken: When you enter NEW(cr), the BASIC Module deletesthe program that is currently stored in RAM memory. In ad

Page 110 - (continued)

Operating FunctionsChapter 55–10Action taken: This command interrupts the scrolling of a BASICprogram during the execution of a LIST command. It also

Page 111 - The CHR Operator

Operating FunctionsChapter 55–115.3.11.1 RAMWhen you enter RAM(cr), the BASIC Module selects the currentprogram from RAM MEMORY.Important: RAM space

Page 112 - String Support Calls

Operating FunctionsChapter 55–12Action taken: The XFER (transfer) command transfers the currentselected program in EPROM to RAM and then selects the R

Page 113

Table of Contentsiv5.4.26 Statement: POP[var] 39. . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.4.27 Statement: REM 40. . . . . . . . . .

Page 114

Operating FunctionsChapter 55–13Example:uLIST10 FOR I=1 TO 10 20 PRINT I 30 NEXT I 40 END READY uCALL 8 :REM DISABLE INTERRUPTS uPROG 12uREADY CALL 9

Page 115

Operating FunctionsChapter 55–14Action taken: You can use the PROG1 command to program theresident EPROM with baud rate information. When the module i

Page 116

Operating FunctionsChapter 55–15Figure 5.1Flow Chart of Power-up OperationFigure 5.1 shows BASIC Module operation from a power-up conditionusing PROG1

Page 117

Operating FunctionsChapter 55–16The following sections list and describe the statements you can usewith the BASIC Module.Mode: COMMAND AND/ OR RUN Typ

Page 118

Operating FunctionsChapter 55–17Mode: COMMAND/RUNType: CONTROLThe CLEARS statement resets all of the module’s stacks. Thecontrol, argument and interna

Page 119

Operating FunctionsChapter 55–18Mode: RUNType: AssignmentDATADATA specifies expressions that you can retrieve using a READ statement.If multiple expre

Page 120

Operating FunctionsChapter 55–19Mode: COMMAND AND/OR RUN Type: AssignmentDIM reserves storage for matrices. The storage area is first assumed tobe zer

Page 121

Operating FunctionsChapter 55–20Examples:SIMPLE DO-UNTILu10 A=0u20 DOu30 A=A+1 u40 PRINT Au50 UNTIL A=4u60 PRINT “DONE”u70 ENDuRUN1234DONEREADYuNESTED

Page 122

Operating FunctionsChapter 55–21Mode: RUN Type: CONTROLThe DO – WHILE [rel expr] instruction provides a means of “loopcontrol” within a module program

Page 123

Operating FunctionsChapter 55–22Mode: RUN Type: CONTROLThe END statement terminates program execution. The continue command, CONT does not operate if

Page 124 - 5.10.3.9

Table of Contents v5.7.10.2 Internal Floating Point to 16-Bit Unsigned Binary (4 digit hex) – CALL 21 57. . . . . . . . . . . . . . . . . . . . . .

Page 125

Operating FunctionsChapter 55–23Since B=0, C=10 and D=2, the PRINT statement at line 20 executes6 times. The values of “A” printed are 0, 2, 4, 6, 8 a

Page 126

Operating FunctionsChapter 55–24RETURNUse this statement to “return” control to the statement following themost recently executed GO SUB STATEMENT. Us

Page 127

Operating FunctionsChapter 55–25Unlike the RUN command the GOTO statement, if executed in theCOMMAND mode, does not clear the variable storage spac

Page 128

Operating FunctionsChapter 55–26Upon execution of line 10 IF A is equal to 100, THEN A is assigned avalue of 0. IF A does not equal 100, A is assigned

Page 129

Operating FunctionsChapter 55–27Causes a question mark (?) to print on the console device. Thisprompts you to input two numbers separated by a comma.

Page 130

Operating FunctionsChapter 55–28Examples: u10 STRING 110,10 u10 STRING 110,10u20 INPUT “NAME:”,$(1) u20 INPUT “NAMES:”,$(1),$(2)u30 PRINT “HI”,$(1) u3

Page 131

Operating FunctionsChapter 55–29Mode: COMMAND AND/OR RUNType: ASSIGNMENTUse the LET statement to assign a variable to the value of anexpression. The g

Page 132 - CALL 119

Operating FunctionsChapter 55–30Mode: RUN Type: CONTROLThe ONERR[ln num] statement lets you handle arithmetic errors, ifthey occur, during program exe

Page 133 - Programming

Operating FunctionsChapter 55–31Mode: RUN Type: CONTROLYour BASIC Module can process a line in milliseconds while thetimer/counters on the microproces

Page 134 - Chapter 6

Operating FunctionsChapter 55–32If you do not want this delay, you should assign a variable to the specialfunction operator, TIME, at the beginning of

Page 135 - PLC-2 Processor Program

Table of Contentsvi5.10.3.2 String Append (Concatenation) – CALL 61 81. . . . . . . . . . 5.10.3.3 Number to String Conversion – CALL 62 81. . . .

Page 136

Operating FunctionsChapter 55–33The following sections list and describe the special print formattingstatements.5.4.22.1 PRINT TAB([expr])Use the TAB(

Page 137 - PLC-3 Family Processors

Operating FunctionsChapter 55–345.4.22.4 PRINT USING (special characters)Use the USING function to tell the BASIC Module what format to usewhen displa

Page 138

Operating FunctionsChapter 55–355.4.22.6 PRINT USING(#.#) This forces the module to output all numbers using an integer and/orfraction format. The num

Page 139

Operating FunctionsChapter 55–365.4.22.8 Reset Print Head Pointer – CALL 99 You can use CALL 99 when printing out wide forms to reset the internalprin

Page 140 - PLC-5 Family Processors

Operating FunctionsChapter 55–37Mode: COMMAND and/or RUN Type: INPUT/OUTPUTThe PH0. and PH1. statements function the same as the PRINT statementexcept

Page 141

Operating FunctionsChapter 55–38Mode: COMMAND AND/OR RUN Type: ASSIGNMENTThe arithmetic expression, or expressions, following the PUSH statementare ev

Page 142 - Programming Tips

Operating FunctionsChapter 55–39Mode: COMMAND AND/OR RUNTYPE: ASSIGNMENTThe value on top of the ARGUMENT STACK is assigned to the variablefollowing t

Page 143 - Data Types

Operating FunctionsChapter 55–40Mode: COMMAND and/or RUN Type: CONTROL – Performs no operationREM is short for REMark. REM allows you to add comments

Page 144

Operating FunctionsChapter 55–41Mode: RUN Type: CONTROLUse the RETI statement to exit from the ONTIME interrupts that arehandled by a BASIC Module pro

Page 145

Operating FunctionsChapter 55–42Note that the line number printed out after execution of the STOPstatement, is the line number following the STOP stat

Page 146 - Fixed Decimal BCD

Table of Contents viiData Types 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 Chapter Objectives 1. . . . . . . .

Page 147 - 3.3-digit, Signed

Operating FunctionsChapter 55–43The BASIC Module contains a complete set of arithmetic and logicaloperators. We divide the operators into two groups,

Page 148 - Input Data Types

Operating FunctionsChapter 55–445.5.1.1 Comments on logical operators .AND.,.OR. and .XOR.These operators perform a BIT-WISE logical function on valid

Page 149 - Editing A Procedure

Operating FunctionsChapter 55–45We divide the unary operators into three groups; general purpose, logfunctions and trig functions.5.5.2.1 General Purp

Page 150 - Chapter 8

Operating FunctionsChapter 55–465.5.2.1.6 RND Returns a pseudo-random number in the range between 0 and 1 inclusive.The RND operator uses a 16-bit bin

Page 151 - Renumber (continued)

Operating FunctionsChapter 55–475.5.2.3.2 COS([expr])Returns the cosine of the argument. The argument is expressed in radians.Calculations are carried

Page 152 - Procedure

Operating FunctionsChapter 55–48Although this method of angle reduction provides a simple and economicalmeans of generating the appropriate arguments

Page 153 - Error Messages and Anomalies

Operating FunctionsChapter 55–49Relational expressions involve the operators =, tu, u, u=, t, and t=.These operators are typically used to “test” a co

Page 154 - BASIC (continued)

Operating FunctionsChapter 55–50Special operators include special function operators and system controlvalues.Special function operators directly mani

Page 155 - Chapter 9

Operating FunctionsChapter 55–51When TIME is assigned a value with a LET statement (i.e. TIME u 100),only the integer portion of TIME is changed.Examp

Page 156

Operating FunctionsChapter 55–52The system control values determine how memory is allocated by theBASIC Module.5.6.2.1 MTOPAfter reset, the BASIC Modu

Page 157 - Error Messages

Chapter 1Using This ManualRead this chapter before you use the BASIC Module. It tells you how touse this manual properly and efficiently.This manual s

Page 158

Operating FunctionsChapter 55–53Example:u10 REM PRINT CONTENTS OF BTW BUFFER u20 C=(XBY(7D0AH)*100H)+XBY(7D0BH) u30 FOR I=0 TO 128 u40 PH0. XBY(C+I),

Page 159

Operating FunctionsChapter 55–54This routine sets the number of words (1–64) to transfer between theBASIC Module and the host processor. The processor

Page 160 - Anomalies (continued)

Operating FunctionsChapter 55–55Important: You must use an Interrupt Control CALL 9 after a PROGcommand to re-enable interrupts. This routine enable

Page 161

Operating FunctionsChapter 55–565.7.9.4 6-Digit, Signed, Fixed Decimal BCD to Internal Floating Point"XXXXXX – CALL 13 The input argument is the

Page 162 - Quick Reference Guide

Operating FunctionsChapter 55–575.7.10.1 Internal Floating Point to 3-Digit, Signed, Fixed Decimal BCD "XXX –CALL 20This routine has two input ar

Page 163 - Appendix

Operating FunctionsChapter 55–585.7.10.4 Internal Floating Point to 6-Digit, Signed, Fixed Decimal BCD"XXXXXX – CALL 23 This routine converts an

Page 164 - Conversion Table

Operating FunctionsChapter 55–59The peripheral port is used for:1. exchanging data with an external device with user written protocol.2. listing progr

Page 165

Operating FunctionsChapter 55–60The five values PUSHed on the stack before executing the CALL are in thefollowing order: Parameter SelectionsNumber of

Page 166 - Programming Hints

Operating FunctionsChapter 55–61Important: Maximum baud rate is 2400 bps for all data recorder CALLroutines. The Peripheral Port is set up in these

Page 167 - Worldwide representation

Operating FunctionsChapter 55–62Press PLAY. Tape movement begins and the recorder searches for thebeginning of the next program. As each line of the p

Commentaires sur ces manuels

Pas de commentaire