Baldor MIN1853 manual Built-in Variables, Variable Name Description of Built-in Variable Type

Page 85

Built–in Variables

Some variable names are pre–defined. They can be used in expressions, to set voltages, to test conditions, or to display information to the keypad display or an external serial device.

Variable Name

Description of Built–in Variable

Type

(AI1) to (AI6)

Analog Inputs 1 through 6

Read Only

(AROWREL)

Current status of any of the four arrow keys

Read Only

(CPOS1)

Commanded position of axis 1

Read Only

(EPOS1)

Encoder position of axis 1

Read Only

(VEL1)

Commanded velocity of axis 1

Read Only

(POS1)

Current Position of axis 1

Read Only

(#F1) thru (#F50)

Non–volatile, limited use, user system variables

Read/Limited Write

(FKEY)

Value of Function Key pressed

Read Only

(LASTKEY)

Value of last Function key pressed

Read Only

(TERM)

Sends variable out RS–232 port

Write Only

(1TW)

Scans inputs 1–4 for BCD Digit

Read Only

(2TW)

Scans inputs 1–8 for BCD Digit

Read Only

(TIME)

Elapsed Time (ms) since power up or since reset

Read Only

(CRCS)

Value of the EEPROM setup checksum

Read Only

(CRCP)

Value of the EEPROM program checksum

Read Only

(SA1)

Integer value of the status of axis 1 (SeeRS232 command SA)

Read Only

(SD1)

Integer value of the drive status of axis 1 (See RS232 command SD)

Read Only

(SS)

Integer value of the system status (See RS232 command SS)

Read Only

(INT98CTRL)

Enables/disables (ARM INT98) trigger option

Read and Write

(ARM INT98)

Enables/disables INT98 input if (INT98CTRL) is enabled

Read and Write

Examples of how to use Built–in Variables

(PIECES)=10

Assigns 10 to variable

(SPEED)=(AI12)*(VEL SCALE)

Speed = analog input times a scalar

MS21,“Enter Length” IV32,(LENGTH)

Prompts user and gets feed length

VE(SPEED)

Sets velocity to value in variable

MS1,(POS1)

Displays present position of axis 1 on keypad screen

(TERM)=(POS1)

Sends the present position of axis 1 out the RS–232 port

(TEMPERATURE)=(AI9)

Reads in temperature from an analog input

(AO15)=4012

Sets the analog output to 4012

(#F1)=(PIECES)

Stores the value of Pieces in FLASH memory variable #F1

6-26 Keypad Programming

MN1853

Image 85
Contents LinStep+ Single-Axis Microstepping Indexer/Driver Table of Contents POS ProgProg To PAD From Troubleshooting Iv Table of Contents MN1853 Section General Information Limited WarrantyCE Compliance Could result in injury or death Product Notice Intended useCould 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 driveOverview Section Product 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 Limits Connections Discrete I/O ConnectionsET± Encoder Color Code Encoder Signal PVS100 Danaher 9-Pin D+5VDC AY0165A00 Leadwire Connection 9 pin to flying leads Motor ConnectorInterlock Intlk Ground GND21 Opto Racks PNP Converter DB25 Pin to Screw Terminal ConverterPNP Power Off Checks Start-Up ProcedurePower On Checks Action Display CommentsOverview Section Keypad OperationF1, F2, F3 Main Menu Menu KeyJOG F2 MenusComma Decimal PointAlpha 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 * JrValue High Fine-Tuning OffsetsValue OFF Value Range N/AApplication 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 ExamplesExample Value Units RangeAC2 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 LP2 DI3 GO EB Value Units Range N/AIF2,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 RangeLppieces IV12,LENGTHDilength 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 Helpful Hints Programming your application Summary of Expressions, Operators and FunctionsProgramming Overview Variables Example of Hosted ModeProgram Variable NamesVariable Name Description of Built-in Variable Type Built-in VariablesUsing Built-in Variable Arowrel Parts Non-Volatile VariablesLpnumber Arithmetic Operands and Equations AO15=VOLTAGE + ErrorBoolean 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+2TW1Operating Mode Indications, 1 Axis Section TroubleshootingAdditional Information General Additional Information Serial Communications Problems Troubleshooting MN1853 Identification Section Specifications & Product DataLinStep+ 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 InstructionsSimulated Encoder Output Cable Grounding Input Signal 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