Find Docs

Galil Motion Control - tut2 (Page 8)

Wodocs >> Electronics : Motion Control >> Galil Motion Control tut2 Page 8
Galil Motion Control - tut2
MOTION PROGRAMMING
TECHNICAL REFERENCE
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 are stored must be specified; later
the type of data, such as position, position error, etc.
must be defined before the actual recording is accom-
plished at a specified rate. The process is illustrated by
the following example.
The example below illustrates how recorded data can be
used for analysis.
One of the main uses of the array is for recording motion as
described in the following section.
RECORD DATA MODE
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
(2n msec) and the number of recorded points.
INSTRUCTION
INTERPRETATION
#RECORD
Label
RA YERROR [100] Storage array
RD _TEY Data type
RC 4,100 Actual recording
EN End program
Example--Record Data Mode
Use the position error data collected in the previous exam-
ple to perform 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 per-
forms 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
JP#MAX, E<MAX
Compare with MAX
MAX = E
Redefine MAX
#MAX
Label
JP#MIN, E >MIN
Compare with MIN
MIN = E
Redefine MIN
#MIN
Label
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
www.galilmc.com
·
Galil Motion Control, Inc.
·
87

<< 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)