Analog Output; The Auxiliary Encoder Inputs - Galil Motion Control CDS-3310 User Manual

Table of Contents

Advertisement

Example - Position Follower (Continuous Move)
Method: Read the analog input, compute the commanded position and the position error. Command
the motor to run at a speed in proportions to the position error.
NOTE: Position tacking mode also provides for a continuous move.

Analog Output

The controller has one analog output which may be set in Volts using the AO 1,n command where n is
the voltage from -9.999 to 9.999. The resolution of the Digital-to-Analog conversion is 16 bits.
Example
Objective – Produce a sinusoidal analog signal with a specified amplitude and period.

The Auxiliary Encoder Inputs

The auxiliary encoder inputs can be used for general use. The controller has one auxiliary encoder,
which consists of two inputs, channel A and channel B. The auxiliary encoder inputs are mapped to
the inputs 81-82.
Each input from the auxiliary encoder is a differential line receiver and can accept voltage levels
between +/-12Volts. The inputs have been configured to accept TTL level signals. To connect TTL
signals, simply connect the signal to the + input and leave the - input disconnected. For other signal
levels, the - input should be connected to a voltage that is ½ of the full voltage range (for example,
connect the - input to 6 volts if the signal is a 0 - 12 volt logic).
Example:
52 • Chapter 7 Application Programming
AMA
JP #LOOP
EN
Instruction
Interpretation
#CONT
Label
AC 80000;DC 80000
Acceleration rate
JG 0
Start Jog mode
BGX
Start motion
#LOOP
vp=@AN[1]*1000
Compute desired position, 1000 chosen for system
ve=vp-_TPA
Find position error
vel=ve*20
Compute velocity, 20 chosen for system
JG vel
Change velocity
JP #LOOP
Change velocity
EN
End
Instruction
Amplitud = 5
Period = 1000
#loop
AO 1, Amplitud * @SIN[360/Period * TIME]
JP#loop
After completion
Repeat
End
Interpretation
;'-5 Volts to +5 Volts
;'1 second period
;'Label
;'set analog output
CDS-3310

Advertisement

Table of Contents
loading

Table of Contents