Baldor MIN1853 manual Logical Operators, Increment/Decrement Variables, WTAI12MAX Temp

Page 89

Logical Operators

Conditional commands (IF,WT, LU, LW) support logical operations of AND (&&) and OR (). Two expressions may be logically AND’d or OR’d within one conditional command. For example:

(A)=5 (B)=2.5 IF(A)>2&&(B)=2.5 MS1, “True Statement” EB

In this program, the message “True Statement” appears since BOTH conditional statements are true.

Increment/Decrement Variables

Four syntaxes are supported by variables: ++ (Single Increment), += (Value Increment), –– (Single Decrement), –= (Value Decrement). These operators will initialize any uninitialized variable to zero before incrementing or decrementing it for the first time.

(Variable Name)++

Increments a variable value by 1

(Variable Name)+=n

Increments a variable value by n

(Variable Name)– –

Decrements a variable value by 1

(Variable Name)–=n

Decrements a variable value by n

Expressions

Other Programming Samples

Five conditional expressions are supported: less than (<), equal to (=), greater than (>), less than or equal to (<=), and greater than or equal to (>=). The IF and WT commands can use these expressions to direct program flow or wait for an analog input to meet a condition. The > and < symbols are entered into the keypad editor with the ALPHA++...

Examples:

IF (X)>10 GS20 EB

If X is greater than 10 gosub to program #20.

WT(AI12)<(MAX TEMP)

Wait for the temperature to go below the maximum

 

before continuing command processing.

These sample programs provide an idea of how to solve simple programming tasks. To aid your program documentation, comments are placed in {brackets}. These comments are stripped from the program as it is downloaded for execution to help conserve memory. Files should be saved before downloading save the comments.

Example:

DI10,2 GO

Moves to load position

DI15,15 GO

Moves to unload position

6-30 Keypad Programming

MN1853

