Baldor MIN1853 manual Units Range, IFPARTS=25 GS20 EB

Page 72

 

If

syntax – IF (Mathematical expression)

IF

IFxx (assumes first input is input 1)

 

Value:

IFi,xx ...

 

N/A

 

Units:

N/A

 

Range:

i=starting input number 1–8

x=0; input high. X=1; input low (grounded). x=anything else; ignore input changes. expression = any valid expression (see math and variables definitions)

Allows the conditional execution of a block of commands based on the evaluation of an expression or input state. If the expression or input state is TRUE, the commands between the IF and the EB are executed. If FALSE, execution continues with the command following the EB. An IF statement should not be confused with a WT statement. An IF statement evaluates, true or false, based on the conditions at the instant the command is processed. A WT statement pauses command processing until the condition is true.

Note: An End of Block (EB) command must be used with every IF command.

IF blocks can be nested up to 16 levels deep. To increase flexibility (primarily with programmable logic controllers) the IF command allows you to use configured inputs with the command. To help prevent this added flexibility from causing programming confusion, you can specify any character as an input (x). This allows you to self document your IF statements. For example, assume you configure input #3 as a “JOG SPEED” input. Programming like “IF01J10” can help remind you that you are already using input #3 as “JOG SPEED”.

Examples:

 

IF14,1 GO EB

If input 14 equals 1 Go

IF12,010 GO EB

If inputs 12–14 equal 010 Go

IF110 GO OT3,1 EB

If inputs 1–3 equal 110 Go and turn on Output #3

IF(TEMP) > 50 OT1 EB

If temperature variable > 50 turn on Output 1

IF(PARTS)=25 GS20 EB

If PARTS variable = 25 Gosub to Program 20

MN1853

Keypad Programming 6-13

Image 72
Contents LinStep+ Single-Axis Microstepping Indexer/Driver Table of Contents Prog POSProg To PAD From Troubleshooting Iv Table of Contents MN1853 Limited Warranty Section General InformationCE Compliance Product Notice Intended use Could result in injury or deathCould 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 driveSection Product Overview 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 Discrete I/O Connections Limits ConnectionsET± Encoder Signal PVS100 Danaher 9-Pin D Encoder Color Code+5VDC Motor Connector AY0165A00 Leadwire Connection 9 pin to flying leadsInterlock Intlk Ground GND21 Opto Racks DB25 Pin to Screw Terminal Converter PNP ConverterPNP Start-Up Procedure Power Off ChecksPower On Checks Action Display CommentsSection Keypad Operation OverviewF1, F2, F3 Menu Key Main MenuJOG F2 MenusDecimal Point CommaAlpha 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 RangeFine-Tuning Offsets Value HighValue OFF Range N/A ValueApplication 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 ExamplesValue Units Range ExampleAC2 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 Value Units Range N/A LP2 DI3 GO EBIF2,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 EBIV12,LENGTH LppiecesDilength 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 Summary of Expressions, Operators and Functions Helpful Hints Programming your applicationProgramming Overview Example of Hosted Mode VariablesProgram Variable NamesBuilt-in Variables Variable Name Description of Built-in Variable TypeUsing Built-in Variable Arowrel Non-Volatile Variables PartsLpnumber AO15=VOLTAGE + Error Arithmetic Operands and EquationsBoolean 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+2TWSection Troubleshooting 1Operating Mode Indications, 1 AxisAdditional Information General Additional Information Serial Communications Problems Troubleshooting MN1853 Section Specifications & Product Data IdentificationLinStep+ 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 GroundingInput Signal Cable Grounding Simulated Encoder Output 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