Baldor mn1854 manual Go Immediate Syntax GI or GIi, Value N/A Units N/A Range N/A

Page 65

GI

Go Immediate

syntax – GI or GIi

Value: N/A

Units: N/A

Range: N/A

The GI command begins a defined move profile in the same manner as the GO command. Unlike the GO command, where program execution waits until all defined moves have terminated, GI allows program execution to continue when the move has begun. This allows for other program defined processes to take place while an axis is moving, such as independent multi–axis moves, OT commands, and conditional IF blocks.

Examples:

VE1 DI20 GI MS1, “Axis #1 is moving” TD2

In this example, when the DI20 move begins, program execution immediately displays the “Axis #1 is moving” message for 2 seconds. When the TD2 command has executed, the program will terminate; however, axis #1 will continue to move until the DI20 distance is reached. A Stop, Kill, or press of the ESC key will halt a GI based move either inside or outside program execution.

The GI command can cause program execution and moves to be asynchronous. To re–synchronize the end of a GI move with program execution, use the Wait (WT) command, i.e. WT#1 will wait for only axis #1. If a program error occurs during a GI move, the move will stop at the Stop Decel Rate.

VE1 DA100 GI OT1,1 DA0 GI IF1,1 MS1, “All moves done” EB

If a GI move is in progress and an additional move is commanded on the same axis, the additional move will not begin until the GI move has completed.

In this program, one may expect to see the message “All moves done” immediately after the DA100 move begins. In reality, the program will wait at the DA0 GI until the DA100 move has completed before continuing. More simply stated, a move cannot be commanded to begin on an axis that is already moving.

Since GI allows program execution to continue, there can be programming issues when using GI. For example, in the program fragment “LP VE2 DI10 GI OT1 TD1 OT0 EB” shown in Figure 6-2, after the first pass through, the loop command (LP) will wait at the GI command since subsequent GI moves must wait for the present move to finish.

 

 

Figure 6-2

V

 

 

Axis 1

 

 

 

 

T

V

1 Second

1 Second

Output 1

 

 

 

 

T

V

 

 

Axis 1

 

 

 

 

T

V

 

 

Output 1

 

 

 

 

T

The program will operate as shown here.

The program will not operate as shown here.

6-10 Keypad Programming

MN1854

