MPC2000 Reference Manual [JAPANESE] [ENGLISH]
yFunctionz   yPulseGenz
yUSEz
CMP_P

CMP_P(n)
CMP_P(axs,n)
yFORMATz yFUNCTIONz
CMP_P([axs,],v)

Comparing the current position value with point data
yEXPLANATIONz
Comparing the current position value with point data designated.
When the point number only defined , all the value of all the axis will be compared with the value of point data.
When adding the axis option,it compare them about the axis defined.




10 PG 0
15 CLRPOS
20 ACCEL 8000
30 SETP 7000 10000 20000 30000 40000
40 MOVS P(7000)
50 DO
60 IF CMP_P(7000) THEN : PRINT "Arrived" : BREAK : END_IF
70 TIME 100
80 LOOP
90 RMVS Z_A 100
100 WAIT RR(Z_A)==0
110 PRINT CMP_P(7000)
120 PRINT CMP_P(VOID_Z,7000)
#run
Arrived
0
1
#
[LASTMODIFY]2010-03-10 13:50:32 [CREATEDATE]2009-09-25 19:19:11
MPC2000 Reference Manual -R5.11-   (C)2007 ACCEL Corp. all right reserved.