Rockwell-automation 1771-DB Basic Module User Manual - Series A Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Equipamento Rockwell-automation 1771-DB Basic Module User Manual - Series A. Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 167
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 1 - Allen-Bradley

I–1UserManual1771–DB BasicModuleAllen-Bradley

Página 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

Página 3

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

Página 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

Página 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

Página 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

Página 7

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

Página 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-

Página 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

Página 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

Página 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

Página 12 - Hardware Features

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

Página 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

Página 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 $

Página 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

Página 16 - Chapter 3

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

Página 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

Página 18

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 30

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

Página 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

Página 32 - Peripheral Port

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

Página 33

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

Página 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

Página 35

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

Página 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

Página 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

Página 38

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

Página 39

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

Página 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

Página 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

Página 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

Página 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

Página 44 - Command: LIST

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

Página 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

Página 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)

Página 47

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

Página 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

Página 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

Página 50

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 62

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

Página 63 - Statement: INPUT

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 78

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

Página 79 - Statement: STRING

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

Página 80

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

Página 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

Página 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

Página 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

Página 84

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

Página 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

Página 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

Página 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

Página 88

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

Página 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

Página 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

Página 91

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

Página 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

Página 93

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

Página 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

Página 95

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

Página 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

Página 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

Página 98

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

Página 99

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

Página 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

Página 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

Página 102 - Operating Functions

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

Página 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

Página 104

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

Página 105

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

Página 106

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

Página 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

Página 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

Página 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

Página 110 - (continued)

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

Página 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

Página 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

Página 113

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

Página 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

Página 115

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

Página 116

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

Página 117

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

Página 118

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

Página 119

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

Página 120

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

Página 121

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

Página 122

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

Página 123

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

Página 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. . . . . . . . . . . . . . . . . . . . . .

Página 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

Página 126

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

Página 127

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

Página 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

Página 129

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

Página 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

Página 131

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

Página 132 - CALL 119

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

Página 133 - Programming

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

Página 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

Página 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. . . .

Página 136

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

Página 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

Página 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

Página 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

Página 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

Página 141

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

Página 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

Página 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

Página 144

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

Página 145

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

Página 146 - Fixed Decimal BCD

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

Página 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,

Página 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

Página 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

Página 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

Página 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

Página 152 - Procedure

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

Página 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

Página 154 - BASIC (continued)

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

Página 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

Página 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

Página 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

Página 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),

Página 159

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 165

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

Página 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

Página 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

Comentários a estes Manuais

Sem comentários