enhance sync part 2

This commit is contained in:
2022-10-06 13:11:35 +02:00
parent 20c6d690e8
commit 9c6d9df97f
4 changed files with 25 additions and 10 deletions

View File

@@ -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')