MPC2000 Reference Manual [JAPANESE] [ENGLISH]
yCommandz   yAD_DAz
yUSEz
GET_AD

GET_AD 0 X(1090) 360 4
GET_AD 1 Z(1090) 100
GET_AD 0 X(100) (ch,100)
yFORMATz yFUNCTIONz
GET_AD CH ARRAY() Cnt [ms]

Continuous getting ad data.
yEXPLANATIONz
This command realizes the real time getting AD data.
The arguments consists of AD-CH , Array data should be stored in, the counts of data and interval time(msec).
After this command sets the parameter to the real time monitor, it exit immediately.
When you need to the process termination, you should check the value of the tail data.
This sample program shows you how to use this command with a motor rotation.




80 X(1449)=0
90 PGB "P" 1800
95 SYSCLK=0
100 WAIT SYSCLK=>360
110 GET_AD 0 X(1090) 360 4
120 WAIT X(1449)!=0
125 PRINT SYSCLK
130 WAIT SW(RDY_PGB)==0
#
[LASTMODIFY]2016-09-09 11:42:59 [CREATEDATE]2010-02-16 17:34:03
MPC2000 Reference Manual -R5.11-   (C)2007 ACCEL Corp. all right reserved.