Find Docs

Galil Motion Control - tut2 (Page 3)

Wodocs >> Electronics : Motion Control >> Galil Motion Control tut2 Page 3
Galil Motion Control - tut2
TECHNICAL REFERENCE
MOTION PROGRAMMING
CONTROL VARIABLES
The DMC can receive commands from both the host
computer and the stored program and execute these instruc-
tions simultaneously.
Many motion applications include variable parameters. For
example, a cut-to-length application often requires that the
cut length be variable. The motion process is the same, but
the length is changing. To accommodate these applications,
advanced controllers provide symbolic variables. A program
can be written in which certain parameters, such as position
or speed, are defined as variables. The variables can later be
assigned by the operator or determined by program calcula-
tions. Variables allow the motion controller to perform cer-
tain mathematical functions and to make decisions. This
capability increases the intelligence of the motion controller
and allows it to perform some supervisory functions in addi-
tion to the motion control.
A variable can be defined as a constant or can be
equated to a controller parameter. For example, the
instruction V = 3 sets the value of the variable V to 3.
The instruction P = _TPX reads the position of the X motor
and equates the variable P to that value. Variables can be
defined in a variety of ways. For example, the instruction
YERROR = _TEY equates the variable YERROR to the
position error of the Y motor.
Once the variable is defined, it can be used in mathe-
matical operations. The DMC can perform mathematical
functions which typically include algebraic, trigonometric,
and logical operations.
When the operation is completed, the controller can use
the computation result to adjust the system parameters. For
example, the results can be used to change the speed, set the
distance, or change the filter gain. The use of variables is
best illustrated by the following example.
To illustrate the concept, consider the move described in
the point-to-point example. To perform the same move
from a stored program, the host modifies the program
by adding the label #A and the end statement EN. The
resulting program is as follows.
The host downloads this program to the controller
memory, where the program remains inactive. To exe-
cute the program, the host sends the command XQ#A
which causes the controller to execute the program
labeled #A.
INSTRUCTION
INTERPRETATION
#A
Program label
PR 4000
Distance
SP 20000
Speed
AC 200000
Acceleration
DC 200000
Deceleration
BGX
Start X motion
EN
End of program
Example--Stored Programs
The following program shows an example where the X
motor follows the position of the Y motor. This is done
by driving the X motor at a speed proportional to the
position difference.
INSTRUCTION
INTERPRETATION
#FOLLOW
Program name
DP 0,0
Define X,Y position as zero
JG 0
Set initial X speed to zero
BGX
Start X
#LOOP
Label
VE=_TPY-_TPX
Find the position difference
VEL=VE*10
Compute the speed
JG VEL
Modify the speed
JP #LOOP
Repeat the process
EN
End of program
Example--Position Follower
CONTROL VARIABLES
82
·
Galil Motion Control, Inc.
·
www.galilmc.com

<< Previous       1 2 3 4 5 6 7 8 9 10 11 12 13       Next >>



Other Documents:
tut3, tut4, tut6, amp 19540 manual, cadman, manc 18x 6, optcom, MSDS JEECHEM SHAMPOO CONCENTRATE 1, msds ALOE VERA GEL DECOLORIZED 40 X, msds ALOE VERA OIL EXTRACT Mineral Oil Base, msds ANHYDROUS LANOLIN USP, msds CARROT OIL, msds COTTONSEED OIL, msds JEECHEM 100 CG POWDER, msds JEECHEM 1450, msds JEECHEM 186, msds JEECHEM BUBBLE BATH GSE, msds JEECHEM CA 40, msds JEECHEM CA 9, msds JEECHEM CASTOR OIL PP, msds JEECHEM CER, msds JEECHEM NP 12, msds JEECHEM NP 30, msds JEECHEM NP 6, msds JEECHEM SHAMPOO BWC, msds JEECHEM SHAMPOO COMBE BLEND, msds JEECHEM SHAMPOO CONCENTRATE 2, msds JEECHEM SHAMPOO CONCENTRATE 4, msds JEECHEM SHAMPOO CONCENTRATE 4 CL, msds JEECHEM SHAMPOO CONCENTRATE 5, msds JEECHEM SHAMPOO CONCENTRATE 5 CL, msds JEECHEM SHAMPOO CONCENTRATE 7 CL, msds JEECHEM SHAMPOO ST ARR, msds JEECHEM SML, msds JEECHEM SMS, msds JEECHEM STO, msds JEECHEM STS, msds JEECOL CA 20, msds JEELAN ALCOHOL SP, msds JEELAN ALCOHOL, msds JEELAN L 60, msds JEELATE ALES 2, msds JEELATE ALS 30, msds JEELATE DLS, msds JEEMATE 1000 DPS, msds JEEMATE 1000 ML, msds JEEMATE 200 ML, msds JEEMATE 300 DPS, msds JEEMATE 300 OC, msds JEEMATE 400 DO,


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)