enhance sync part 2
This commit is contained in:
@@ -771,8 +771,8 @@ EncTable[20].ScaleFactor=1E-3
|
||||
prg.append('N100:')
|
||||
prg.append(' pvt%g abs'%pt2pt_time) #100ms to next position
|
||||
for idx in range(1,pv.shape[0]):
|
||||
prg.append('X%g:%g Y%g:%g'%tuple(pv[idx,(0,2,1,3)]))
|
||||
#if idx%78==10: #sync data all 256 points
|
||||
prg.append(f'N{idx} ' + 'X%g:%g Y%g:%g'%tuple(pv[idx,(0,2,1,3)]))
|
||||
#if idx%256==4: #sync data all 256 points
|
||||
# prg.append('Coord[1].Q[12]=Sys.ServoCount')
|
||||
# #prg.append(f'Coord[1].Q[13]={idx}')
|
||||
# prg.append(f'Coord[1].Q[13]=Motor[1].DesPos')
|
||||
|
||||
Reference in New Issue
Block a user