Baldor mn1854 manual Syntax LPi LP Loop, Value Units N/A Range N/A

Page 70

syntax – LPi

LP Loop

Value: 0

Units: N/A

Range: N/A

Causes all commands between LP and EB to be repeated “i” times. If LP is entered without a number following it or a 0, the loop will repeat continuously.

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

Up to 16 nested loops (one inside the other) are allowed. Each LP command must have a corresponding EB command to end the block (loop). A GT command within a loop will terminate the loop, clear the loop stack and jump to a new program.

Example:

AC.09 DE.09 LP3 VE30 DI1 GO EB VE7 DI–3 GO EN

The motor will perform an incremental 1 unit move at speed 30 three times and then a 3 unit move at speed 7 in the other direction.

MN1854

Keypad Programming 6-15

Image 70
Contents LinStep+ Dual-Axis Microstepping Indexer/Driver Table of Contents Arithmetic Operands and Equations Other Programming Samples Ii Table of Contents MN1854Increment/Decrement Variables Troubleshooting Serial Communications Problems Iv Table of Contents MN1854 Section General Information Limited WarrantyCE Compliance Could result in damage to property Product Notice Intended useCould result in injury or death On next 2General Information MN1854Do not apply AC power before you ensure that grounds are Do not touch any circuit board, power device or electricalConnection before you first ensure that power has been Voltages that are conducted to its power input terminals.Power is removed from the drive Extend more than 0.2 5 into keypad assemblyInstead, we recommend using a four wire Wye Driver should have specifications compatible to the driveOverview Section Product OverviewMotors Product Overview MN1854 Mechanical Installation Section Receiving and InstallationPower Dissipation Receiving & Inspection2Receiving & Installation MN1854 GNDInput Power Conditioning System Grounding Ungrounded Distribution SystemPower Connections Power connections are shown in Figure Wire Size and Protection Devices4Receiving & Installation MN1854 MN1854 Receiving & Installation Connection Locations 115VAC, 2 Axis6Receiving & Installation MN1854 Tools Required9 & 25 Pin RS-232 Cable Connections for UL Installations RS-232 PC ConnectionsRules for Daisy Chain Operation 8Receiving & Installation MN1854Daisy Chain Connections PC / Host DeviceThese input connections are made at terminals 6-40 Figure Programmable I/O ConnectionsOptional Opto I/O Connections Typical connection each inputEncoder Color Code 10Receiving & Installation MN1854Encoder Signal PVS100 Danaher 9-Pin D +5VDCInterlock Intlk Motor ConnectorLD9068A00 Leadwire Connection 9 pin to flying leads Ground GNDSwitch and Potentiometer Settings Start-Up ProcedurePower Off Checks Section General InformationMotor should now be producing torque Power On ChecksAction Display Comments HighReceiving & Installation MN1854 Keypad layout with the LCD display is shown in Figure Section Keypad OperationOverview F1, F2, F3Copies one program to another within the LinStep+ Comma Decimal PointAlpha Trace Output Move TestThus eliminating the need for a PC terminal connection Shutdn RS232 EncoderEdit Menu Pressing the Edit key displays a set of sub-menus6Keypad Operation MN1854 Save the programEdit an existing program Save Program? YesNoPress ESC. You will be prompted as shown in Figure Naming a programExample of Naming a Program Mine AC.3 VE2 DI1 GOUse the =O keys for additional alpha characters Entering Characters with the Alpha Key In edit mode8Keypad Operation MN1854 Edit, Setup Submenu Submenu Setup Parameter Description of Setup ParameterDisplay the number Press EDIT, POS F3 Press YES F1 or no F3Press EDIT, ↓ , List to Programs stored Press ↓ to display the totalPressing Help In the Program Edit function Pressing Help in the Main MenuPressing Help in Menus and Sub-Menus Sequentially Eeprom message disappearsYou wish, you can scroll the list COPY, to PAD SubmenuEnter the program number. Or, if Program namesSection Setup Procedure Format DefinitionAxis One Drive Res Setup MN1854Axis One Motor Type Steper Axis One Motor DirApplication Notes Axis One ENC ModeOpen Loop Axis One Encoder RES ↑5000 cnts/in ↓IN-RANGE Window IN-RANGE Setup WindowValue PM GainDist Configure Your Application MechanicsMech Setup Vmax Accel AmaxAxis One MAX Vel Axis One Vel Units In/sEdit 500.0 in/s ↓→Iuuuuuuu ←↑↓→ Configure the I/OChar Keypad Display Input Character Description To summarize, when INT98CTRL=1 Inputs will work. See the RG command for more detailsService routine program Reset to 1. This allows for input debounce and controllingJog Speed Warm BootPower-up program, if defined, will start InputsOUT1 Programmable Pppppppp ←↑↓→ Iiiiiiii Configure the Output StatesOPTO9 Input OFFEnable Configure End of Travel Switch PolarityConfigure JOG Parameters Accel LO-VEL HI-VELMode Edge Switch Configure Home ParametersOffset DIR Negative Power Up Program PROGRAM0 Configure Power-up Program↑SETUP↓ Axis One Final Dir Positive↑ Enabled ↓ Configure Serial CommunicationsRS232C Setup Echo UNIT#Configure Miscellaneous Setup Parameters Data Type Description of Display Data TypeOpratr Admin Clear General Password RulesPassword Setup Password Type Description Gives access to these menusAcceleration Start Home Outputs On/Off Keypad Program Command ListSection Keypad Programming Function Key Message to DisplayExample Keypad Programming MN1854Value Units Range AC2 DE.5 VE12 DA3 GO DA3 GO DA3 GODC Distance to Change Examples of DC move profiles, AC = seconds, VE=ips Example Distance to ChangeDCn * DCn*1 * Vn*1 2* Vnt w DC n + 10 +DE Deceleration AC.1 VE60 DI2 GO DI1 GO DI-4 GOLP2 DI3 GO EB Value Units Range N/AIF2,1 EN EB DI2 GO RUN Edit =12 =13 =17 =18 =22 =23=26 =27 =28 Copy DELExample 3-Screen Menu Program Set in Edit Setup Mech Accel VEL GH Start HomeGo Immediate Syntax GI or GIi Value N/A Units N/A Range N/AAC.05 DE.05 VE50 DI5 GO GO Go Start a Move Syntax GO or GOiValue N/A Units N/A Range i=1-16 VE2 AC.1 DA4,2 GP IF10 Gtpart a EB Gosub Syntax GSi and GSname =1-400, name = any legal program name If input 1 is on and input 2 is off, jump to program Part aUnits Range IFPARTS=25 GS20 EBLppieces IV12,LENGTHDilength Syntax LPi LP Loop Value Units N/A Range N/ASyntax MC+ MC Move Continuous Move Continuous MS27,COUNT 27 7th character, 2nd rowMain Powerup ONL,GTON EOTGthome VE5 DA20 GO=anything else ignore input changes = starting output number=0 input high. X=1 input low grounded OT4,1 Turn on Output OT2,0D1Syntax RGr RG Registration ST1 AC1 DE1 VE25 DA6 GO VE50 DA0 GO EN SQRESULT=0 SQ27.96,SQRESULTValue N/A Units N/A Value N/A Units secondsWTexpression Syntax VEr VE Velocity= starting input number Helpful Hints Programming your application Summary of Expressions, Operators and FunctionsProgramming Overview Program Example of Hosted ModeVariable Names Built-in Variables Examples of how to use Built-in VariablesVariable Name Description of Built-in Variable Type Using Built-in Variable Arowrel Parts Non-Volatile VariablesLpnumber Examples of incorrect use AO15=VOLTAGE + ErrorArithmetic Operands and Equations Instead, you should useExpressions Logical OperatorsIncrement/Decrement Variables Other Programming SamplesCreate a Message and Read an Input Variable Setting an Output=On on-the-flyCreate a Menu menu display on keypad display for operator GET 4 Bcds Read a 4 Digit BCD number, 2 Digits at a timeReading an Analog Input Value Digit BCD=4 Digit BCD+2TW2Axis 1 and 2 Indicators Section Troubleshooting1Operation Indicators Additional Information GeneralTroubleshooting MN1854 Additional InformationSerial Communications Problems Troubleshooting MN1854 Identification Section Specifications & Product DataMN1854 Specifications & Product Data LinStep+ LX 2 P 1 aVAC General SpecificationsProtection & Indicators Description VDCOptional Keypad 10.08 256.0 Axis Driver 148.3 Dimensions94.7 230.1 Specifications & Product Data MN1854 CE Declaration of Conformity Wiring of Shielded Screened CablesSection CE Guidelines EMC Conformity and CE MarkingCit EMC Wiring TechniqueCE Guidelines MN1854 Grounding EarthEMC Installation Instructions Cable Screens GroundingEncoder Cable Grounding Input Signal Cable GroundingSimulated Encoder Output Cable Grounding To ControllerProgramming Template Appendix aMN1854 Appendix A-1 Appendix MN1854 MN1854 Appendix A-3 838 Remote Keypad Mounting Template122.88 111.25Baldor Electric Company Baldor Electric Company MN1854 01 C&JLinStep+ Dual-Axis Microstepping Indexer/Driver