publicoverrideboolGroupRun(refstringmessage,refCogToolResultConstantsresult){// To let the execution stop in this script when a debugger is attached, uncomment the following lines.// #if DEBUG// if (System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Break();// #endif// Run each tool using the RunTool functionforeach(ICogTooltoolinmToolBlock.Tools)mToolBlock.RunTool(tool,refmessage,refresult);//工具引用CogPMAlignToolpm=mToolBlock.Tools["CogPMAlignTool1"]asCogPMAlignTool;CogIDToolid1=mToolBlock.Tools["CogIDTool1"]asCogIDTool;CogIDToolid2=mToolBlock.Tools["CogIDTool2"]asCogIDTool;Show_Label(0,100,CogColorConstants.DarkGrey,myFont1,"X:"+pm.Results[0].GetPose().TranslationX.ToString("f3"));Show_Label(0,140,CogColorConstants.DarkGrey,myFont1,"Y:"+pm.Results[0].GetPose().TranslationY.ToString("f3"));Show_Label(0,180,CogColorConstants.DarkGrey,myFont1,"A:"+pm.Results[0].GetPose().Rotation.ToString("f3"));if(id1.Results.Count>0){Show_Label(0,220,CogColorConstants.DarkGrey,myFont1,"R1Barcode1:"+id1.Results[0].DecodedData.DecodedString);}else{Show_Label(0,220,CogColorConstants.DarkGrey,myFont1,"NG");}if(id2.Results.Count>0){Show_Label(0,260,CogColorConstants.DarkGrey,myFont1,"R1Barcode2:"+id2.Results[0].DecodedData.DecodedString);}else{Show_Label(0,260,CogColorConstants.DarkGrey,myFont1,"NG");}returnfalse;}
一、MCMCAN介绍fSYN is supplied from fMCANH and fASYN is supplied from fMCAN from CCU. fSYN is used as the clock source for Register and RAM interface,fASYN is used to generate the nominal and fast CAN FD baudrates. It is recommended to use fASYN as 80, 40,…