Baldor MIN1853 manual SQRESULT=0 SQ27.96,SQRESULT, Value N/A Units N/A, Value N/A Units seconds

Page 81

syntax – SQr,(var)

SQ

Square Root

 

Value:

N/A

 

Units:

N/A

 

Range:

0.0001 – 214748.3645

The SQ command calculates the square root of a number and returns the result in a user defined variable. The n parameter in the syntax can be a number or a variable parameter, however, the second parameter must be a previously defined variable for which the square root result is stored. If the second parameter is not a defined variable, you will get a Bad Variable Name error. Following mathematical convention, SQ will produce an Invalid Parameter error for negative “r” values. The return value is accurate to the 0.01 place. Example: This program calculates the square root of 27.96 and stores the value in the user defined variable (SQRESULT).

(SQRESULT)=0 SQ27.96,(SQRESULT)

The returned value in (SQRESULT) is 5.28.

 

Stop Move on Input

syntax – STn (or ST#n)

ST

 

Value: N/A

Units: N/A

Range: 0–8 inputs

ST stops move execution upon activating the input specified by n. ST0 disables (turns off) the STn command.

ST#1 stops the move on axis #1. (Allows program command conditional program termination).

After ST is executed, the specified input is monitored during every “move profile”. If the input is activated, the current “move in progress” is terminated, stopping all motion until the input is deactivated or an ST0 is processed. LinStep+ will process and calculate commands, but will wait at the next GO command until the ST input changes.

The motor is stopped at the deceleration rate specified in the Stop Decel Rate parameter. Once issued, Stop on Input remains active until it is turned off by the ST0 command, a reset is issued, or power is cycled.

Example:

ST1 AC1 DE1 VE25 DA6 GO VE50 DA0 GO EN

Move to absolute position 6 units. If input 1 is activated while moving, Stop Motion. When the input is deactivated, immediately execute the next move profile which is to move to the absolute zero position. If input 1 is not activated while moving, the motor would complete its 6 unit move before executing the move back to absolute zero.

syntax – TDr

TD Time Delay

Value: N/A

Units: seconds

Range: r=0.01 – 99999.99

Delay r seconds before executing the next command.

Example:

VE50 DI4 GO OT11 TD.5 OT00

Move 4 units, turn outputs 1 and 2 on, delay .5 seconds, and turn outputs 1 and 2 off.

6-22 Keypad Programming

MN1853

Image 81
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 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 driveSection Product Overview OverviewMotors 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 Discrete I/O Connections Limits ConnectionsET± Encoder Signal PVS100 Danaher 9-Pin D Encoder Color Code+5VDC AY0165A00 Leadwire Connection 9 pin to flying leads Motor ConnectorInterlock Intlk Ground GND21 Opto Racks DB25 Pin to Screw Terminal Converter PNP ConverterPNP Power Off Checks Start-Up ProcedurePower On Checks Action Display CommentsSection Keypad Operation OverviewF1, F2, F3 Main Menu Menu KeyJOG F2 MenusDecimal Point CommaAlpha 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 * JrFine-Tuning Offsets Value HighValue OFF Range N/A ValueApplication Notes 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 ExamplesValue Units Range ExampleAC2 DE.5 VE12 DA3 GO DA3 GO DA3 GO 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 Value Units Range N/A LP2 DI3 GO EBIF2,1 EN EB DI2 GO =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 RangeIV12,LENGTH LppiecesDilength 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 Summary of Expressions, Operators and Functions Helpful Hints Programming your applicationProgramming Overview Variables Example of Hosted ModeProgram Variable NamesVariable Name Description of Built-in Variable Type Built-in VariablesUsing Built-in Variable Arowrel Non-Volatile Variables PartsLpnumber AO15=VOLTAGE + Error Arithmetic Operands and EquationsBoolean Operators 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+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 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 InstructionsInput Signal Cable Grounding Simulated Encoder Output Cable GroundingEncoder 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