Baldor MIN1853 manual Arithmetic Operands and Equations, Boolean Operators, AO15=VOLTAGE + Error

Page 88

Arithmetic Operands and Equations

Addition (+), subtraction (–), multiplication (*), and division (/) are easily performed. Expressions may only contain one operand. Complex equations require multiple statements. Variables and fixed point numbers may be mixed in arithmetic equations. All user arithmetic and variable storage uses 32 bit integer and fractional representation. The + and – symbols have a dedicated button on the keypad. Pressing the button will change between the two. The *, /, and = are accessed with the Alpha+0+ ... keystrokes.

Example:

(X)=(Y)*10

(AO15=(VOLTAGE) + (ERROR)

Examples of incorrect use:

(X)=1+2–3

This statement is incorrect because it has more than

 

one operand.

(Length)=(Total)*0.3125

This statement is incorrect because it has more than

 

four decimal places.

Instead, you should use:

(X)=1

 

(X)=(X)+2

or (X)+=2

(X)=(X)–3

or (X)–=3

and

 

(Length)=(Total)*3.125

Multiply the significant figures

(Length)=(Length)*.01

Then move the decimal place

or

 

(Length)=(Total)/32

32 bit storage of fractional decimal number

Boolean Operators

Boolean operators & and perform their respective bitwise Boolean functions on immediate or variable parameters. As an example, isolate a specific bit from an SD response to determine if axis #1 drive is enabled. This corresponds to a bit #5 (10000) Binary, (16) Integer in the SD response. The example program segment is written as follows:

(DRIVE STAT)=(SD1)&16 IF(DRIVE STAT)=16 MS,1“Drive Enabled” EB

The 16 corresponds to an integer weight of bit #5 (10000).

MN1853

Keypad Programming 6-29

Image 88
Contents LinStep+ Single-Axis Microstepping Indexer/Driver Table of Contents POS ProgProg To PAD From Troubleshooting Iv Table of Contents MN1853 Section General Information Limited WarrantyCE Compliance Could result in injury or death Product Notice Intended useCould result in damage to property Do not touch any circuit board, power device or electrical Connection before you first ensure that power has beenDo not apply AC power before you ensure that grounds are Voltages that are conducted to its power input terminals.Extend more than 0.2 5 into keypad assembly Instead, we recommend using a four wire WyePower is removed from the drive Driver should have specifications compatible to the driveOverview Section Product OverviewMotors Product Overview MN1853 Section Receiving and Installation Power DissipationMechanical Installation Receiving & InspectionRecommended System Grounding 1 phase for CE Recommended System Grounding for ULInput Power Conditioning System Grounding Ungrounded Distribution SystemWire Size and Protection Devices Delay aEurope BaldorConnection Locations 115VAC, 1 Axis Keypad Nullmodem Connections Tools Required9 & 25 Pin RS-232 Cable Connections for UL Installations RS-232 PC ConnectionsDaisy Chain Connections Rules for Daisy Chain OperationWhat is a termination resistor? Where are these resistors placed?RS485 PC Connections How many resistors should my system have?13 RS485 4 Wire Multi-Drop for UL Installations Limits Connections Discrete I/O ConnectionsET± Encoder Color Code Encoder Signal PVS100 Danaher 9-Pin D+5VDC Motor Connector AY0165A00 Leadwire Connection 9 pin to flying leadsInterlock Intlk Ground GND21 Opto Racks PNP Converter DB25 Pin to Screw Terminal ConverterPNP Start-Up Procedure Power Off ChecksPower On Checks Action Display CommentsOverview Section Keypad OperationF1, F2, F3 Menu Key Main MenuJOG F2 MenusComma Decimal PointAlpha Edit Menu New ProgramSave the program Edit an existing programNaming a program Example of Naming a ProgramEntering Characters with the Alpha Key In edit mode Use the =O keys for additional alpha charactersEdit, Setup Submenu Submenu Setup Parameter Description of Setup ParameterPress EDIT, POS F3 Press YES F1 or no F3 Pressing Help in the Main Menu Pressing Help in Menus and Sub-MenusPressing Help In the Program Edit function Sequentially Eeprom message disappearsCOPY, to PAD Submenu Keypad Operation MN1853 Section Setup Procedure Format DefinitionAR unloaded + 12.987 x log + log 155 Tm * Jr Value RangeValue High Fine-Tuning OffsetsValue OFF Value Range N/AApplication Notes Configuring Encoder Resolution ERi Configure Your Application Mechanics Value inch Configure the I/O Char Keypad Display Input Character DescriptionNo additional interrupts will be seen By one-half AMP Fault FaultBrake Over CurrentConfigure the Optional Lxopto 44/88 Configure the Output StatesConfigure End of Travel Switch Polarity Configure JOG ParametersConfigure Home Parameters Configuring Home Edge HEi Configure Power-up Program Configure Serial Communications Value Enabled Range Enabled, DisabledConfigure Miscellaneous Setup Parameters Data Type Description of Display Data TypePOS1 VEL1General Password Rules Password Type Description Gives access to these menusSetup MN1853 Keypad Program Command List Section Keypad ProgrammingValue Units ExamplesExample Value Units RangeAC2 DE.5 VE12 DA3 GO DA3 GO DA3 GO DC Distance to Change Example Distance to Change Examples of DC move profiles, AC = seconds, VE=ipsAC.1 VE60 DI2 GO DI1 GO DI-4 GO LP2 DI3 GO EB Value Units Range N/AIF2,1 EN EB DI2 GO =12 =13 =17 =18 =22 =23 =26 =27 =28RUN Edit Copy DELExample 3-Screen Menu Program GH Start Home Value N/A Units N/A Range N/A Value N/A Units N/A Range i=1-16 Units Range N/A=1-400, name = any legal program name IF10 Gtpart a EBUnits Range IFPARTS=25 GS20 EBLppieces IV12,LENGTHDilength Value Units N/A Range N/A Syntax MC+ MC Move Continuous Move Continuous MS27,COUNT Powerup ONL,GTON EOT GthomeMain VE5 DA20 GO= starting output number Syntax RGr RG Registration SQRESULT=0 SQ27.96,SQRESULT Value N/A Units N/AST1 AC1 DE1 VE25 DA6 GO VE50 DA0 GO EN Value N/A Units secondsSyntax VEr VE Velocity Helpful Hints Programming your application Summary of Expressions, Operators and FunctionsProgramming Overview Example of Hosted Mode VariablesProgram Variable NamesBuilt-in Variables Variable Name Description of Built-in Variable TypeUsing Built-in Variable Arowrel Parts Non-Volatile VariablesLpnumber Arithmetic Operands and Equations AO15=VOLTAGE + ErrorBoolean Operators Logical Operators Increment/Decrement VariablesExpressions Other Programming Samples WTAI12MAX TempSetting an Output=On on-the-fly Create a Message and Read an Input VariableRead a 4 Digit BCD number, 2 Digits at a time Reading an Analog Input ValueGET 4 Bcds Digit BCD=4 Digit BCD+2TW1Operating Mode Indications, 1 Axis Section TroubleshootingAdditional Information General Additional Information Serial Communications Problems Troubleshooting MN1853 Identification Section Specifications & Product DataLinStep+ LX 1 P 1 A- 0xF9 General Specifications Protection & Indicators DescriptionVAC VDCDimensions Specifications & Product Data MN1853 Wiring of Shielded Screened Cables Section CE GuidelinesCE Declaration of Conformity EMC Conformity and CE MarkingEMC Wiring Technique Grounding EarthEMC Installation Instructions Cable Screens GroundingSimulated Encoder Output Cable Grounding Input Signal Cable GroundingEncoder Cable Grounding Appendix a Programming TemplateAppendix MN1853 MN1853 Appendix A-3 Remote Keypad Mounting Template Baldor Electric Company Baldor Electric Company MN1853 01 C&JLinStep+ Single-Axis Microstepping Indexer/Driver