diff --git a/src/components.cognex.vision/ctrl/apax.yml b/src/components.cognex.vision/ctrl/apax.yml index 8732ee17a..2d37d1f7c 100644 --- a/src/components.cognex.vision/ctrl/apax.yml +++ b/src/components.cognex.vision/ctrl/apax.yml @@ -17,3 +17,5 @@ dependencies: "@ix-ax/axopen.components.abstractions": '0.1.4-alpha.79' "@ix-ax/axopen.utils": '0.1.4-alpha.79' "@ax/system-timer": ^4.0.1 + "@ax/system-strings": ^5.0.12 + "@ax/system-serde": ^2.0.2 diff --git a/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/AxoInsight.st b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/AxoInsight.st index b052e9e07..ab8f9a803 100644 --- a/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/AxoInsight.st +++ b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/AxoInsight.st @@ -18,10 +18,19 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 {#ix-attr:[Container(Layout.Wrap)]} {#ix-attr:[ComponentDetails("Tasks")]} {#ix-set:AttributeName = "<#Restore#>"} - _restoreTask : AXOpen.Core.AxoTask; + RestoreTask : AXOpen.Core.AxoTask; {#ix-attr:[ComponentDetails("Tasks")]} {#ix-set:AttributeName = "<#Clear inspection results#>"} ClearInspectionResultsTask : AxoInsightClearInspectionResults; + {#ix-attr:[ComponentDetails("Tasks")]} + {#ix-set:AttributeName = "<#Required job name#>"} + RequiredJobName : STRING; + {#ix-attr:[ComponentDetails("Tasks")]} + {#ix-set:AttributeName = "<#Change job by name#>"} + ChangeJobByNameTask : AxoChangeJobByName; + {#ix-attr:[ComponentDetails("Tasks")]} + {#ix-set:AttributeName = "<#Change job by number#>"} + ChangeJobByNumberTask : AxoInsightClearInspectionResults; {#ix-attr:[Container(Layout.Wrap)]} {#ix-attr:[ComponentDetails("Config")]} @@ -105,9 +114,13 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 END_VAR Status.Action.Id := UINT#0; Status.Error.Id := UINT#0; + Status.CurrentJobName := ''; ClearInspectionResultsTask.Restore(); TriggerTask.Restore(); + ChangeJobByNameTask.Restore(); + + RequiredJobName := ''; Results.InspectionID := UINT#0; Results.ResultCode := UINT#0; @@ -126,7 +139,7 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 InspectionControl.AcknowledgeInspectionResults := FALSE; InspectionControl.ExtendedUserDataSet := FALSE; InspectionControl.ExecuteCommand := FALSE; - InspectionControl.ClearError := FALSE; + InspectionControl.ClearError := InspectionStatus.Error; CommandControl.Command := UINT#0; @@ -143,9 +156,9 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 User.UserData.Data[_index] := BYTE#0; END_FOR; - IF NOT AcquisitionStatus.ExposureComplete THEN + IF NOT AcquisitionStatus.ExposureComplete AND NOT InspectionStatus.Error THEN Status.Action.Id := UINT#300; - _restoreTask.DoneWhen(TRUE); + RestoreTask.DoneWhen(TRUE); END_IF; END_METHOD @@ -153,7 +166,7 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 /// Custom logic for the manual control. /// METHOD PROTECTED OVERRIDE ManualControl - ; + ChangeJobByNameTask.Manual(RequiredJobName); END_METHOD METHOD PRIVATE UpdateInputs : BOOL @@ -400,33 +413,39 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 refUserData : REF_TO ARRAY[*] OF BYTE; END_VAR - _restoreTask.Initialize(THIS); + RestoreTask.Initialize(THIS); ClearInspectionResultsTask.Initialize(THIS); TriggerTask.Initialize(THIS); + ChangeJobByNameTask.Initialize(THIS); THIS.UpdateInputs(refAcquisitionStatus,refInspectionStatus,refCommandStatus,refSoftEventStatus,refResultData); //*************RESTORE******************** _taskDisabled := FALSE; - _restoreTask.IsDisabled := _taskDisabled; - IF _restoreTask.Execute() THEN + RestoreTask.IsDisabled := _taskDisabled; + IF RestoreTask.Execute() THEN THIS.Restore(); END_IF; //**************************************** //*************CLEAR*DATA***************** - _taskDisabled := _taskDisabled OR _restoreTask.IsBusy(); + _taskDisabled := _taskDisabled OR RestoreTask.IsBusy(); ClearInspectionResultsTask.IsDisabled := _taskDisabled; ClearInspectionResultsTask.Run(REF(AcquisitionControl),REF(AcquisitionStatus),REF(InspectionControl),REF(InspectionStatus),REF(Config),REF(Status),REF(Results),REF(InspectionResults)); //**************************************** - //*************READ*********************** _taskDisabled := _taskDisabled OR ClearInspectionResultsTask.IsBusy(); TriggerTask.IsDisabled := _taskDisabled; TriggerTask.Run(REF(AcquisitionControl),REF(AcquisitionStatus),REF(InspectionControl),REF(InspectionStatus),REF(CommandControl),REF(Config),REF(Status),REF(Results),REF(InspectionResults),refResultData); //**************************************** + //*************CHANGE JOB BY NAME********* + _taskDisabled := _taskDisabled OR TriggerTask.IsBusy(); + ChangeJobByNameTask.IsDisabled := _taskDisabled; + ChangeJobByNameTask.Run(REF(AcquisitionControl),REF(AcquisitionStatus),REF(InspectionControl),REF(InspectionStatus),REF(CommandControl),REF(Config),REF(Status),REF(Results),REF(User),REF(InspectionResults),refResultData,refUserData); + //**************************************** + THIS.UpdateOutputs(refAcquisitionControl,refInspectionControl,refCommandControl,refSoftEventControl,refUserData); END_METHOD @@ -461,7 +480,7 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 VAR_INPUT Job : STRING; END_VAR - ChangeJob := TriggerTask.Invoke(); + ChangeJob := ChangeJobByNameTask.InvokeWithParameters(Job); END_METHOD END_CLASS diff --git a/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/Tasks/AxoChangeJobByName.st b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/Tasks/AxoChangeJobByName.st new file mode 100644 index 000000000..56e25c937 --- /dev/null +++ b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/Tasks/AxoChangeJobByName.st @@ -0,0 +1,340 @@ +USING AXOpen.Core; +USING System.Strings; +USING System.SerDe; + +NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 + CLASS PUBLIC AxoChangeJobByName EXTENDS AXOpen.Core.AxoTask + VAR PROTECTED + _progress : INT := 0; + _infoTimer : System.Timer.OnDelay; + _errorTimer : System.Timer.OnDelay; + END_VAR + + VAR PRIVATE + _infoTime : LTIME := LT#2S; + _errorTime : LTIME := LT#5S; + _Status : REF_TO AxoInsight_Status; + _jobName : STRING; + END_VAR + + METHOD PUBLIC Run + VAR_INPUT + refAcquisitionControl : REF_TO AxoInsight_AcquisitionControl; + refAcquisitionStatus : REF_TO AxoInsight_AcquisitionStatus; + refInspectionControl : REF_TO AxoInsight_InspectionControl; + refInspectionStatus : REF_TO AxoInsight_InspectionStatus; + refCommandControl : REF_TO AxoInsight_CommandControl; + refConfig : REF_TO AxoInsight_Config; + refStatus : REF_TO AxoInsight_Status; + refResults : REF_TO AxoInsight_Results; + refUser : REF_TO AxoInsight_User; + refInspectionResults : REF_TO AxoByteArray255; + refResultData : REF_TO ARRAY[*] OF BYTE; + refUserData : REF_TO ARRAY[*] OF BYTE; + END_VAR + + VAR + _index : INT; + _inspectionCompleted : BOOL; + END_VAR + + _infoTime := refConfig^.InfoTime; + _errorTime := refConfig^.ErrorTime; + _Status := refStatus; + + IF THIS.Execute() THEN + IF _progress = 0 THEN + refStatus^.Action.Id := UINT#311; + refStatus^.Error.Id := UINT#0; + refStatus^.CurrentJobName := ''; + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + + IF _progress = 1 THEN + THIS.CallTimers(FALSE); + IF _jobName='' THEN + refStatus^.Error.Id := UINT#715; + THIS.ThrowWhen(TRUE); + ELSE + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 2 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#608; + END_IF; + + refInspectionControl^.ExecuteCommand:=FALSE; + refInspectionControl^.ClearError:=FALSE; + refAcquisitionControl^.SetOffline := FALSE; + IF NOT refInspectionStatus^.CommandExecuting THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 3 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#609; + END_IF; + + refAcquisitionControl^.SetOffline := TRUE; + IF(NOT refAcquisitionStatus^.Online) THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 4 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#610; + END_IF; + + refAcquisitionControl^.SetOffline := TRUE; + refInspectionControl^.ExecuteCommand := FALSE; + refInspectionControl^.ClearError := refInspectionStatus^.Error; + IF NOT refInspectionStatus^.Error THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 5 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#611; + END_IF; + + refAcquisitionControl^.SetOffline := TRUE; + IF THIS.SetAndWriteUserDataAsString(_jobName,UINT#0,refUser,refUserData,refStatus) THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 6 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#612; + END_IF; + + refAcquisitionControl^.SetOffline := TRUE; + refInspectionControl^.ExtendedUserDataSet := TRUE; + IF(refInspectionStatus^.ExtendedUserDataSetAcknowledge) THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 7 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#613; + END_IF; + + refAcquisitionControl^.SetOffline := TRUE; + refInspectionControl^.ExtendedUserDataSet := FALSE; + IF(NOT refInspectionStatus^.ExtendedUserDataSetAcknowledge) THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 8 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#614; + END_IF; + + refAcquisitionControl^.SetOffline := TRUE; + + // refCommandControl^.Command := UINT#4000; + // refCommandControl^.Command := UINT#0040; + // refCommandControl^.Command := UINT#16384;//16#4000; + refCommandControl^.Command := UINT#64; //16#0040; + + refInspectionControl^.ExecuteCommand:=TRUE; + + IF(refInspectionStatus^.CommandComplete AND NOT refInspectionStatus^.CommandFailed) THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + ELSIF(refInspectionStatus^.CommandComplete AND refInspectionStatus^.CommandFailed AND NOT refInspectionStatus^.CommandExecuting) THEN + _progress := 20; + END_IF; + END_IF; + + IF _progress = 9 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#615; + END_IF; + + refAcquisitionControl^.SetOffline := TRUE; + refCommandControl^.Command := UINT#0; + refInspectionControl^.ExecuteCommand:=FALSE; + IF(NOT refInspectionStatus^.CommandComplete) THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 10 THEN + IF _infoTimer.output THEN + refStatus^.Error.Id := UINT#616; + END_IF; + + refAcquisitionControl^.SetOffline := FALSE; + + IF(refAcquisitionStatus^.Online) THEN + THIS.CallTimers(FALSE); + _progress := _progress + 1; + END_IF; + END_IF; + + IF _progress = 11 THEN + refStatus^.CurrentJobName := _jobName; + refInspectionControl^.ExecuteCommand := FALSE; + refAcquisitionControl^.SetOffline := FALSE; + refInspectionControl^.ClearError := FALSE; + refCommandControl^.Command := UINT#0; + THIS.ThrowWhen(FALSE); + THIS.DoneWhen(TRUE); + _progress := 0; + END_IF; + + IF _progress = 20 THEN + refStatus^.Error.Id := UINT#718; + // refInspectionControl^.ExecuteCommand := FALSE; + // refAcquisitionControl^.SetOffline := FALSE; + // refCommandControl^.Command := UINT#0; + THIS.ThrowWhen(TRUE); + THIS.DoneWhen(FALSE); + END_IF; + + THIS.CallTimers(TRUE); + + THIS.ThrowWhen(_errorTimer.output); + END_IF; + END_METHOD + + + METHOD SetUserDataAsString : BOOL + VAR_INPUT + inValue : STRING; + inPosition : UINT; + refUser : REF_TO AxoInsight_User; + refUserData : REF_TO ARRAY[*] OF BYTE; + refStatus : REF_TO AxoInsight_Status; + END_VAR + VAR + _index : UINT; + _size : UINT; + _maxIndex : UINT; + _data : ARRAY[0..255] OF BYTE; + END_VAR + + SetUserDataAsString := FALSE; + + _size := TO_UINT(LengthOf(inValue)); + + _maxIndex := UINT#254; + + IF (inPosition +_size) >= TO_UINT(refStatus^.UserDataSize) THEN + refStatus^.Error.Id := UINT#716; + RETURN; + END_IF; + + IF (inPosition +_size) > _maxIndex THEN + refStatus^.Error.Id := UINT#717; + RETURN; + END_IF; + Serialize(UINT#0, inValue, _data); + FOR _index := UINT#1 TO _size BY UINT#1 DO + refUser^.UserData.Data[(inPosition + _index-UINT#1)] := _data[_index]; + END_FOR; + + FOR _index := inPosition +_size TO _maxIndex BY UINT#1 DO + refUser^.UserData.Data[_index] := BYTE#0; + END_FOR; + + SetUserDataAsString := TRUE; + + END_METHOD + + METHOD SetAndWriteUserDataAsString : BOOL + VAR_INPUT + inValue : STRING; + inPosition : UINT; + refUser : REF_TO AxoInsight_User; + refUserData : REF_TO ARRAY[*] OF BYTE; + refStatus : REF_TO AxoInsight_Status; + END_VAR + VAR + _index : UINT; + _maxIndex : UINT; + END_VAR + + _maxIndex := TO_UINT(refStatus^.UserDataSize) - UINT#1; + + IF THIS.SetUserDataAsString(inValue,inPosition,refUser,refUserData,refStatus) THEN + FOR _index := UINT#0 TO _maxIndex BY UINT#1 DO + refUserData^[_index] := refUser^.UserData.Data[_index + UINT#1]; + END_FOR; + END_IF; + SetAndWriteUserDataAsString := TRUE; + END_METHOD + + METHOD PRIVATE CallTimers + VAR_INPUT + signal : BOOL; + END_VAR + + _infoTimer(signal , _infoTime); + _errorTimer(signal , _errorTime ); + END_METHOD + + METHOD PROTECTED OVERRIDE OnRestore + _Status^.Action.Id := UINT#313; + _Status^.Error.Id := UINT#0; + _Status^.CurrentJobName := ''; + _progress := 0; + THIS.CallTimers(FALSE); + END_METHOD + + METHOD PROTECTED OVERRIDE OnAbort + IF _Status <> NULL THEN + _Status^.Action.Id := UINT#602; + END_IF; + END_METHOD + + METHOD PROTECTED OVERRIDE OnDone + IF _Status <> NULL THEN + _Status^.Action.Id := UINT#312; + END_IF; + END_METHOD + + METHOD PROTECTED OVERRIDE OnError + IF _Status <> NULL THEN + _Status^.Action.Id := UINT#702; + END_IF; + END_METHOD + + METHOD PROTECTED OVERRIDE OnStart + IF _Status <> NULL THEN + _Status^.Action.Id := UINT#310; + END_IF; + END_METHOD + + METHOD INTERNAL InvokeWithParameters : IAxoTaskState + VAR_INPUT + inJobName : STRING; + END_VAR + _jobName := inJobName; + InvokeWithParameters := THIS.Invoke(); + END_METHOD + + METHOD PUBLIC Manual + VAR_INPUT + RequiredJobName : STRING; + END_VAR + _jobName := RequiredJobName; + END_METHOD + END_CLASS +END_NAMESPACE \ No newline at end of file diff --git a/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoByteArray255.st b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoByteArray255.st index eb67cf9df..190f79733 100644 --- a/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoByteArray255.st +++ b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoByteArray255.st @@ -2,7 +2,7 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 TYPE AxoByteArray255 : STRUCT - Data : ARRAY [0..254]OF BYTE; + Data : ARRAY [0..254] OF BYTE; END_STRUCT; END_TYPE END_NAMESPACE diff --git a/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoInsight_Status.st b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoInsight_Status.st index 63368a5d8..d271176de 100644 --- a/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoInsight_Status.st +++ b/src/components.cognex.vision/ctrl/src/AxoInsight/v_6_0_0/TypeStructuresAndEnums/AxoInsight_Status.st @@ -4,7 +4,11 @@ NAMESPACE AXOpen.Cognex.Vision.v_6_0_0_0 CLASS AxoInsight_Status EXTENDS AXOpen.Components.Abstractions.AxoComponent_Status VAR PUBLIC {#ix-attr:[Container(Layout.Wrap)]} + {#ix-set:AttributeName = "<#Current job name#>"} + CurrentJobName : STRING; + {#ix-set:AttributeName = "<#Result data size#>"} ResultDataSize : eAxoInsight_ResultDataSize := eAxoInsight_ResultDataSize#RESULT_DATA_SIZE_INVALID; + {#ix-set:AttributeName = "<#User data size#>"} UserDataSize : eAxoInsight_UserDataSize := eAxoInsight_UserDataSize#USER_DATA_SIZE_INVALID; END_VAR END_CLASS diff --git a/src/components.cognex.vision/src/AXOpen.Cognex.Vision/AxoInsight/v_6_0_0/AxoInsight.cs b/src/components.cognex.vision/src/AXOpen.Cognex.Vision/AxoInsight/v_6_0_0/AxoInsight.cs index ccea6638c..73118f109 100644 --- a/src/components.cognex.vision/src/AXOpen.Cognex.Vision/AxoInsight/v_6_0_0/AxoInsight.cs +++ b/src/components.cognex.vision/src/AXOpen.Cognex.Vision/AxoInsight/v_6_0_0/AxoInsight.cs @@ -32,24 +32,29 @@ public string ErrorDescription errorDescriptionDict.Add(605, "Waiting for the signal InspectionCompleted to be toggled!"); errorDescriptionDict.Add(606, "Waiting for the signal ResultsValid to be set!"); errorDescriptionDict.Add(607, "Waiting for the InspectionResults to be copied!"); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); - //errorDescriptionDict.Add(602, ""); + errorDescriptionDict.Add(608, "Waiting for the signal CommandExecuting to be reseted!"); + errorDescriptionDict.Add(609, "Waiting for the signal Online to be reseted!"); + errorDescriptionDict.Add(610, "Waiting for the signal Error to be reseted!"); + errorDescriptionDict.Add(611, "Waiting for the Job name to be written to the User data!"); + errorDescriptionDict.Add(612, "Waiting for the signal ExtendedUserDataSetAcknowledge to be set!"); + errorDescriptionDict.Add(613, "Waiting for the signal ExtendedUserDataSetAcknowledge to be reseted!"); + errorDescriptionDict.Add(614, "Waiting for the signal CommandComplete to be set!"); + errorDescriptionDict.Add(615, "Waiting for the signal CommandComplete to be reseted!"); + errorDescriptionDict.Add(616, "Waiting for the signal Online to be set!"); + //errorDescriptionDict.Add(6, ""); + //errorDescriptionDict.Add(6, ""); + //errorDescriptionDict.Add(6, ""); + //errorDescriptionDict.Add(6, ""); + //errorDescriptionDict.Add(6, ""); + //errorDescriptionDict.Add(6, ""); errorDescriptionDict.Add(700, "Error: Parent has NULL reference!"); errorDescriptionDict.Add(701, "Error: AcquisitionControl has NULL reference!"); errorDescriptionDict.Add(702, "Error: AcquisitionStatus has NULL reference!"); - errorDescriptionDict.Add(703, "Error: InsoectionControl has NULL reference!"); - errorDescriptionDict.Add(704, "Error: InsoectionStatus has NULL reference!"); + errorDescriptionDict.Add(703, "Error: InspectionControl has NULL reference!"); + errorDescriptionDict.Add(704, "Error: InspectionStatus has NULL reference!"); errorDescriptionDict.Add(705, "Error: CommandControl has NULL reference!"); errorDescriptionDict.Add(706, "Error: CommandStatus has NULL reference!"); errorDescriptionDict.Add(707, "Error: SoftEventControl has NULL reference!"); @@ -60,6 +65,27 @@ public string ErrorDescription errorDescriptionDict.Add(712, "Error: ResultData-lower bound index is not zero!"); errorDescriptionDict.Add(713, "Error: UserData has invalid size!"); errorDescriptionDict.Add(714, "Error: UserData-lower bound index is not zero!"); + errorDescriptionDict.Add(715, "Empty job name inserted!"); + errorDescriptionDict.Add(716, "Index of UserData in method SetUserDataAsString exceeds the size hardware structure mapped!"); + errorDescriptionDict.Add(717, "Index of UserData in method SetUserDataAsString exceeds the defined size!"); + errorDescriptionDict.Add(718, "Change job by name failed. Check the value of the InspectionStatus.Error code!"); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); + //errorDescriptionDict.Add(7, ""); @@ -95,13 +121,51 @@ public string ActionDescription actionDescriptionDict.Add(307, "Continous reading active: New data read."); actionDescriptionDict.Add(308, "Clearing of the inspection results restored."); actionDescriptionDict.Add(309, "Reading restored."); + actionDescriptionDict.Add(310, "Change job by name started."); + actionDescriptionDict.Add(311, "Change job by name running."); + actionDescriptionDict.Add(312, "Change job by name was completed successfully."); + actionDescriptionDict.Add(313, "Change job by name restored."); + actionDescriptionDict.Add(314, "Change job by number started."); + actionDescriptionDict.Add(315, "Change job by number running."); + actionDescriptionDict.Add(316, "Change job by number was completed successfully."); + actionDescriptionDict.Add(317, "Change job by number restored."); - actionDescriptionDict.Add(600 , "Clearing of the inspection results was aborted, while not yet completed!"); - actionDescriptionDict.Add(601 ,"Reading was aborted, while not yet completed!"); + actionDescriptionDict.Add(600, "Clearing of the inspection results was aborted, while not yet completed!"); + actionDescriptionDict.Add(601, "Reading was aborted, while not yet completed!"); + actionDescriptionDict.Add(602, "Change job by name was aborted, while not yet completed!"); + actionDescriptionDict.Add(603, "Change job by number was aborted, while not yet completed!"); + //actionDescriptionDict.Add(604, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(606, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + //actionDescriptionDict.Add(605, ""); + + actionDescriptionDict.Add(700, "Clearing of the inspection results finished with error!"); + actionDescriptionDict.Add(701, "Reading finished with error!"); + actionDescriptionDict.Add(702, "Change job by name finished with error!"); + actionDescriptionDict.Add(703, "Change job by number finished with error!"); + //actionDescriptionDict.Add(704, ""); + //actionDescriptionDict.Add(705, ""); + //actionDescriptionDict.Add(706, ""); + //actionDescriptionDict.Add(706, ""); + //actionDescriptionDict.Add(706, ""); - actionDescriptionDict.Add(700 , "Clearing of the inspection results finished with error!"); - actionDescriptionDict.Add(701 ,"Reading finished with error!"); } string actionDescription = " "; diff --git a/src/integrations/ctrl/insight.mon b/src/integrations/ctrl/insight.mon new file mode 100644 index 000000000..3db4e748c --- /dev/null +++ b/src/integrations/ctrl/insight.mon @@ -0,0 +1,12 @@ +AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask._progress +AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask._jobName +#AxoCognexVisionInsightExampleContext.MyInsight.Status.Action.Id +#AxoCognexVisionInsightExampleContext.MyInsight.Status.Error.Id +#AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask +#AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask._infoTimer +#AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask._errorTimer +AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask.SetUserDataAsString()._index +AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask.SetUserDataAsString()._size +AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask.SetUserDataAsString()._maxIndex +#AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask.SetUserDataAsString.inPosition +#AxoCognexVisionInsightExampleContext.MyInsight.ChangeJobByNameTask.SetUserDataAsString.