documentation triggerSync with mermaid

This commit is contained in:
2024-10-31 15:57:26 +01:00
parent cf4a9362f2
commit 4b38db8405
4 changed files with 429 additions and 46 deletions

View File

@@ -99,13 +99,13 @@ class MotionBase:
Coord[{crdId}].TimeBaseSlew=1 //1E-4 is default
Coord[{crdId}].DesTimeBase=0
Coord[{crdId}].Q[0]=-3 // motion program waiting at start position
Coord[{crdId}].Q[0]=-2 // motion program started and armed
while({flag0}==0){{}}
Coord[{crdId}].Q[0]=-1
Gather.Enable=2
while({flag1}==0){{}}
Coord[1].DesTimeBase=Sys.ServoPeriod
Coord[{crdId}].Q[0]=0 //
Coord[{crdId}].Q[0]=-2 // 'start/frame event system' armed (triggerSync not used in these modes)
while({flag0}==0){{}} // wait start trigger
Coord[{crdId}].Q[0]=-1 // start trigger received
Gather.Enable=2 // start acquire date
while({flag1}==0){{}} // wait first frame trigger
Coord[1].DesTimeBase=Sys.ServoPeriod //run motion
Coord[{crdId}].Q[0]=0 // indicates that motion moves to first measurement point
'''
else: #sync_mode==2: triggerSync:trigsync_func called
prg = f'''