Find Docs

Galil Motion Control - catalog (Page 92)

Wodocs >> Electronics : Motion Control >> Galil Motion Control catalog Page 92
Galil Motion Control - catalog
M O T I O N C O N T R O L P R O G R A M M I N G
DATA INPUT
AND OUTPUT
Motion Control Programming
105
delayed until a move has been completed (AM), an input sig-
nal changed states (AI), or by a pure time delay (WT).
The following example illustrates the use of trippoints in
executing a motion cycle.
Consider the motion cycle illustrated below. A forward
motion of 10,000 counts must start upon a pulse on input
#1. The initial velocity, acceleration, and deceleration
rates equal 20,000, 100,000, and 100,000 respectively.
After the motor has moved a distance of 6000 counts, the
controller starts a deceleration toward a speed of 10,000
counts/sec. That speed is maintained for the rest of the
move. Upon completion of the motion, the controller waits
100 milliseconds before returning the motor to the starting
position, at a speed of 20,000 counts/sec. Once there, the
controller is ready to repeat the cycle.
Notice that the scheduling of the various functions
requires the use of trippoints. The start of the motion is
delayed by the trippoint AI1. When the motion starts, the
velocity change is scheduled with the trippoint AD 6000.
The controller must then wait until the completion of the
move (AMX) and adds a pure delay of 100 ms (WT 100)
before returning the motor to the starting position. The
resulting flow chart is shown, and the instruction program
follows.
Instruction
Interpretation
#CYCLE
Label
PR 10000
Distance
SP 20000
Initial speed
AC 100000
Acceleration rate
DC 100000
Deceleration rate
AI1
Wait for start pulse
BGX
Start motion
AD 6000
Wait until X moved 6000 counts
SP 10000
Change the speed
AMX
Wait for completion of move
WT 100
Wait 100 msec
PR -10000
Reverse motion
SP 20000
Return speed
BGX
Start motion
AMX
Wait for end of motion
JP#CYCLE
Repeat the cycle
EN
End
Data Input and Output
Many applications require data to be input from an opera-
tor or messages to be displayed from the controller. For
easy operator interface, the DMC provides commands
that display messages and prompt the operator for data.
Messages can be sent to the host computer using the mes-
sage command, MG.
Sending a message. Example:
MG "The final value is", RESULT {F5.2}
The above statement sends the message "The final value
is" to the host computer. The value for the variable, RESULT,
is substituted with a format of 5 digits to the left of the deci-
mal and 2 to the right.
Operators are prompted to input data with the input
statement, IN, which contains a text message to prompt the
operator for the input data.
Prompt for data. Example:
IN "Input speed", SPX
The above statement sends the prompt "Input speed" to
the PC screen. The entered value is assigned to the vari-
able, SPX.
Cut to length. Example:
This program prompts the operator for the cut length. A
position move is then commanded. The encoder resolution is
4000 counts/inch.
Instruction
Interpretation
#BEGIN
Label
AC 800000
Specify acceleration
DC 800000
Specify deceleration
SP 5000
Specify speed
LENGTH = 3.4
Initial length in inches
#CUT
Cut routine
IN "Enter length", LENGTH
Prompt to enter length
PR LENGTH*4000
Specify position in counts
BG X
Begin motion
AM X
After motion complete
SB1
Set bit 1, turn on cutter
WT 100;CB1
Wait 100 msec, turn off cutter
JP #CUT
Repeat cut process
EN
End program

<< Previous       1 .. 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99       Next >>



Other Documents:
2004catalog, ampmotororder, blm n 23, catcps, catmotors, ctool, ioc 7007, pcicompar, programming, softorder, system, utilities, wsdk, activelife, camalot, mojavaton, smmov, Filter Equiv, note 1410, note 1411, note 1412, eseries brochure, ethernet dmc 21x 2, ethernet emerge, ethernet flight, ethernet horizons, pr 03 30 00, pr 10 1 98, pr 10 20 99, pr 11 30 00, pr 1 13 00, pr 2 18 98, pr 3 11 98, pr 3 2 98, pr 6 15 99, pr 7 1 99, pr 8 29 00, pr 9 13 99, pr 9 9 98, db 28040 qsi, bestvalue, jacob video, icmworksheet, note 1220, note 1222, note 2311, note 2312, note 2319, note 2321, note 2326,


WODocs | |
All rights reserved. wodocs.com© 2009
WODocs


New Docs

Documents Category:
Arts (Design, Movies, Music, Radio, Television)
Automotive (Cars, Marine, Motorcycle, ATV, Snowmobiles)
Business (Biotechnology and Pharmaceuticals, Chemicals, Construction and Maintenance, Materials, Real Estate, Services)
Electronics (Computers, Motion Control, Power Supply)
Games (Board, Family, Party, Card, Construction, RC Toys)
Health (Animalm, Beauty, Healthcare, Medicine, Pharmacy, Surgery, Weight Loss)
Home (Accessories, Cooking, Decor and Design, Electrical, Family, Pets)
News (Newspapers, Sports, Television)
Recreation (Collecting, Hiking, Scouting, Survival, Travel)
Reference (Education, Libraries and Archives, Museums)
Science (Agriculture, Astronomy, Biology, Chemistry)
Shopping (Antiques and Collectibles, Clothing, Flowers, Food, Home and Garden)
Sports (Bicycle, Snowboard, Skiing, Other)