Baldor MIN1853 manual Variables, Example of Hosted Mode, Program, Variable Names

Page 84

 

[Move] VE4 DI10 OT01 GO OT10

Example of “Hosted” Mode

 

Program

 

 

 

In the program [Move], the maximum move velocity is set to 4, the command

 

incremental distance is set to 10, output 1 and output 2 are turned off and on

 

simultaneously, axis one then moves 10 units. After axis one stops moving, output

 

1 is turned on and output 2 is turned off. These changes of outputs 1 and 2 occur

 

at the same time.

 

 

The flow of the program is controlled with WT (wait for an event or condition to

 

occur), TD (wait for a pre–set amount of time to elapse), and IF (if a certain

 

condition is true at this instant, then execute a block of commands) statements.

 

External controllers such as PLC and computers can be coordinated by the digital

 

outputs and ASCII serial commands. The commands that can be entered from the

 

keypad and used in a program are listed in Table 6-1.

Variables

Memory space allows for up to 100 variables. All variables are stored as fixed

 

point numbers. All variables are global. All standard variables are volatile, though

 

non–volatile variables are available as well. Variables can be used in many parts

 

of the program, such as:

 

 

S

Arithmetic

 

 

S

Conditional Expressions

 

 

S

Loop Counts

 

 

S

Distance and velocity commands

 

 

S

Set values

 

 

S

Set command values or parameters

 

S

Set analog signals

 

 

S

Read analog or temperature input

 

 

S

Display information such as position or velocity

 

S

Any place that a number can be used, a variable can be used

Variable Names

Descriptive variable names can be assigned, instead of V1, V2, etc. Variable names can be up to 14 characters, but the first 10 characters must be unique. A name can contain other printable ASCII characters, such as numbers, underscores, exclamation points, even spaces. Upper and lower case characters are supported within variable names, and these variable names are case sensitive. ASCII control characters such as LF and CR are not supported. All variables must be enclosed in parentheses, (variable name). Parentheses are not legal variable characters.

MN1853

Keypad Programming 6-25

Image 84
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 Do not touch any circuit board, power device or electrical Connection before you first ensure that power has beenDo not apply AC power before you ensure that grounds are Voltages that are conducted to its power input terminals.Extend more than 0.2 5 into keypad assembly Instead, we recommend using a four wire WyePower is removed from the drive Driver should have specifications compatible to the driveSection Product Overview OverviewMotors Product Overview MN1853 Section Receiving and Installation Power DissipationMechanical Installation Receiving & InspectionRecommended System Grounding 1 phase for CE Recommended System Grounding for ULInput Power Conditioning System Grounding Ungrounded Distribution SystemWire Size and Protection Devices Delay aEurope 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 OperationWhat is a termination resistor? Where are these resistors placed?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 Motor Connector AY0165A00 Leadwire Connection 9 pin to flying leadsInterlock Intlk Ground GND21 Opto Racks DB25 Pin to Screw Terminal Converter PNP ConverterPNP Start-Up Procedure Power Off ChecksPower On Checks Action Display CommentsSection Keypad Operation OverviewF1, F2, F3 Menu Key Main MenuJOG F2 MenusDecimal Point CommaAlpha 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 Main Menu Pressing Help in Menus and Sub-MenusPressing Help In the Program Edit function 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 RangeFine-Tuning Offsets Value HighValue OFF Range N/A ValueApplication Notes 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 AMP Fault FaultBrake 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, DisabledConfigure Miscellaneous Setup Parameters Data Type Description of Display Data TypePOS1 VEL1General Password Rules Password Type Description Gives access to these menusSetup MN1853 Keypad Program Command List Section Keypad ProgrammingValue Units ExamplesValue Units Range ExampleAC2 DE.5 VE12 DA3 GO DA3 GO DA3 GO 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 Value Units Range N/A LP2 DI3 GO EBIF2,1 EN EB DI2 GO =12 =13 =17 =18 =22 =23 =26 =27 =28RUN Edit 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 EBIV12,LENGTH LppiecesDilength Value Units N/A Range N/A Syntax MC+ MC Move Continuous Move Continuous MS27,COUNT Powerup ONL,GTON EOT GthomeMain VE5 DA20 GO= starting output number Syntax RGr RG Registration SQRESULT=0 SQ27.96,SQRESULT Value N/A Units N/AST1 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 Example of Hosted Mode VariablesProgram Variable NamesBuilt-in Variables Variable Name Description of Built-in Variable TypeUsing Built-in Variable Arowrel Non-Volatile Variables PartsLpnumber AO15=VOLTAGE + Error Arithmetic Operands and EquationsBoolean Operators Logical Operators Increment/Decrement VariablesExpressions Other Programming Samples WTAI12MAX TempSetting an Output=On on-the-fly Create a Message and Read an Input VariableRead a 4 Digit BCD number, 2 Digits at a time Reading an Analog Input ValueGET 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 General Specifications Protection & Indicators DescriptionVAC VDCDimensions Specifications & Product Data MN1853 Wiring of Shielded Screened Cables Section CE GuidelinesCE Declaration of Conformity EMC Conformity and CE MarkingEMC Wiring Technique Grounding EarthEMC Installation Instructions Cable Screens GroundingInput Signal Cable Grounding Simulated Encoder Output Cable GroundingEncoder 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