Converting To User Units; Programmable Hardware I/O; Digital Outputs - Galil Motion Control DMC-1000 User Manual

Table of Contents

Advertisement

Instruction
V1=10
V1=
0000000010.0000
V1={F4.2}
0010.00
V1={$4.2}
$000A.00
V1="ALPHA"
V1={S4}
ALPH
The local format is also used with the MG command.
Variables and arithmetic operations make it easy to input data in desired user units such as inches or
RPM.
The DMC-1000 position parameters such as PR, PA and VP have units of quadrature counts. Speed
parameters such as SP, JG and VS have units of counts/sec. Acceleration parameters such as AC, DC,
VA and VD have units of counts/sec 2 . The controller interprets time in milliseconds.
All input parameters must be converted into these units. For example, an operator can be prompted to
input a number in revolutions. A program could be used such that the input number is converted into
counts by multiplying it by the number of counts/revolution.
Instruction
#RUN
IN "ENTER # OF REVOLUTIONS",N1
PR N1*2000
IN "ENTER SPEED IN RPM",S1
SP S1*2000/60
IN "ENTER ACCEL IN RAD/SEC2",A1
AC A1*2000/(2*3.14)
BG
EN

Programmable Hardware I/O

The DMC-1000 has an 8-bit uncommitted output port for controlling external events. The DMC-1080
has an additional eight output bits available at JD5 pins 10-17. Each bit on the output port may be set
and cleared with the software instructions SB (Set Bit) and CB(Clear Bit), or OB (define output bit).
114 • Chapter 7 Application Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Interpretation
Assign V1
Return V1
Response from controller with default format
Specify local format
Response from controller with new format
Specify hex format
Response from controller in hexadecimal format
Assign string "ALPHA" to V1
Specify string format first 4 characters
Response from controller in string format

Converting to User Units

Example - converting to user units
Interpretation
Label
Prompt for revs
Convert to counts
Prompt for RPMs
Convert to counts/sec
Prompt for ACCEL
Convert to counts/sec2
Begin motion
End program

Digital Outputs

DMC-1000

Advertisement

Table of Contents
loading

Table of Contents