Baldor mn1854 manual Read a 4 Digit BCD number, 2 Digits at a time, Reading an Analog Input Value

Page 87

Read a 4 Digit BCD number, 2 Digits at a time

[GET 4 BCDS]

Returns value of 4 digit BCD number

OT01

Connect ground of first two BCD digits

(4 DIGIT BCD)=(2TW)*100

Make value of first two digits the MSB

OT10

Connect ground of 2nd two BCD digits

(4 DIGIT BCD)=(4 DIGIT BCD)+(2TW)

Add value of 2nd two to 1st two * 100

Reading an Analog Input Value

The value of the analog system variables (Al I –AI6) are scaled from 14,400 to 72,000 Hz. This value is actually a scaled frequency read from the OPTO module representing the analog signal. These input values are updated every 16 milliseconds. If your program needs to display this value in units such as VOLTS, you will need to scale the value to VOLTS in your program. The scaling factor depends upon the type of OPTO module used. For example: a ”J ” thermocouple uses a different factor than a ”K” thermocouple. Due to slight variances in the output frequency from module to module, it is recommended that the OPTO be calibrated by querying the corresponding AIx value with no input signal connected to the OPTO. This value should be used as the zero input reference frequency.

Example: Use a 0–10VDC analog input. 0V=14,400; 10V=72,000 or 5.760 Hz/volt.

(VOLT)=(AI2)

Read the value of analog input #2 into variable volts

(VOLT)=(VOLT)–14400

Remove frequency offset

(VOLT)=(VOLT)*1.736

Scaling factor multiplied. by 10,000

(VOLT=(VOLT)*.0001

Scaling back to volts

The variable (VOLT) is now in units of volts. If you are waiting for a condition to occur or doing a comparison, (see below) there is no need to go through the conversion process.

(TEMP)=(AI9)

Read in temperature from analog input

WT(AI12)<45000 GO

Wait for analog input 12 <45000 (<5.3 VDC using the

 

previous example) before moving

IF(AI12)<45000 GO EB

Go if analog input 12 < 45000

80

70

Output 60

Frequency 50 (kHz)

40

30

20

14.4

10

72

Min

Max

Value

Value

 

Input Signal

6-32 Keypad Programming

MN1854

Image 87
Contents LinStep+ Dual-Axis Microstepping Indexer/Driver Table of Contents Other Programming Samples Ii Table of Contents MN1854 Arithmetic Operands and EquationsIncrement/Decrement Variables Troubleshooting Serial Communications Problems Iv Table of Contents MN1854 Limited Warranty Section General InformationCE Compliance 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 driveSection Product Overview OverviewMotors Product Overview MN1854 Receiving & Inspection Section Receiving and InstallationPower Dissipation Mechanical InstallationGND 2Receiving & Installation MN1854System Grounding Ungrounded Distribution System Input Power ConditioningWire Size and Protection Devices Power Connections Power connections are shown in Figure4Receiving & Installation MN1854 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+ Decimal Point CommaAlpha 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 FigureEntering Characters with the Alpha Key In edit mode Use the =O keys for additional alpha characters8Keypad Operation MN1854 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 VelConfigure the I/O Iuuuuuuu ←↑↓→Char Keypad Display Input Character Description 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 EnableConfigure Home Parameters Mode Edge SwitchOffset DIR 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 DecelerationValue Units Range N/A LP2 DI3 GO EBIF2,1 EN EB DI2 GO 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 RangeIV12,LENGTH LppiecesDilength 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 ENSyntax VEr VE Velocity WTexpression= starting input number Summary of Expressions, Operators and Functions Helpful Hints Programming your applicationProgramming Overview Example of Hosted Mode ProgramVariable Names Examples of how to use Built-in Variables Built-in VariablesVariable Name Description of Built-in Variable Type Using Built-in Variable Arowrel Non-Volatile Variables PartsLpnumber Instead, you should use AO15=VOLTAGE + ErrorArithmetic Operands and Equations Examples of incorrect useOther Programming Samples Logical OperatorsIncrement/Decrement Variables ExpressionsSetting an Output=On on-the-fly Create a Message and Read an Input VariableCreate a Menu menu display on keypad display for operator 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 VACDimensions Optional Keypad 10.08 256.0 Axis Driver 148.394.7 230.1 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 GroundingAppendix a Programming TemplateMN1854 Appendix A-1 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