fix display. Behaviour for motion remains compatible.
This commit is contained in:
@@ -44,7 +44,6 @@ class MotionBase:
|
||||
sync_wait can be put in the program to force a timing sync
|
||||
sync_run are the commands to run the whole program
|
||||
'''
|
||||
gpascii = self.comm.gpascii
|
||||
if mode == 0:
|
||||
try:
|
||||
del self.sync_prg
|
||||
@@ -83,7 +82,10 @@ while(1)
|
||||
disable plc {plcId}
|
||||
close
|
||||
'''.format(plcId=plcId, crdId=crdId, flag=flag)
|
||||
gpascii.send_block(prg)
|
||||
comm=self.comm
|
||||
if comm is not None:
|
||||
gpascii=comm.gpascii
|
||||
gpascii.send_block(prg)
|
||||
self.sync_prg = 'Coord[{crdId}].DesTimeBase=0'.format(prgId=prgId, plcId=plcId, crdId=crdId)
|
||||
self.sync_run = 'enable plc {plcId};&{crdId}b{prgId}r'''.format(prgId=prgId, plcId=plcId, crdId=crdId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user