Baldor mn1854 manual Non-Volatile Variables, Parts, Lpnumber

Page 83

Non–Volatile Variables

(#F1) through (#F50) are fifty user variables stored in non–volatile flash memory so they retain their values through power cycles, warm boots, and system resets. Standard user variable are lost at power down or reset. When one of these variables is changed (i.e. used on the left side of a equal (=) sign, the new value is written to, and stored in the user non–volatile flash.

Note: Flash memory has a limited read/ write lifetime (100,000 writes before failure), variable values that change frequently should not be stored as these variables. Examples include loop count variables, and POS1 and POS 2 variables. LinStep+ will allow only 1,000 FLASH writes between power cycles. This limit is set to prevent damage to non–volatile memory due to a simple programming mistake or misunderstanding. When this write limit is exceeded, all programs will stop running, an error message will be displayed, and the appropriate status bits will be set.

Example: At the start of each part run, a program called [Set–up] is used to initialize a number of variable part parameters. During production the program called [PARTS] is run. This program reads from the FLASH variables, but does not generate any writes to the FLASH, so the lifetime of the FLASH is not compromised.

[Set–up]

{Program #1}

MS1,“Feed length?: ”

Writes string beginning at character 1, top line

IV12,(LENGTH),1,15

Loads the part length to variable (LENGTH)

MS1,“Feed Speed?: ”

Writes string beginning at character 1, top line

IV12,(SPEED),.05, 5

Loads the speed into volatile variable (SPEED)

(#F1)=(LENGTH)

Loads the length into non–volatile variable (#F1)

(#F2)=(SPEED)

Loads the speed into non–volatile variable (#F2)

EN

 

[PARTS]

[PARTS] runs on power up, unless new parameters

 

are entered.

(LENGTH)=(#F1)

Load part specific variable from non–volatile #F1.

(SPEED)=(#F2)

Load part specific variable from non–volatile #F2.

LP(NUMBER)

Loop (NUMBER) of times

DI(LENGTH)

Move (LENGTH)

VE(SPEED)

at (SPEED) velocity

GO

 

OT1 TD.1 OT0

Change output to indicate part done

EB

End the loop Block

6-28 Keypad Programming

MN1854

Image 83
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 On next 2General Information MN1854 Product Notice Intended useCould result in injury or death Could result in damage to propertyVoltages that are conducted to its power input terminals. Do not touch any circuit board, power device or electricalConnection before you first ensure that power has been Do not apply AC power before you ensure that grounds areDriver should have specifications compatible to the drive Extend more than 0.2 5 into keypad assemblyInstead, we recommend using a four wire Wye Power is removed from the driveMotors Section Product OverviewOverview Product Overview MN1854 Receiving & Inspection Section Receiving and InstallationPower Dissipation Mechanical InstallationGND 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 InstallationsPC / Host Device 8Receiving & Installation MN1854Daisy Chain Connections Rules for Daisy Chain OperationTypical connection each input Programmable I/O ConnectionsOptional Opto I/O Connections These input connections are made at terminals 6-40 Figure+5VDC 10Receiving & Installation MN1854Encoder Signal PVS100 Danaher 9-Pin D Encoder Color CodeGround GND Motor ConnectorLD9068A00 Leadwire Connection 9 pin to flying leads Interlock IntlkSection General Information Start-Up ProcedurePower Off Checks Switch and Potentiometer SettingsHigh Power On ChecksAction Display Comments Motor should now be producing torqueReceiving & Installation MN1854 F1, F2, F3 Section Keypad OperationOverview Keypad layout with the LCD display is shown in FigureCopies one program to another within the LinStep+ Alpha Decimal PointComma Shutdn RS232 Encoder TestThus eliminating the need for a PC terminal connection Trace Output MovePressing the Edit key displays a set of sub-menus Edit MenuSave Program? YesNo Save the programEdit an existing program 6Keypad Operation MN1854Mine AC.3 VE2 DI1 GO Naming a programExample of Naming a Program Press ESC. You will be prompted as shown in Figure8Keypad 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 SubmenuPrograms stored Press ↓ to display the total Press EDIT, POS F3 Press YES F1 or no F3Press EDIT, ↓ , List to Display the numberSequentially Eeprom message disappears Pressing Help in the Main MenuPressing Help in Menus and Sub-Menus Pressing Help In the Program Edit functionProgram names COPY, to PAD SubmenuEnter the program number. Or, if You wish, you can scroll the listProcedure Format Definition Section SetupAxis One Motor Dir Setup MN1854Axis One Motor Type Steper Axis One Drive ResAxis One Encoder RES ↑5000 cnts/in ↓ Axis One ENC ModeOpen Loop Application NotesPM Gain IN-RANGE Setup WindowValue IN-RANGE WindowVmax Accel Amax Configure Your Application MechanicsMech Setup Dist500.0 in/s ↓→ Axis One Vel Units In/sEdit Axis One MAX VelChar Keypad Display Input Character Description Configure the I/OIuuuuuuu ←↑↓→ Reset to 1. This allows for input debounce and controlling Inputs will work. See the RG command for more detailsService routine program To summarize, when INT98CTRL=1Inputs Warm BootPower-up program, if defined, will start Jog SpeedOUT1 Programmable Pppppppp ←↑↓→ OFF Configure the Output StatesOPTO9 Input IiiiiiiiAccel LO-VEL HI-VEL Configure End of Travel Switch PolarityConfigure JOG Parameters EnableOffset DIR Configure Home ParametersMode Edge Switch Negative Axis One Final Dir Positive Configure Power-up Program↑SETUP↓ Power Up Program PROGRAM0Echo UNIT# Configure Serial CommunicationsRS232C Setup ↑ Enabled ↓Data Type Description of Display Data Type Configure Miscellaneous Setup ParametersPassword Type Description Gives access to these menus General Password RulesPassword Setup Opratr Admin ClearFunction Key Message to Display Keypad Program Command ListSection Keypad Programming Acceleration Start Home Outputs On/OffAC2 DE.5 VE12 DA3 GO DA3 GO DA3 GO Keypad Programming MN1854Value Units Range ExampleDC Distance to Change DC n + 10 + Example Distance to ChangeDCn * DCn*1 * Vn*1 2* Vnt w Examples of DC move profiles, AC = seconds, VE=ipsAC.1 VE60 DI2 GO DI1 GO DI-4 GO DE DecelerationIF2,1 EN EB DI2 GO Value Units Range N/ALP2 DI3 GO EB Copy DEL =12 =13 =17 =18 =22 =23=26 =27 =28 RUN EditExample 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 GIiVE2 AC.1 DA4,2 GP GO Go Start a Move Syntax GO or GOiValue N/A Units N/A Range i=1-16 AC.05 DE.05 VE50 DI5 GOIf input 1 is on and input 2 is off, jump to program Part a Gosub Syntax GSi and GSname=1-400, name = any legal program name IF10 Gtpart a EBIFPARTS=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,COUNTVE5 DA20 GO Powerup ONL,GTON EOTGthome MainOT4,1 Turn on Output OT2,0D1 = starting output number=0 input high. X=1 input low grounded =anything else ignore input changesSyntax RGr RG Registration Value N/A Units seconds SQRESULT=0 SQ27.96,SQRESULTValue N/A Units N/A ST1 AC1 DE1 VE25 DA6 GO VE50 DA0 GO EN= 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 Instead, you should use AO15=VOLTAGE + ErrorArithmetic Operands and Equations Examples of incorrect useOther Programming Samples Logical OperatorsIncrement/Decrement Variables ExpressionsCreate a Menu menu display on keypad display for operator Setting an Output=On on-the-flyCreate a Message and Read an Input Variable Digit BCD=4 Digit BCD+2TW Read a 4 Digit BCD number, 2 Digits at a timeReading an Analog Input Value GET 4 BcdsAdditional Information General Section Troubleshooting1Operation Indicators 2Axis 1 and 2 IndicatorsAdditional Information Troubleshooting MN1854Serial Communications Problems Troubleshooting MN1854 LinStep+ LX 2 P 1 a Section Specifications & Product DataMN1854 Specifications & Product Data IdentificationVDC General SpecificationsProtection & Indicators Description VAC94.7 230.1 DimensionsOptional Keypad 10.08 256.0 Axis Driver 148.3 Specifications & Product Data MN1854 EMC Conformity and CE Marking Wiring of Shielded Screened CablesSection CE Guidelines CE Declaration of ConformityGrounding Earth EMC Wiring TechniqueCE Guidelines MN1854 CitCable Screens Grounding EMC Installation InstructionsTo Controller Input Signal Cable GroundingSimulated Encoder Output Cable Grounding Encoder Cable GroundingMN1854 Appendix A-1 Appendix aProgramming Template Appendix MN1854 MN1854 Appendix A-3 111.25 Remote Keypad Mounting Template122.88 838Baldor Electric Company MN1854 01 C&J Baldor Electric CompanyLinStep+ Dual-Axis Microstepping Indexer/Driver