Image 89
Contents LinStep+ Single-Axis Microstepping Indexer/Driver Table of Contents Prog To PAD From ProgPOS Troubleshooting Iv Table of Contents MN1853 CE Compliance Limited WarrantySection General Information Could result in damage to property Product Notice Intended useCould result in injury or death Connection before you first ensure that power has been Do not touch any circuit board, power device or electricalDo not apply AC power before you ensure that grounds are Voltages that are conducted to its power input terminals.Instead, we recommend using a four wire Wye Extend more than 0.2 5 into keypad assemblyPower is removed from the drive Driver should have specifications compatible to the driveMotors Section Product OverviewOverview Product Overview MN1853 Power Dissipation Section Receiving and InstallationMechanical Installation Receiving & InspectionRecommended System Grounding for UL Recommended System Grounding 1 phase for CESystem Grounding Ungrounded Distribution System Input Power ConditioningDelay a Wire Size and Protection DevicesEurope BaldorConnection Locations 115VAC, 1 Axis Tools Required Keypad Nullmodem ConnectionsRS-232 PC Connections 9 & 25 Pin RS-232 Cable Connections for UL InstallationsRules for Daisy Chain Operation Daisy Chain ConnectionsWhere are these resistors placed? What is a termination resistor?RS485 PC Connections How many resistors should my system have?13 RS485 4 Wire Multi-Drop for UL Installations ET± Discrete I/O ConnectionsLimits Connections +5VDC Encoder Signal PVS100 Danaher 9-Pin DEncoder Color Code AY0165A00 Leadwire Connection 9 pin to flying leads Motor ConnectorInterlock Intlk Ground GND21 Opto Racks PNP DB25 Pin to Screw Terminal ConverterPNP Converter Power Off Checks Start-Up ProcedurePower On Checks Action Display CommentsF1, F2, F3 Section Keypad OperationOverview Main Menu Menu KeyJOG F2 MenusAlpha Decimal PointComma New Program Edit MenuEdit an existing program Save the programExample of Naming a Program Naming a programUse the =O keys for additional alpha characters Entering Characters with the Alpha Key In edit modeSubmenu Setup Parameter Description of Setup Parameter Edit, Setup SubmenuPress EDIT, POS F3 Press YES F1 or no F3 Pressing Help in Menus and Sub-Menus Pressing Help in the Main MenuPressing Help In the Program Edit function Sequentially Eeprom message disappearsCOPY, to PAD Submenu Keypad Operation MN1853 Procedure Format Definition Section SetupValue Range AR unloaded + 12.987 x log + log 155 Tm * JrValue OFF Fine-Tuning OffsetsValue High Application Notes Range N/AValue Configuring Encoder Resolution ERi Configure Your Application Mechanics Value inch Char Keypad Display Input Character Description Configure the I/ONo additional interrupts will be seen By one-half Fault AMP FaultBrake Over CurrentConfigure the Output States Configure the Optional Lxopto 44/88Configure JOG Parameters Configure End of Travel Switch PolarityConfigure Home Parameters Configuring Home Edge HEi Configure Power-up Program Value Enabled Range Enabled, Disabled Configure Serial CommunicationsData Type Description of Display Data Type Configure Miscellaneous Setup ParametersPOS1 VEL1Password Type Description Gives access to these menus General Password RulesSetup MN1853 Section Keypad Programming Keypad Program Command ListValue Units ExamplesAC2 DE.5 VE12 DA3 GO DA3 GO DA3 GO Value Units RangeExample DC Distance to Change Examples of DC move profiles, AC = seconds, VE=ips Example Distance to ChangeAC.1 VE60 DI2 GO DI1 GO DI-4 GO IF2,1 EN EB DI2 GO Value Units Range N/ALP2 DI3 GO EB =26 =27 =28 =12 =13 =17 =18 =22 =23RUN Edit Copy DELExample 3-Screen Menu Program GH Start Home Value N/A Units N/A Range N/A Units Range N/A Value N/A Units N/A Range i=1-16IF10 Gtpart a EB =1-400, name = any legal program nameIFPARTS=25 GS20 EB Units RangeDilength IV12,LENGTHLppieces Value Units N/A Range N/A Syntax MC+ MC Move Continuous Move Continuous MS27,COUNT Gthome Powerup ONL,GTON EOTMain VE5 DA20 GO= starting output number Syntax RGr RG Registration Value N/A Units N/A SQRESULT=0 SQ27.96,SQRESULTST1 AC1 DE1 VE25 DA6 GO VE50 DA0 GO EN Value N/A Units secondsSyntax VEr VE Velocity Programming Overview Summary of Expressions, Operators and FunctionsHelpful Hints Programming your application Variables Example of Hosted ModeProgram Variable NamesVariable Name Description of Built-in Variable Type Built-in VariablesUsing Built-in Variable Arowrel Lpnumber Non-Volatile VariablesParts Boolean Operators AO15=VOLTAGE + ErrorArithmetic Operands and Equations Increment/Decrement Variables Logical OperatorsExpressions Other Programming Samples WTAI12MAX TempCreate a Message and Read an Input Variable Setting an Output=On on-the-flyReading an Analog Input Value Read a 4 Digit BCD number, 2 Digits at a timeGET 4 Bcds Digit BCD=4 Digit BCD+2TWAdditional Information General Section Troubleshooting1Operating Mode Indications, 1 Axis Additional Information Serial Communications Problems Troubleshooting MN1853 LinStep+ LX 1 P 1 A- 0xF9 Section Specifications & Product DataIdentification Protection & Indicators Description General SpecificationsVAC VDCDimensions Specifications & Product Data MN1853 Section CE Guidelines Wiring of Shielded Screened CablesCE Declaration of Conformity EMC Conformity and CE MarkingGrounding Earth EMC Wiring TechniqueCable Screens Grounding EMC Installation InstructionsEncoder Cable Grounding Input Signal Cable GroundingSimulated Encoder Output Cable Grounding Programming Template Appendix aAppendix MN1853 MN1853 Appendix A-3 Remote Keypad Mounting Template Baldor Electric Company MN1853 01 C&J Baldor Electric CompanyLinStep+ Single-Axis Microstepping Indexer/Driver