fix display. Behaviour for motion remains compatible.

This commit is contained in:
2018-10-26 15:57:31 +02:00
parent 00c84235a0
commit 9c8e2a417e
4 changed files with 1524 additions and 258 deletions

View File

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