Find Docs

Galil Motion Control - programming (Page 8)

Wodocs >> Electronics : Motion Control >> Galil Motion Control programming Page 8
Galil Motion Control - programming
Technical Reference
Motion Programming
12
www.galilmc.com / Galil Motion Control, Inc.
Record Data Mode
Controllers can record motion data at a fixed rate and store the data
in an array.This data can be later used to duplicate the motion or to
analyze it.
The recording process includes several steps. First the array
where the data is stored must be specified; later the type of data,
such as position, position error, etc. must be defined before the
actual recording is accomplished at a specified rate.The process is
illustrated by the following example.
The example below illustrates how recorded data can be used for
analysis.
Write a program to record the position error of the Y axis every 16 msec.
a total of 100 times and store the results in the array YERROR.
The actual recording is done with the instruction RC that has two
parameters: the recording time interval (2
n
msec) and the number of
recorded points.
INSTRUCTION
INTERPRETATION
#RECORD
Label
DM YERROR [100
Dimension array
RA YERROR []
Specify record mode
RD _TEY
Data type for record
RC 4,100
Actual recording
EN
End program
Example--Record Data Mode
Use the position error data collected in the previous example to per-
form a statistical analysis on the position error of Y. Determine the
maximum and the minimum values as well as the mean square value.
The following program performs the required tasks and stores the
results under the variables MAX, MIN, and MEAN.
INSTRUCTION
INTERPRETATION
#STAT
Label
N = 0
Initial values
MAX = 0
MIN = 0
SUM = 0
#LOOP
Label
E = YERROR [N]
Read position error
IF (YERROR [N] >MAX)
MAX = E
ELSE; IF (YERROR [N] <MIN)
MIN = E
ENDIF; ENDIF
SUM = E*E+SUM
Compute sum of squares
N = N+1
Increment index
JP#LOOP, N<100
Repeat 100 times
MEAN = SUM/100
Mean square
ROOT = @ SQR[MEAN]
Root mean square (RMS)
EN
End program
Example--Statistical Analysis

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



Other Documents:
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, note 3311a, note 3312, note 1419, note 1427a, note 2429, note 2438, note 4413, cadtodmc, dmcdos,


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)