Baldor MN1851 manual Appendix B Command Set, Lin Ascii Command Set General, Mnemonics

Page 78

Appendix B

Command Set

Lin – ASCII – Command – Set

General

Lin controls use the RS232 communication port (optional RS485) as the Interface. This document describes existing LinDrive/Lin+Drive ASCII terminal commands for setup and control of the servo drive.

There are three types of ASCII commands:

1.Parameters. Without parameters, these commands are handled as queries. To modify the value of a parameter, the value to be set is added to the command. Some parameters may only be modified under special drive conditions. Query is not restricted to special drive conditions.

2.Variables or system constants. System variables are internally updated in the control, and can not be changed by the user. System constants are fixed (e.g. by hardware) system properties. Query of variables or constants is not restricted to special drive conditions.

3.Methods support control of the system. Methods may or may not require a parameter. Commanding a method to be executed is in some cases also restricted to special drive conditions. Each command is defined as a special mnemonic, which is used for query of parameters, variables and constants as well as for parameter less methods. Modifying a parameter respectively commanding a parameterized method is done by simply adding the parameter value to the mnemonic.

Syntax

General structure of the ASCII command

Each ASCII command is structured in principle according to “Mnemonic” “Delimiter” “Parameter List”. Syntax allows multiple commands in the same string separated by blank space delimiter. Each command string is terminated by a carriage return. i.e. generally, a command string looks like:

“Mnemonic1” “Delimiter” “Parameter List1”... “MnemonicN” “Delimiter” “Parameter ListN” [CR]

Up to 80 characters are allowed at the command prompt.

For each correct command the control returns a “>” sign (ASCII 3E hex) as an acknowledge. If a command is not accepted, the reason for the command revision is sent instead of the acknowledge.

Mnemonics

The mnemonics are not case sensitive. Most of the ASCII commands are grouped into functional groups. The Mnemonics of the commands of parameters, variables and methods of these function groups have a prefix, which indicate the function and, separated by the dot, the command identifier. The general structure of Function Group Commands is as follows:

“Functional Group”.“Command Identifier” “Delimiter”“Parameter list” [CR].

e.g.SYS.MOD 1

All prefixed commands are drive parameters. The delimiter between mnemonic and parameter of these commands is either blank space or equal sign (one of both is mandatory). To query all parameters and variables of a function group, the function group prefix followed by dot and asterisk can be used:

“Functional Group”.*

e.g.SYS.*

MN1851

Command Set B-1

