Galil Motion Control CDS-3310 User Manual page 102

Table of Contents

Advertisement

Command Summary - Automatic Data Capture
command
RA n[],m[],o[],p[]
RD type1,type2,type3,type4
RC n,m
RC?
Operand Summary - Automatic Data Capture
_RC
_RD
Example - Recording into An Array
CDS-3310
description
Selects up to four arrays for data capture. The arrays must be defined with the
DM command.
Selects the type of data to be recorded, where type1, type2, type3, and type 4
represent the various types of data (see command reference). The order of data
type is important and corresponds with the order of n,m,o,p arrays in the RA
command.
The RC command begins data collection. Sets data capture time interval where
n is an integer between 1 and 8 and designates 2
optional and specifies the number of elements to be captured. If m is not
defined, the number of elements defaults to the smallest array defined by DM.
When m is a negative number, the recording is done continuously in a circular
manner. _RD is the recording pointer and indicates the address of the next array
element. N=0 stops recording.
Returns a 0 or 1 where, 0 denotes not recording, 1 specifies recording in progress
Returns a 0 or 1 where, 0 denotes not recording, 1 specifies recording in progress
Returns address of next array element.
Instruction
#RECORD
DM apos[300],bpos[300]
DM aerr[300],berr[300]
RA apos [],aerr[],bpos[],berr[]
RD _TPA,_TEA,_TPB,_TEB
PR 10000,20000
RC1
BG AB
#A;JP #A,_RC=1
MG "DONE"
EN
#PLAY
N=0
JP# DONE,N>300
n=
apos [N]=
bpos [N]=
aerr[N]=
berr[N]=
n=n+1
#DONE
EN
n
msec between data. m is
Interpretation
Begin program
Define A,B position arrays
Define A,B error arrays
Select arrays for capture
Select data types
Specify move distance
Start recording now, at rate of 2 msec
Begin motion
Loop until done
Print message
End program
Play back
Initial Counter
Exit if done
Print Counter
Print X position
Print Y position
Print X error
Print Y error
Increment Counter
Done
End Program
Chapter 7 Application Programming
i
41

Advertisement

Table of Contents
loading

Related Products for Galil Motion Control CDS-3310

Table of Contents