![Galil Motion Control DMC-18 2 Series Скачать руководство пользователя страница 145](http://html1.mh-extra.com/html/galil-motion-control/dmc-18-2-series/dmc-18-2-series_user-manual_3263754145.webp)
134
●
Chapter 7 Application Programming
DMC-18x2
Data Types for Recording:
DATA TYPE
DESCRIPTION
_DEX
2nd encoder position (dual encoder)
_TPX Encoder
position
_TEX Position
error
_RPX Commanded
position
_RLX Latched
position
_TI Inputs
_OP Output
_TSX
Switches (only bit 0-4 valid)
_SCX Stop
code
_NOX Status
bits
_TTX
Torque (reports digital value +/-8097)
Note: X may be replaced by Y,Z or W for capturing data on other axes.
Operand Summary - Automatic Data Capture
_RC
Returns a 0 or 1 where, 0 denotes not recording, 1 specifies recording in progress
_RD
Returns address of next array element.
Example - Recording into An Array
During a position move, store the X and Y positions and position error every 2 msec.
#RECORD Begin
program
DM XPOS[300],YPOS[300]
Define X,Y position arrays
DM XERR[300],YERR[300]
Define X,Y error arrays
RA XPOS[],XERR[],YPOS[],YERR[]
Select arrays for capture
RD _TPX,_TEX,_TPY,_TEY
Select data types
PR 10000,20000
Specify move distance
RC1
Start recording now, at rate of 2 msec
BG XY
Begin motion
#A;JP #A,RC=1
Loop until done
MG "DONE"
Print message
EN
End program
#PLAY Play
back
N=0 Initial
Counter
JP# DONE,N>300
Exit if done
N= Print
Counter
X POS[N]=
Print X position
Y POS[N]=
Print Y position
XERR[N]=
Print X error
YERR[N]=
Print Y error
N=N+1 Increment
Counter
#DONE Done
EN End
Program
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание DMC-18 2 Series
Страница 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 5: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 11: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...