Image 78
Contents Lin+Drive Servo Control Table of Contents Ii Table of Contents MN1851 Minimum system requirements24VDC Logic Power Input Appendix aAppendix B Iv Table of Contents MN1851 Limited Warranty Section General InformationCE Compliance Could result in damage to property Product Notice Intended useCould result in injury or death General Information MN1851Do 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.General Information MN1851 Section Product Overview Control Outputs Encoder OutputSection Receiving and Installation Mechanical InstallationReceiving & Installation MN1851 ControlGND Recommended System Grounding 1 phase for UL Recommended System Grounding 1 phase for CEInput Power Conditioning System Grounding Ungrounded Distribution SystemBreaker Wire Size for units without Power SupplyX1 Power Connections Mm2Components not provided with Control BaldorBaldor Control Baldor Option S Option P Control Regen Resistor EarthBreaker Baldor Option P Control Important LPxAxxxx-xxx3 onlyTo use an M4 bolt 12mm in length Holes in the top and bottomEnclosure are for cable clamps. Be sure Longer bolts may short circuit11 Motor Connections for UL 12 Motor Connections for CE13 Optional M-Contactor Connections Single Ended Connection Differential Connection Control Input WiringX3 Control Inputs & Digital I/O Connections X3 Digital Inputs Opto Isolated Inputs uses CrefOpto Input Signal Conditions Signal Name Opto Input Signal DefinitionProcess Duration Time Required DurationX3 Digital Outputs Opto Output Signal ConditionsFault Relay MaO1Control TXD X6 RS232 / 485 ConnectionsNull Modem Cable Connections ComputerRS485 What is a termination resistor?Where are these resistors placed? How many resistors should my system have?TX+ RX+ Dgnd = Twisted PairTX+ Dgnd GND TX+ RX+ Dgnd GNDX7 Encoder Output Buffered Encoder Output at X7 ConnectorX7 Pin Signal Name ReservedX9 Encoder and Hall Feedback LPxAxxxx-Exxx Control Address Setting Section Switch Setting and Start-UpSwitch AS1 Settings Address Setting, AS1-1 to AS1-4 for Multi-Drop ApplicationsOffset Tuning Setting of switches AS1-5 to AS1-8Switch Function AS1-5 to AS1-8 DescriptionPower On Checks Start-Up ProcedurePower Off Checks ProcedureSwitch Setting & Start-Up MN1851 Installing Software on your PC Host Communications SetupSection Operation Windows Windows NTUsing The Setup Wizard Flowchart of the Setup Wizard Operation MN1851Page There are 7 parts to the setup procedure Motor Motor parameters. Click Download when finishedEncoder Feedback Encoder FeedbackEncoder Feedback Motor pitch mm 60.96 Lmcf All Micron Counts / meter Counts / mmOperating Mode Selection Screen Operating ModeCurrent Parameter MN1851 OperationSoftware Triggered MAI4 MAI3 MAI2 MAI1Procedure to define home position HomeIndex channel, Capture and Actual Position Set this value. Click Download when finished DriftFile SetupMain Menu Choice Descriptions EditFunctions TuningWatch MotionPLC Program Menu HelpVelocity Parameters RPM m/s Linear MotorMeters/second MN1851 Troubleshooting Section Troubleshooting1Operating Mode Indications OverviewLong as the error is less than ± 215 ± Section Specifications & Product Data Identification+0 to 40. Above 40 C, derate the continuous and peak SpecificationsTo 3300 feet 1000 meters. Derate the continuous Output current by 2.5% per C above 40 C. MaximumPeak output current by 1.1% for each 330 feet Description UnitSpecifications & Product Data MN1851 24VDC Logic Power Input Option LPxAxxxx-xxx3 only24VDC Logic Power Input Option LP4Axxxx-xxx3 only Velocity ControlEncoder Input Feedback RegenerationDimensions Size A, B and CClearance Requirements all sizes 0.06″ 15mm top and bottom CE Declaration of Conformity Wiring of Shielded Screened CablesSection CE Guidelines EMC Conformity and CE MarkingEMC Wiring Technique CE Guidelines MN1851Grounding Earth EMC Installation Instructions Cable Screens GroundingEncoder Input Cable Grounding Input Signal Cable GroundingSimulated Encoder Output Cable Grounding To ControllerMating Connector by connector number for spare parts Section Accessories and OptionsConnectors CablesDepth = F AC Filter DimensionsAccessories & Options MN1851 Fo rRegeneration Resistor PackageAccessories & Options MN1851 General Tuning Rules Appendix a Manual TuningTools are available to make tuning easier, such as Manual TuningManual Tuning MN1851 There are 7 parts to the setup procedureParameters. Click Download when finished Motor15240 000,000 10,000,000 Figure A-13 Current Parameter Screen Figure A-14 Velocity Parameter Screen Drift Figure A-15 Drift Parameter ScreenFigure A-16 Select Manual Tuning Figure A-17 Inertia and Load Response Examples Tracking factorFigure A-18 PI Compensation Menu Page Graphic Screen Plotting of MoveControl Window Jog BlockSyntax General structure of the Ascii command Appendix B Command SetLin Ascii Command Set General MN1851 Command Set B-1Pulses/rev Resolution Parameters and UnitsEncoder Input Buffer Overflow command line exceeded 80 char Start-up with Terminal Communication and Command ExamplesExecution Error invalid command Control Design Failure invalid control designBasic System Parameters Motor Parameters MTR. prefixed General Settings System ConstantsCommand Set MN1851 Drive Parameters typical DRV. prefixedMN1851 Command Set B-5 Software Limit Switches ParametersVariables None Software Limit Switches Methods Command Description Units Range Default E2 / Par. setPLC.LINE PLC ParametersVariables None PLC Methods RelayDigital Interface Parameters MN1851 Command Set B-7OCI Interface Parameters Analog Interface ParametersQueries / modifications of Fault Listing Variables X1 Possible Faults X1 Fault Display DescriptionSystem Variables General Variables Methods Communication Settings ParameterMN1851 Command Set B-9 VariableQueries of System Variables, Status, Faults Single Values Data Record REC. prefixed ParametersData Record REC. prefixed Variable Eeprom related Operation Mode Control Normal Modes ParametersMemory related methods Queries / modifications RAM related Normal Modes VariablesCurrent mode Methods Sys.mod Current mode ParametersCurrent mode Variables Query for actual current commandVelocity mode Methods Sys.mod 1 & Sys.mod Velocity mode ParametersVelocity mode Variables MN1851 Command Set B-13JOG.TYPE Jog ParametersJOG.TIME JOG.VELMN1851 Command Set B-15 Position Controller Position Controller ParametersVariables HW.PLC HW.GRFXHW.GRSH HW.RESBaldor Electric Company  Baldor Electric Company MN1851 10/00 C&JLin+Drive Servo Control MN1851