Baldor MIN1853 manual Using Built-in Variable Arowrel

Page 86

Using Built–in Variable (AROWREL)

(AROWREL) is a built–in Boolean read only variable that determines the status of any of the four arrow keys. When used with (FKEY), the program can detect if an arrow key is being held down. (AROWREL) will only return the status of the four arrow keys. If a different key is pressed, (AROWREL) will return the value 0. (AROWREL) will return one of these values:

(AROWREL)=0 One of the arrow keys is being held down. (AROWREL)=1 The arrow key has been released.

Example JOG application using (AROWREL) and (FKEY):

[MAIN]

{Program #1}

FK12,13

{Wait for a Left or Right arrow key}

GT(FKEY)

{Jump to arrow key program #12 or #13}

[LEFT ARROW]

{Program #12}

MC+

{Enable MC mode}

AC.1

{Start MC move}

VE1

{Move in positive direction}

GO

 

LP

 

IF(AROWREL)=1

{Check status of arrow key}

VE0

{Stop MC move on key release}

GO

 

GT1

{Return to main program}

EB

 

EB

 

[RIGHT ARROW]

{Program #13}

MC+

{Enable MC mode}

AC.1

{Start MC move}

VE–1

{Move in negative direction}

GO

 

LP

 

IF(AROWREL)=1

{Check status of arrow key}

VE0

{Stop MC move on key release}

GO

 

GT1

{Return to main program}

EB

 

EB

 

MN1853

Keypad Programming 6-27

Image 86
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 Do 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 driveMotors Section Product OverviewOverview Product Overview MN1853 Mechanical Installation Section Receiving and InstallationPower Dissipation Receiving & InspectionRecommended System Grounding 1 phase for CE Recommended System Grounding for ULInput Power Conditioning System Grounding Ungrounded Distribution SystemEurope Wire Size and Protection DevicesDelay a 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 OperationRS485 PC Connections What is a termination resistor?Where are these resistors placed? 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 Interlock Intlk Motor ConnectorAY0165A00 Leadwire Connection 9 pin to flying leads Ground GND21 Opto Racks PNP DB25 Pin to Screw Terminal ConverterPNP Converter Power On Checks Start-Up ProcedurePower Off Checks Action Display CommentsF1, F2, F3 Section Keypad OperationOverview JOG F2 Menu KeyMain Menu MenusAlpha Decimal PointComma 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 Program Edit function Pressing Help in the Main MenuPressing Help in Menus and Sub-Menus 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 OFF Fine-Tuning OffsetsValue High Application Notes Range N/AValue 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 Brake AMP FaultFault 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, DisabledPOS1 Configure Miscellaneous Setup ParametersData Type Description of Display Data Type VEL1General Password Rules Password Type Description Gives access to these menusSetup MN1853 Value Units Keypad Program Command ListSection Keypad Programming ExamplesAC2 DE.5 VE12 DA3 GO DA3 GO DA3 GO Value Units RangeExample 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 IF2,1 EN EB DI2 GO Value Units Range N/ALP2 DI3 GO EB RUN Edit =12 =13 =17 =18 =22 =23=26 =27 =28 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 EBDilength IV12,LENGTHLppieces Value Units N/A Range N/A Syntax MC+ MC Move Continuous Move Continuous MS27,COUNT Main Powerup ONL,GTON EOTGthome VE5 DA20 GO= starting output number Syntax 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 secondsSyntax VEr VE Velocity Programming Overview Summary of Expressions, Operators and FunctionsHelpful Hints Programming your application Program Example of Hosted ModeVariables Variable NamesBuilt-in Variables Variable Name Description of Built-in Variable TypeUsing Built-in Variable Arowrel Lpnumber Non-Volatile VariablesParts Boolean Operators AO15=VOLTAGE + ErrorArithmetic Operands and Equations Expressions Other Programming Samples Logical OperatorsIncrement/Decrement Variables WTAI12MAX TempSetting an Output=On on-the-fly Create a Message and Read an Input VariableGET 4 Bcds Read a 4 Digit BCD number, 2 Digits at a timeReading an Analog Input Value 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 VAC General SpecificationsProtection & Indicators Description VDCDimensions Specifications & Product Data MN1853 CE Declaration of Conformity Wiring of Shielded Screened CablesSection CE Guidelines EMC Conformity and CE MarkingEMC Wiring Technique Grounding EarthEMC Installation Instructions Cable Screens GroundingEncoder Cable Grounding Input Signal Cable GroundingSimulated Encoder Output 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