Image 65
Contents LinStep+ Dual-Axis Microstepping Indexer/Driver Table of Contents Increment/Decrement Variables Other Programming Samples Ii Table of Contents MN1854Arithmetic Operands and Equations Troubleshooting Serial Communications Problems Iv Table of Contents MN1854 CE Compliance Limited WarrantySection General Information Could result in injury or death Product Notice Intended useCould result in damage to property On next 2General Information MN1854Connection 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 MN1854 Power Dissipation Section Receiving and InstallationMechanical Installation Receiving & InspectionGND 2Receiving & Installation MN1854System Grounding Ungrounded Distribution System Input Power Conditioning4Receiving & Installation MN1854 Wire Size and Protection DevicesPower Connections Power connections are shown in Figure Connection Locations 115VAC, 2 Axis MN1854 Receiving & InstallationTools Required 6Receiving & Installation MN1854RS-232 PC Connections 9 & 25 Pin RS-232 Cable Connections for UL InstallationsDaisy Chain Connections 8Receiving & Installation MN1854Rules for Daisy Chain Operation PC / Host DeviceOptional Opto I/O Connections Programmable I/O ConnectionsThese input connections are made at terminals 6-40 Figure Typical connection each inputEncoder Signal PVS100 Danaher 9-Pin D 10Receiving & Installation MN1854Encoder Color Code +5VDCLD9068A00 Leadwire Connection 9 pin to flying leads Motor ConnectorInterlock Intlk Ground GNDPower Off Checks Start-Up ProcedureSwitch and Potentiometer Settings Section General InformationAction Display Comments Power On ChecksMotor should now be producing torque HighReceiving & Installation MN1854 Overview Section Keypad OperationKeypad layout with the LCD display is shown in Figure F1, F2, F3Copies one program to another within the LinStep+ Alpha Decimal PointComma Thus eliminating the need for a PC terminal connection TestTrace Output Move Shutdn RS232 EncoderPressing the Edit key displays a set of sub-menus Edit MenuEdit an existing program Save the program6Keypad Operation MN1854 Save Program? YesNoExample of Naming a Program Naming a programPress ESC. You will be prompted as shown in Figure Mine AC.3 VE2 DI1 GO8Keypad Operation MN1854 Entering Characters with the Alpha Key In edit modeUse the =O keys for additional alpha characters Submenu Setup Parameter Description of Setup Parameter Edit, Setup SubmenuPress EDIT, ↓ , List to Press EDIT, POS F3 Press YES F1 or no F3Display the number Programs stored Press ↓ to display the totalPressing Help in Menus and Sub-Menus Pressing Help in the Main MenuPressing Help In the Program Edit function Sequentially Eeprom message disappearsEnter the program number. Or, if COPY, to PAD SubmenuYou wish, you can scroll the list Program namesProcedure Format Definition Section SetupAxis One Motor Type Steper Setup MN1854Axis One Drive Res Axis One Motor DirOpen Loop Axis One ENC ModeApplication Notes Axis One Encoder RES ↑5000 cnts/in ↓Value IN-RANGE Setup WindowIN-RANGE Window PM GainMech Setup Configure Your Application MechanicsDist Vmax Accel AmaxEdit Axis One Vel Units In/sAxis One MAX Vel 500.0 in/s ↓→Char Keypad Display Input Character Description Configure the I/OIuuuuuuu ←↑↓→ Service routine program Inputs will work. See the RG command for more detailsTo summarize, when INT98CTRL=1 Reset to 1. This allows for input debounce and controllingPower-up program, if defined, will start Warm BootJog Speed InputsOUT1 Programmable Pppppppp ←↑↓→ OPTO9 Input Configure the Output StatesIiiiiiii OFFConfigure JOG Parameters Configure End of Travel Switch PolarityEnable Accel LO-VEL HI-VELOffset DIR Configure Home ParametersMode Edge Switch Negative ↑SETUP↓ Configure Power-up ProgramPower Up Program PROGRAM0 Axis One Final Dir PositiveRS232C Setup Configure Serial Communications↑ Enabled ↓ Echo UNIT#Data Type Description of Display Data Type Configure Miscellaneous Setup ParametersPassword Setup General Password RulesOpratr Admin Clear Password Type Description Gives access to these menusSection Keypad Programming Keypad Program Command ListAcceleration Start Home Outputs On/Off Function Key Message to DisplayValue Units Range Keypad Programming MN1854Example AC2 DE.5 VE12 DA3 GO DA3 GO DA3 GODC Distance to Change DCn * DCn*1 * Vn*1 2* Vnt w Example Distance to ChangeExamples of DC move profiles, AC = seconds, VE=ips DC n + 10 +AC.1 VE60 DI2 GO DI1 GO DI-4 GO DE DecelerationIF2,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 Set in Edit Setup Mech Accel VELValue N/A Units N/A Range N/A Go Immediate Syntax GI or GIiValue N/A Units N/A Range i=1-16 GO Go Start a Move Syntax GO or GOiAC.05 DE.05 VE50 DI5 GO VE2 AC.1 DA4,2 GP=1-400, name = any legal program name Gosub Syntax GSi and GSnameIF10 Gtpart a EB If input 1 is on and input 2 is off, jump to program Part aIFPARTS=25 GS20 EB Units RangeDilength IV12,LENGTHLppieces Value Units N/A Range N/A Syntax LPi LP LoopSyntax MC+ MC Move Continuous Move Continuous 27 7th character, 2nd row MS27,COUNTGthome Powerup ONL,GTON EOTMain VE5 DA20 GO=0 input high. X=1 input low grounded = starting output number=anything else ignore input changes OT4,1 Turn on Output OT2,0D1Syntax 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 seconds= starting input number Syntax VEr VE VelocityWTexpression Programming Overview Summary of Expressions, Operators and FunctionsHelpful Hints Programming your application Variable Names Example of Hosted ModeProgram Variable Name Description of Built-in Variable Type Examples of how to use Built-in VariablesBuilt-in Variables Using Built-in Variable Arowrel Lpnumber Non-Volatile VariablesParts Arithmetic Operands and Equations AO15=VOLTAGE + ErrorExamples of incorrect use Instead, you should useIncrement/Decrement Variables Logical OperatorsExpressions Other Programming SamplesCreate a Menu menu display on keypad display for operator Setting an Output=On on-the-flyCreate a Message and Read an Input Variable Reading an Analog Input Value Read a 4 Digit BCD number, 2 Digits at a timeGET 4 Bcds Digit BCD=4 Digit BCD+2TW1Operation Indicators Section Troubleshooting2Axis 1 and 2 Indicators Additional Information GeneralAdditional Information Troubleshooting MN1854Serial Communications Problems Troubleshooting MN1854 MN1854 Specifications & Product Data Section Specifications & Product DataIdentification LinStep+ LX 2 P 1 aProtection & Indicators Description General SpecificationsVAC VDC94.7 230.1 DimensionsOptional Keypad 10.08 256.0 Axis Driver 148.3 Specifications & Product Data MN1854 Section CE Guidelines Wiring of Shielded Screened CablesCE Declaration of Conformity EMC Conformity and CE MarkingCE Guidelines MN1854 EMC Wiring TechniqueCit Grounding EarthCable Screens Grounding EMC Installation InstructionsSimulated Encoder Output Cable Grounding Input Signal Cable GroundingEncoder Cable Grounding To ControllerMN1854 Appendix A-1 Appendix aProgramming Template Appendix MN1854 MN1854 Appendix A-3 122.88 Remote Keypad Mounting Template838 111.25Baldor Electric Company MN1854 01 C&J Baldor Electric CompanyLinStep+ Dual-Axis Microstepping Indexer/Driver