Baldor mn1854 manual =12 =13 =17 =18 =22 =23, =26 =27 =28, RUN Edit, Copy DEL, Gsfkey

Page 62

FK

Function Key

syntax – FKi,i,..,i

 

Value:

N/A

 

 

Units:

N/A

 

 

Range:

i=1–28

 

The FK command allows you to define a function key within your program. The FK command pauses processing until the buttons you have “armed” are pressed. The number of the button pressed is assigned to the system variable, (FKEY). You can then manipulate or directly use this variable to branch to other routines or make other decisions. FK allows the programmer to redefine the keypad’s function keys as operator menu selection buttons. You can even write your program with menus that look and feel like our setup menus. The returned values of the FKEY’s are:

Note: 24, the ESC key, cannot be assigned since it stops the program.

 

 

F1

F2

 

F3

 

 

=1

=2

 

=3

 

RUN

EDIT

HELP

COPY

DEL

 

=4

=5

=6

=7

=8

 

 

 

 

u

 

1=9

2=10

3=11

=12

=13

 

 

 

 

 

4=14

5=15

6=16

=17

=18

 

 

 

 

.

,

 

7=19

8=20

9=21

=22

=23

 

ESC

 

±

ALPHA

ENTER

 

=Not

0=25

=26

=27

=28

Example:

Used

FK1,2,3,4

GS(FKEY)

Pauses command execution until F1, F2, F3, or RUN is pressed on the keypad. (FKEY) is assigned a value of 1–4. Subroutine 1–4 is called with the GS(gosub) command.

Figure 6-1 shows how to use the keypad function keys as an operator interface. A 3–screen menu program is provided

1.Write a menu message (MS) on the keypad display above the corresponding function keys.

2.Use the FK command to pause command processing until the operator selects a valid function key. Only keys explicitly defined in the FK statement are considered valid.

3.Gosub to the appropriate program.

MN1854

Keypad Programming 6-7

Image 62
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 Could result in damage to property Product Notice Intended useCould result in injury or death On next 2General Information MN1854Do 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 MN1854 Mechanical Installation Section Receiving and InstallationPower Dissipation Receiving & Inspection2Receiving & Installation MN1854 GNDInput Power Conditioning System Grounding Ungrounded Distribution System4Receiving & Installation MN1854 Wire Size and Protection DevicesPower Connections Power connections are shown in Figure MN1854 Receiving & Installation Connection Locations 115VAC, 2 Axis6Receiving & Installation MN1854 Tools Required9 & 25 Pin RS-232 Cable Connections for UL Installations RS-232 PC ConnectionsRules for Daisy Chain Operation 8Receiving & Installation MN1854Daisy Chain Connections PC / Host DeviceThese input connections are made at terminals 6-40 Figure Programmable I/O ConnectionsOptional Opto I/O Connections Typical connection each inputEncoder Color Code 10Receiving & Installation MN1854Encoder Signal PVS100 Danaher 9-Pin D +5VDCInterlock Intlk Motor ConnectorLD9068A00 Leadwire Connection 9 pin to flying leads Ground GNDSwitch and Potentiometer Settings Start-Up ProcedurePower Off Checks Section General InformationMotor should now be producing torque Power On ChecksAction Display Comments HighReceiving & Installation MN1854 Keypad layout with the LCD display is shown in Figure Section Keypad OperationOverview F1, F2, F3Copies one program to another within the LinStep+ Alpha Decimal PointComma Trace Output Move TestThus eliminating the need for a PC terminal connection Shutdn RS232 EncoderEdit Menu Pressing the Edit key displays a set of sub-menus6Keypad Operation MN1854 Save the programEdit an existing program Save Program? YesNoPress ESC. You will be prompted as shown in Figure Naming a programExample of Naming a Program Mine AC.3 VE2 DI1 GO8Keypad Operation MN1854 Entering Characters with the Alpha Key In edit modeUse the =O keys for additional alpha characters Edit, Setup Submenu Submenu Setup Parameter Description of Setup ParameterDisplay the number Press EDIT, POS F3 Press YES F1 or no F3Press EDIT, ↓ , List to Programs stored Press ↓ to display the totalPressing Help In the Program Edit function Pressing Help in the Main MenuPressing Help in Menus and Sub-Menus Sequentially Eeprom message disappearsYou wish, you can scroll the list COPY, to PAD SubmenuEnter the program number. Or, if Program namesSection Setup Procedure Format DefinitionAxis One Drive Res Setup MN1854Axis One Motor Type Steper Axis One Motor DirApplication Notes Axis One ENC ModeOpen Loop Axis One Encoder RES ↑5000 cnts/in ↓IN-RANGE Window IN-RANGE Setup WindowValue PM GainDist Configure Your Application MechanicsMech Setup Vmax Accel AmaxAxis One MAX Vel Axis One Vel Units In/sEdit 500.0 in/s ↓→Char Keypad Display Input Character Description Configure the I/OIuuuuuuu ←↑↓→ To summarize, when INT98CTRL=1 Inputs will work. See the RG command for more detailsService routine program Reset to 1. This allows for input debounce and controllingJog Speed Warm BootPower-up program, if defined, will start InputsOUT1 Programmable Pppppppp ←↑↓→ Iiiiiiii Configure the Output StatesOPTO9 Input OFFEnable Configure End of Travel Switch PolarityConfigure JOG Parameters Accel LO-VEL HI-VELOffset DIR Configure Home ParametersMode Edge Switch Negative Power Up Program PROGRAM0 Configure Power-up Program↑SETUP↓ Axis One Final Dir Positive↑ Enabled ↓ Configure Serial CommunicationsRS232C Setup Echo UNIT#Configure Miscellaneous Setup Parameters Data Type Description of Display Data TypeOpratr Admin Clear General Password RulesPassword Setup Password Type Description Gives access to these menusAcceleration Start Home Outputs On/Off Keypad Program Command ListSection Keypad Programming Function Key Message to DisplayExample Keypad Programming MN1854Value Units Range AC2 DE.5 VE12 DA3 GO DA3 GO DA3 GODC Distance to Change Examples of DC move profiles, AC = seconds, VE=ips Example Distance to ChangeDCn * DCn*1 * Vn*1 2* Vnt w DC n + 10 +DE Deceleration AC.1 VE60 DI2 GO DI1 GO DI-4 GOIF2,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 Set in Edit Setup Mech Accel VEL GH Start HomeGo Immediate Syntax GI or GIi Value N/A Units N/A Range N/AAC.05 DE.05 VE50 DI5 GO GO Go Start a Move Syntax GO or GOiValue N/A Units N/A Range i=1-16 VE2 AC.1 DA4,2 GPIF10 Gtpart a EB Gosub Syntax GSi and GSname=1-400, name = any legal program name If input 1 is on and input 2 is off, jump to program Part aUnits Range IFPARTS=25 GS20 EBDilength IV12,LENGTHLppieces Syntax LPi LP Loop Value Units N/A Range N/ASyntax MC+ MC Move Continuous Move Continuous MS27,COUNT 27 7th character, 2nd rowMain Powerup ONL,GTON EOTGthome VE5 DA20 GO=anything else ignore input changes = starting output number=0 input high. X=1 input low grounded OT4,1 Turn on Output OT2,0D1Syntax 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 seconds= 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 Examples of incorrect use AO15=VOLTAGE + ErrorArithmetic Operands and Equations Instead, you should useExpressions Logical OperatorsIncrement/Decrement Variables Other Programming SamplesCreate a Menu menu display on keypad display for operator Setting an Output=On on-the-flyCreate a Message and Read an Input Variable GET 4 Bcds Read a 4 Digit BCD number, 2 Digits at a timeReading an Analog Input Value Digit BCD=4 Digit BCD+2TW2Axis 1 and 2 Indicators Section Troubleshooting1Operation Indicators Additional Information GeneralTroubleshooting MN1854 Additional InformationSerial Communications Problems Troubleshooting MN1854 Identification Section Specifications & Product DataMN1854 Specifications & Product Data LinStep+ LX 2 P 1 aVAC General SpecificationsProtection & Indicators Description VDC94.7 230.1 DimensionsOptional Keypad 10.08 256.0 Axis Driver 148.3 Specifications & Product Data MN1854 CE Declaration of Conformity Wiring of Shielded Screened CablesSection CE Guidelines EMC Conformity and CE MarkingCit EMC Wiring TechniqueCE Guidelines MN1854 Grounding EarthEMC Installation Instructions Cable Screens GroundingEncoder Cable Grounding Input Signal Cable GroundingSimulated Encoder Output Cable Grounding To ControllerMN1854 Appendix A-1 Appendix aProgramming Template Appendix MN1854 MN1854 Appendix A-3 838 Remote Keypad Mounting Template122.88 111.25Baldor Electric Company Baldor Electric Company MN1854 01 C&JLinStep+ Dual-Axis Microstepping Indexer/Driver