diff --git a/src/components.cognex.vision/ctrl/src/AxoDataman/v_6_0_0/AxoDataman.st b/src/components.cognex.vision/ctrl/src/AxoDataman/v_6_0_0/AxoDataman.st index 0cc78e59b..96109df2c 100644 --- a/src/components.cognex.vision/ctrl/src/AxoDataman/v_6_0_0/AxoDataman.st +++ b/src/components.cognex.vision/ctrl/src/AxoDataman/v_6_0_0/AxoDataman.st @@ -634,7 +634,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 300; END_IF; - + // Clear reasult data running: reseting the result data. IF _progress = 300 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#500, eAxoMessageCategory#Warning); @@ -655,7 +655,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 301; END_IF; - + // Clear reasult data running: reseting the result data. IF _progress = 301 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#501, eAxoMessageCategory#Warning); @@ -667,7 +667,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 302; END_IF; END_IF; - + // Clear reasult data finished. IF _progress = 302 THEN ResultsControl.ResultsAcknowledge := FALSE; ClearResultDataTask.DoneWhen(TRUE); @@ -718,7 +718,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 310; END_IF; END_IF; - + // Reading running: enabling triger. IF _progress = 310 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#510, eAxoMessageCategory#Warning); @@ -735,7 +735,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 311; END_IF; END_IF; - + // Reading running: waiting for the triger ready. IF _progress = 311 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#511, eAxoMessageCategory#Warning); @@ -747,7 +747,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 312; END_IF; END_IF; - + // Reading running: waiting for the triger acknowledged. IF _progress = 312 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#512, eAxoMessageCategory#Warning); @@ -761,7 +761,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 313; END_IF; END_IF; - + // Reading running: waiting for the results available. IF _progress = 313 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#513, eAxoMessageCategory#Warning); @@ -773,7 +773,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 314; END_IF; END_IF; - + // Reading running: evaluating the result data. IF _progress = 314 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#514, eAxoMessageCategory#Warning); @@ -793,7 +793,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 315; END_IF; END_IF; - + // Reading running: processing the result data. IF _progress = 315 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#515, eAxoMessageCategory#Warning); @@ -809,7 +809,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 ResultData.DataChanged := NOT ResultData.DataChanged ; _progress := 316; END_IF; - + // Reading finished. IF _progress = 316 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#516, eAxoMessageCategory#Warning); @@ -822,7 +822,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 ReadTask.DoneWhen(TRUE); _progress := 0; END_IF; - + // Reading running: error detected, reseting trigger. IF _progress = 319 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#519, eAxoMessageCategory#Warning); @@ -838,7 +838,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 320; END_IF; END_IF; - + // Reading running: error detected, reseting error. IF _progress = 320 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#520, eAxoMessageCategory#Warning); @@ -851,7 +851,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 321; END_IF; END_IF; - + // Reading running: error detected, reseting error. IF _progress = 321 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#521, eAxoMessageCategory#Warning); diff --git a/src/components.cognex.vision/ctrl/src/AxoInsight/v_24_0_0/AxoInsight.st b/src/components.cognex.vision/ctrl/src/AxoInsight/v_24_0_0/AxoInsight.st index d3eb478ae..8813a0b9e 100644 --- a/src/components.cognex.vision/ctrl/src/AxoInsight/v_24_0_0/AxoInsight.st +++ b/src/components.cognex.vision/ctrl/src/AxoInsight/v_24_0_0/AxoInsight.st @@ -1164,7 +1164,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 THIS.CallTimers(FALSE); _progress := 300; END_IF; - + // Clearing of the inspection results running: reseting the inspection result buffer. IF _progress = 300 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#500, eAxoMessageCategory#Warning); @@ -1185,7 +1185,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 THIS.CallTimers(FALSE); _progress := 301; END_IF; - + // Clearing of the inspection results running: waiting for the result data is cleared on device side. IF _progress = 301 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#501, eAxoMessageCategory#Warning); @@ -1197,7 +1197,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 302; END_IF; END_IF; - + // Clearing of the inspection results finished. IF _progress = 302 THEN InspectionControl.AcknowledgeInspectionResults := TRUE; ClearInspectionResultsTask.DoneWhen(TRUE); @@ -1243,7 +1243,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 THIS.CallTimers(FALSE); _progress := 310; END_IF; - + // Trigger running: enabling trigger. IF _progress = 310 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#510, eAxoMessageCategory#Warning); @@ -1264,7 +1264,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 CommandControl.Command:= UINT#0; _progress := 311; END_IF; - + // Trigger running: waiting for the device to be ready. IF _progress = 311 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#511, eAxoMessageCategory#Warning); @@ -1277,7 +1277,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress :=312; END_IF; END_IF; - + // Trigger running: waiting for the previous data is cleared. IF _progress = 312 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#512, eAxoMessageCategory#Warning); @@ -1290,7 +1290,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 313; END_IF; END_IF; - + // Trigger running: waiting for the reseting the previous cycle error state. IF _progress = 313 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#513, eAxoMessageCategory#Warning); @@ -1303,7 +1303,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 314; END_IF; END_IF; - + // Trigger running: waiting for the device to be ready for the new inspection cycle. IF _progress = 314 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#514, eAxoMessageCategory#Warning); @@ -1316,7 +1316,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 315; END_IF; END_IF; - + // Trigger running: waiting for the trigger to be enabled. IF _progress = 315 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#515, eAxoMessageCategory#Warning); @@ -1329,7 +1329,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 316; END_IF; END_IF; - + // Trigger running: waiting for the inspection to be completed. IF _progress = 316 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#516, eAxoMessageCategory#Warning); @@ -1342,7 +1342,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 317; END_IF; END_IF; - + // Trigger running: waiting for the inspection to be valid. IF _progress = 317 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#517, eAxoMessageCategory#Warning); @@ -1354,7 +1354,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 318; END_IF; END_IF; - + // Trigger running: parsing the inspection results. IF _progress = 318 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#518, eAxoMessageCategory#Warning); @@ -1435,7 +1435,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 InspectionResults.DataChanged := NOT InspectionResults.DataChanged ; _progress := 319; END_IF; - + // Trigger finished. IF _progress = 319 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#519, eAxoMessageCategory#Warning); @@ -1450,7 +1450,6 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 0; END_IF; - THIS.CallTimers(TRUE); TriggerTask.ThrowWhen(_errorTimer.output); @@ -1492,7 +1491,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 THIS.CallTimers(FALSE); _progress := 320; END_IF; - + // Change job by name running: checking the job name. IF _progress = 320 THEN THIS.CallTimers(FALSE); IF _jobName='' THEN @@ -1503,7 +1502,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 321; END_IF; END_IF; - + // Change job by name running: waiting for the previous action is finished. IF _progress = 321 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#521, eAxoMessageCategory#Warning); @@ -1518,7 +1517,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 322; END_IF; END_IF; - + // Change job by name running: waiting for the device to be ready. IF _progress = 322 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#522, eAxoMessageCategory#Warning); @@ -1531,7 +1530,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 323; END_IF; END_IF; - + // Change job by name running: reseting the error. IF _progress = 323 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#523, eAxoMessageCategory#Warning); @@ -1546,7 +1545,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 324; END_IF; END_IF; - + // Change job by name running: filling the user data with the job name. IF _progress = 324 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#524, eAxoMessageCategory#Warning); @@ -1568,7 +1567,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 325; END_IF; END_IF; - + // Change job by name running: writing the job name to the device. IF _progress = 325 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#525, eAxoMessageCategory#Warning); @@ -1587,7 +1586,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 326; END_IF; END_IF; - + // Change job by name running: waiting for the job name is received. IF _progress = 326 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#526, eAxoMessageCategory#Warning); @@ -1604,7 +1603,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 327; END_IF; END_IF; - + // Change job by name running: waiting for the command is completed. IF _progress = 327 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#527, eAxoMessageCategory#Warning); @@ -1622,7 +1621,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 339; END_IF; END_IF; - + // Change job by name running: waiting for the command complete acknowledged. IF _progress = 328 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#528, eAxoMessageCategory#Warning); @@ -1637,7 +1636,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 329; END_IF; END_IF; - + // Change job by name running: waiting for the device to be online. IF _progress = 329 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#529, eAxoMessageCategory#Warning); @@ -1651,7 +1650,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 330; END_IF; END_IF; - + // Change job by name finished. IF _progress = 330 THEN Status.CurrentJobName := _jobName; InspectionControl.ExecuteCommand := FALSE; @@ -1661,7 +1660,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 ChangeJobByNameTask.DoneWhen(TRUE); _progress := 0; END_IF; - + // Change job by name finished with an error. IF _progress = 339 THEN InspectionControl.ExecuteCommand := FALSE; AcquisitionControl.SetOffline := FALSE; @@ -1709,7 +1708,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 THIS.CallTimers(FALSE); _progress := 340; END_IF; - + // Change job by number running: checking the job number. IF _progress = 340 THEN THIS.CallTimers(FALSE); @@ -1723,7 +1722,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 341; END_IF; END_IF; - + // Change job by number running: waiting for the previous action is finished. IF _progress = 341 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#541, eAxoMessageCategory#Warning); @@ -1738,7 +1737,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 342; END_IF; END_IF; - + // Change job by number running: waiting for the device to be offline. IF _progress = 342 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#542, eAxoMessageCategory#Warning); @@ -1751,7 +1750,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 343; END_IF; END_IF; - + // Change job by number running: reseting the error. IF _progress = 343 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#543, eAxoMessageCategory#Warning); @@ -1766,7 +1765,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 344; END_IF; END_IF; - + // Change job by number runningg: waiting for the command is completed. IF _progress = 344 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#544, eAxoMessageCategory#Warning); @@ -1784,7 +1783,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 349; END_IF; END_IF; - + // Change job by number running: waiting for the command complete acknowledged. IF _progress = 345 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#545, eAxoMessageCategory#Warning); @@ -1799,7 +1798,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 346; END_IF; END_IF; - + // Change job by number running: waiting for the device to be online. IF _progress = 346 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#546, eAxoMessageCategory#Warning); @@ -1812,7 +1811,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 347; END_IF; END_IF; - + // Change job by number finished. IF _progress = 347 THEN Status.CurrentJobNumber := _jobNumber; InspectionControl.ExecuteCommand := FALSE; @@ -1822,7 +1821,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 ChangeJobByNumberTask.DoneWhen(TRUE); _progress := 0; END_IF; - + // Change job by number finished with an error. IF _progress = 349 THEN InspectionControl.ExecuteCommand := FALSE; AcquisitionControl.SetOffline := FALSE; @@ -1868,7 +1867,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 THIS.CallTimers(FALSE); _progress := 350; END_IF; - + // SoftEvent running: checking the soft event number. IF _progress = 350 THEN THIS.CallTimers(FALSE); IF _softEventNumber > UINT#7 THEN @@ -1879,7 +1878,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 351; END_IF; END_IF; - + // SoftEvent running: checking the soft event number. IF _progress = 351 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#551, eAxoMessageCategory#Warning); @@ -1887,7 +1886,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 END_IF; _progress := 352; END_IF; - + // SoftEvent running: waiting for the soft event is finished. IF _progress = 352 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#552, eAxoMessageCategory#Warning); @@ -1902,7 +1901,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 353; END_IF; END_IF; - + // SoftEvent running: waiting for the soft event is acknowledged. IF _progress = 353 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#553, eAxoMessageCategory#Warning); @@ -1917,7 +1916,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 354; END_IF; END_IF; - + // SoftEvent finished. IF _progress = 354 THEN SoftEventTask.DoneWhen(TRUE); _progress := 0; @@ -1961,7 +1960,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 THIS.CallTimers(FALSE); _progress := 360; END_IF; - + // SendData running: filling the user data buffer. IF _progress = 360 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#560, eAxoMessageCategory#Warning); @@ -1977,7 +1976,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 361; END_IF; END_IF; - + // SendData running: sending the user data to the device. IF _progress = 361 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#561, eAxoMessageCategory#Warning); @@ -1991,7 +1990,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 362; END_IF; END_IF; - + // SendData running: waiting for the user is acknowledged. IF _progress = 362 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#562, eAxoMessageCategory#Warning); @@ -2005,56 +2004,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_24_0_0 _progress := 363; END_IF; END_IF; - + // SendData finished. IF _progress = 363 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#563, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#563; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 364; - END_IF; - END_IF; - - IF _progress = 364 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#564, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#564; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 365; - END_IF; - END_IF; - - IF _progress = 365 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#565, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#565; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 366; - END_IF; - END_IF; - - IF _progress = 366 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#566, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#566; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 367; - END_IF; - END_IF; - - IF _progress = 367 THEN SendUserDataTask.DoneWhen(TRUE); _progress := 0; END_IF; 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 6c36cb724..a922e956d 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 @@ -757,7 +757,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 300; END_IF; - + // Clearing of the inspection results running: reseting the inspection result buffer. IF _progress = 300 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#500, eAxoMessageCategory#Warning); @@ -778,7 +778,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 301; END_IF; - + // Clearing of the inspection results running: waiting for the result data is cleared on device side. IF _progress = 301 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#501, eAxoMessageCategory#Warning); @@ -790,7 +790,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 302; END_IF; END_IF; - + // Clearing of the inspection results finished. IF _progress = 302 THEN InspectionControl.AcknowledgeInspectionResults := TRUE; ClearInspectionResultsTask.DoneWhen(TRUE); @@ -837,7 +837,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 310; END_IF; - + // Trigger running: enabling trigger. IF _progress = 310 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#510, eAxoMessageCategory#Warning); @@ -858,7 +858,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 CommandControl.Command:= UINT#0; _progress := 311; END_IF; - + // Trigger running: waiting for the device to be ready. IF _progress = 311 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#511, eAxoMessageCategory#Warning); @@ -871,7 +871,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress :=312; END_IF; END_IF; - + // Trigger running: waiting for the previous data is cleared. IF _progress = 312 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#512, eAxoMessageCategory#Warning); @@ -884,7 +884,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 313; END_IF; END_IF; - + // Trigger running: waiting for the reseting the previous cycle error state. IF _progress = 313 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#513, eAxoMessageCategory#Warning); @@ -897,7 +897,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 314; END_IF; END_IF; - + // Trigger running: waiting for the device to be ready for the new inspection cycle. IF _progress = 314 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#514, eAxoMessageCategory#Warning); @@ -910,7 +910,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 315; END_IF; END_IF; - + // Trigger running: waiting for the trigger to be enabled. IF _progress = 315 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#515, eAxoMessageCategory#Warning); @@ -923,7 +923,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 316; END_IF; END_IF; - + // Trigger running: waiting for the inspection to be completed. IF _progress = 316 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#516, eAxoMessageCategory#Warning); @@ -936,7 +936,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 317; END_IF; END_IF; - + // Trigger running: waiting for the inspection to be valid. IF _progress = 317 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#517, eAxoMessageCategory#Warning); @@ -948,7 +948,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 318; END_IF; END_IF; - + // Trigger running: parsing the inspection results. IF _progress = 318 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#518, eAxoMessageCategory#Warning); @@ -964,7 +964,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 InspectionResults.DataChanged := NOT InspectionResults.DataChanged ; _progress := 319; END_IF; - + // Trigger finished. IF _progress = 319 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#519, eAxoMessageCategory#Warning); @@ -979,7 +979,6 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 0; END_IF; - THIS.CallTimers(TRUE); TriggerTask.ThrowWhen(_errorTimer.output); @@ -1021,7 +1020,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 320; END_IF; - + // Change job by name running: checking the job name. IF _progress = 320 THEN THIS.CallTimers(FALSE); IF _jobName='' THEN @@ -1032,7 +1031,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 321; END_IF; END_IF; - + // Change job by name running: waiting for the previous action is finished. IF _progress = 321 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#521, eAxoMessageCategory#Warning); @@ -1047,7 +1046,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 322; END_IF; END_IF; - + // Change job by name running: waiting for the device to be ready. IF _progress = 322 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#522, eAxoMessageCategory#Warning); @@ -1060,7 +1059,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 323; END_IF; END_IF; - + // Change job by name running: reseting the error. IF _progress = 323 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#523, eAxoMessageCategory#Warning); @@ -1075,7 +1074,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 324; END_IF; END_IF; - + // Change job by name running: filling the user data with the job name. IF _progress = 324 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#524, eAxoMessageCategory#Warning); @@ -1097,7 +1096,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 325; END_IF; END_IF; - + // Change job by name running: writing the job name to the device. IF _progress = 325 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#525, eAxoMessageCategory#Warning); @@ -1116,7 +1115,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 326; END_IF; END_IF; - + // Change job by name running: waiting for the job name is received. IF _progress = 326 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#526, eAxoMessageCategory#Warning); @@ -1133,7 +1132,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 327; END_IF; END_IF; - + // Change job by name running: waiting for the command is completed. IF _progress = 327 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#527, eAxoMessageCategory#Warning); @@ -1151,7 +1150,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 339; END_IF; END_IF; - + // Change job by name running: waiting for the command complete acknowledged. IF _progress = 328 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#528, eAxoMessageCategory#Warning); @@ -1166,7 +1165,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 329; END_IF; END_IF; - + // Change job by name running: waiting for the device to be online. IF _progress = 329 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#529, eAxoMessageCategory#Warning); @@ -1180,7 +1179,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 330; END_IF; END_IF; - + // Change job by name finished. IF _progress = 330 THEN Status.CurrentJobName := _jobName; InspectionControl.ExecuteCommand := FALSE; @@ -1190,7 +1189,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 ChangeJobByNameTask.DoneWhen(TRUE); _progress := 0; END_IF; - + // Change job by name finished with an error. IF _progress = 339 THEN InspectionControl.ExecuteCommand := FALSE; AcquisitionControl.SetOffline := FALSE; @@ -1238,7 +1237,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 340; END_IF; - + // Change job by number running: checking the job number. IF _progress = 340 THEN THIS.CallTimers(FALSE); @@ -1252,7 +1251,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 341; END_IF; END_IF; - + // Change job by number running: waiting for the previous action is finished. IF _progress = 341 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#541, eAxoMessageCategory#Warning); @@ -1267,7 +1266,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 342; END_IF; END_IF; - + // Change job by number running: waiting for the device to be offline. IF _progress = 342 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#542, eAxoMessageCategory#Warning); @@ -1280,7 +1279,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 343; END_IF; END_IF; - + // Change job by number running: reseting the error. IF _progress = 343 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#543, eAxoMessageCategory#Warning); @@ -1295,7 +1294,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 344; END_IF; END_IF; - + // Change job by number runningg: waiting for the command is completed. IF _progress = 344 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#544, eAxoMessageCategory#Warning); @@ -1313,7 +1312,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 349; END_IF; END_IF; - + // Change job by number running: waiting for the command complete acknowledged. IF _progress = 345 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#545, eAxoMessageCategory#Warning); @@ -1328,7 +1327,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 346; END_IF; END_IF; - + // Change job by number running: waiting for the device to be online. IF _progress = 346 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#546, eAxoMessageCategory#Warning); @@ -1341,7 +1340,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 347; END_IF; END_IF; - + // Change job by number finished. IF _progress = 347 THEN Status.CurrentJobNumber := _jobNumber; InspectionControl.ExecuteCommand := FALSE; @@ -1351,7 +1350,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 ChangeJobByNumberTask.DoneWhen(TRUE); _progress := 0; END_IF; - + // Change job by number finished with an error. IF _progress = 349 THEN InspectionControl.ExecuteCommand := FALSE; AcquisitionControl.SetOffline := FALSE; @@ -1397,7 +1396,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 350; END_IF; - + // SoftEvent running: checking the soft event number. IF _progress = 350 THEN THIS.CallTimers(FALSE); IF _softEventNumber > UINT#7 THEN @@ -1408,7 +1407,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 351; END_IF; END_IF; - + // SoftEvent running: checking the soft event number. IF _progress = 351 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#551, eAxoMessageCategory#Warning); @@ -1416,7 +1415,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 END_IF; _progress := 352; END_IF; - + // SoftEvent running: waiting for the soft event is finished. IF _progress = 352 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#552, eAxoMessageCategory#Warning); @@ -1431,7 +1430,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 353; END_IF; END_IF; - + // SoftEvent running: waiting for the soft event is acknowledged. IF _progress = 353 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#553, eAxoMessageCategory#Warning); @@ -1446,7 +1445,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 354; END_IF; END_IF; - + // SoftEvent finished. IF _progress = 354 THEN SoftEventTask.DoneWhen(TRUE); _progress := 0; @@ -1490,7 +1489,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 THIS.CallTimers(FALSE); _progress := 360; END_IF; - + // SendData running: filling the user data buffer. IF _progress = 360 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#560, eAxoMessageCategory#Warning); @@ -1506,7 +1505,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 361; END_IF; END_IF; - + // SendData running: sending the user data to the device. IF _progress = 361 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#561, eAxoMessageCategory#Warning); @@ -1520,7 +1519,7 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 362; END_IF; END_IF; - + // SendData running: waiting for the user is acknowledged. IF _progress = 362 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#562, eAxoMessageCategory#Warning); @@ -1534,56 +1533,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision.v_6_0_0_0 _progress := 363; END_IF; END_IF; - + // SendData finished. IF _progress = 363 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#563, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#563; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 364; - END_IF; - END_IF; - - IF _progress = 364 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#564, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#564; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 365; - END_IF; - END_IF; - - IF _progress = 365 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#565, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#565; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 366; - END_IF; - END_IF; - - IF _progress = 366 THEN - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#566, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#566; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 367; - END_IF; - END_IF; - - IF _progress = 367 THEN SendUserDataTask.DoneWhen(TRUE); _progress := 0; END_IF; diff --git a/src/components.cognex.vision/ctrl/src/AxoVisionPro/AxoVisionPro.st b/src/components.cognex.vision/ctrl/src/AxoVisionPro/AxoVisionPro.st index ca65fd726..c7c524654 100644 --- a/src/components.cognex.vision/ctrl/src/AxoVisionPro/AxoVisionPro.st +++ b/src/components.cognex.vision/ctrl/src/AxoVisionPro/AxoVisionPro.st @@ -70,41 +70,6 @@ NAMESPACE AXOpen.Components.Cognex.Vision {#ix-set:AttributeName = "<#SendResults length (service mode)#>"} SendResultsLengthServiceMode : UINT; END_VAR - - // VAR PUBLIC // TEMPLATE TASKS - // {#ix-attr:[Container(Layout.Wrap)]} - // {#ix-attr:[ComponentDetails("Template tasks")]} - // {#ix-set:AttributeName = "<#TemplateTask_10steps_4#>"} - // TemplateTask_10steps_4 : AXOpen.Core.AxoTask; - // {#ix-attr:[Container(Layout.Wrap)]} - // {#ix-attr:[ComponentDetails("Template tasks")]} - // {#ix-set:AttributeName = "<#TemplateTask_10steps_5#>"} - // TemplateTask_10steps_5 : AXOpen.Core.AxoTask; - // {#ix-attr:[Container(Layout.Wrap)]} - // {#ix-attr:[ComponentDetails("Template tasks")]} - // {#ix-set:AttributeName = "<#TemplateTask_10steps_6#>"} - // TemplateTask_10steps_6 : AXOpen.Core.AxoTask; - - - - // {#ix-attr:[Container(Layout.Wrap)]} - // {#ix-attr:[ComponentDetails("Template tasks")]} - // {#ix-set:AttributeName = "<#TemplateTask_20steps_3#>"} - // TemplateTask_20steps_3 : AXOpen.Core.AxoTask; - // {#ix-attr:[Container(Layout.Wrap)]} - // {#ix-attr:[ComponentDetails("Template tasks")]} - // {#ix-set:AttributeName = "<#TemplateTask_20steps_4#>"} - // TemplateTask_20steps_4 : AXOpen.Core.AxoTask; - // {#ix-attr:[Container(Layout.Wrap)]} - // {#ix-attr:[ComponentDetails("Template tasks")]} - // {#ix-set:AttributeName = "<#TemplateTask_20steps_5#>"} - // TemplateTask_20steps_5 : AXOpen.Core.AxoTask; - // {#ix-attr:[Container(Layout.Wrap)]} - // {#ix-attr:[ComponentDetails("Template tasks")]} - // {#ix-set:AttributeName = "<#TemplateTask_20steps_6#>"} - // TemplateTask_20steps_6 : AXOpen.Core.AxoTask; - - // END_VAR VAR PUBLIC // CONFIG {#ix-attr:[Container(Layout.Stack)]} @@ -1095,16 +1060,9 @@ NAMESPACE AXOpen.Components.Cognex.Vision HardResetAllCamerasTask.Run(THIS); ResetTask.Run(THIS); TriggerTask.Run(THIS); - // TemplateTask_10steps_4.Run(THIS); - // TemplateTask_10steps_5.Run(THIS); - // TemplateTask_10steps_6.Run(THIS); ReadResultsTask.Run(THIS); SendDataTask.Run(THIS); - // TemplateTask_20steps_3.Run(THIS); - // TemplateTask_20steps_4.Run(THIS); - // TemplateTask_20steps_5.Run(THIS); - // TemplateTask_20steps_6.Run(THIS); - + //**************************************** //********************Diagnostics********* @@ -1132,8 +1090,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision THIS.CallTimers(FALSE); _progress := 300; END_IF; - - IF _progress = 300 THEN // HardResetAllCamerasTask running: , + // HardResetAllCamerasTask running: waiting for the job id set. + IF _progress = 300 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#500, eAxoMessageCategory#Warning); Status.Error.Id := UINT#500; @@ -1169,11 +1127,11 @@ NAMESPACE AXOpen.Components.Cognex.Vision THIS.CallTimers(FALSE); _progress := 301; ELSE - _progress := 309; + _progress := 302; END_IF; END_IF; - - IF _progress = 301 THEN // HardResetAllCamerasTask running: , + // HardResetAllCamerasTask running: waiting for the job id cleared. + IF _progress = 301 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#501, eAxoMessageCategory#Warning); Status.Error.Id := UINT#501; @@ -1185,95 +1143,11 @@ NAMESPACE AXOpen.Components.Cognex.Vision IF Inputs.Status.CurentJobID = WORD#0 THEN WriteMemory(area := WriteArea#Output,byteOffset := TO_DINT(outputsAddress), bitOffset := INT#4, value:= FALSE); THIS.CallTimers(FALSE); - _progress := 309; - END_IF; - END_IF; - - IF _progress = 302 THEN // HardResetAllCamerasTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#502, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#502; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 303; - END_IF; - END_IF; - - IF _progress = 303 THEN // HardResetAllCamerasTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#503, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#503; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 304; - END_IF; - END_IF; - - IF _progress = 304 THEN // HardResetAllCamerasTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#504, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#504; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 305; - END_IF; - END_IF; - - IF _progress = 305 THEN // HardResetAllCamerasTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#505, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#505; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 306; - END_IF; - END_IF; - - IF _progress = 306 THEN // HardResetAllCamerasTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#506, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#506; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 307; - END_IF; - END_IF; - - IF _progress = 307 THEN // HardResetAllCamerasTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#507, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#507; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 308; + _progress := 302; END_IF; END_IF; - - IF _progress = 308 THEN // HardResetAllCamerasTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#508, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#508; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 309; - END_IF; - END_IF; - - IF _progress = 309 THEN // HardResetAllCamerasTask running: , + // HardResetAllCamerasTask finished. + IF _progress = 302 THEN HardResetAllCamerasTask.DoneWhen(TRUE); _progress := 0; END_IF; @@ -1317,8 +1191,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision THIS.CallTimers(FALSE); _progress := 310; END_IF; - - IF _progress = 310 THEN // ResetTask running: , + // ResetTask running: checking if the data buffer is free. + IF _progress = 310 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#510, eAxoMessageCategory#Warning); Status.Error.Id := UINT#510; @@ -1340,8 +1214,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 312; END_IF; END_IF; - - IF _progress = 311 THEN // ResetTask running: , + // ResetTask running: writing the user data. + IF _progress = 311 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#511, eAxoMessageCategory#Warning); Status.Error.Id := UINT#511; @@ -1359,8 +1233,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 312; END_IF; END_IF; - - IF _progress = 312 THEN // ResetTask running: , + // ResetTask running: checking if the data buffer is free. + IF _progress = 312 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#512, eAxoMessageCategory#Warning); Status.Error.Id := UINT#512; @@ -1374,8 +1248,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 314; END_IF; END_IF; - - IF _progress = 313 THEN // ResetTask running: , + // ResetTask running: releasing the data buffer. + IF _progress = 313 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#513, eAxoMessageCategory#Warning); Status.Error.Id := UINT#513; @@ -1396,68 +1270,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 314; END_IF; END_IF; - - IF _progress = 314 THEN // ResetTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#514, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#514; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 315; - END_IF; - END_IF; - - IF _progress = 315 THEN // ResetTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#515, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#515; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 316; - END_IF; - END_IF; - - IF _progress = 316 THEN // ResetTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#516, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#516; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 317; - END_IF; - END_IF; - - IF _progress = 317 THEN // ResetTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#517, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#517; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 318; - END_IF; - END_IF; - - IF _progress = 318 THEN // ResetTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#518, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#518; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 319; - END_IF; - END_IF; - - IF _progress = 319 THEN // ResetTask running: , + // ResetTask finished. + IF _progress = 314 THEN ResetTask.DoneWhen(TRUE); _progress := 0; END_IF; @@ -1501,8 +1315,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision THIS.CallTimers(FALSE); _progress := 320; END_IF; - - IF _progress = 320 THEN // TriggerTask running: , Waiting for system ready + // TriggerTask running: waiting for the system to be ready. + IF _progress = 320 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#520, eAxoMessageCategory#Warning); Status.Error.Id := UINT#520; @@ -1517,8 +1331,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 321; END_IF; END_IF; - - IF _progress = 321 THEN // TriggerTask running: , Waiting for online + // TriggerTask running: waiting for the system to be online. + IF _progress = 321 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#521, eAxoMessageCategory#Warning); Status.Error.Id := UINT#521; @@ -1529,8 +1343,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 322; END_IF; END_IF; - - IF _progress = 322 THEN // TriggerTask running: , camera reset before trigger + // TriggerTask running: reseting camera before trigger started. + IF _progress = 322 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#522, eAxoMessageCategory#Warning); Status.Error.Id := UINT#522; @@ -1544,8 +1358,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 323; END_IF; END_IF; - - IF _progress = 323 THEN // TriggerTask running: , trigger set + // TriggerTask running: reseting the trigger. + IF _progress = 323 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#523, eAxoMessageCategory#Warning); Status.Error.Id := UINT#523; @@ -1557,8 +1371,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 324; END_IF; END_IF; - - IF _progress = 324 THEN // TriggerTask running: , wait for trigger ack + // TriggerTask running: setting the trigger and waiting for acknowledgement. + IF _progress = 324 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#524, eAxoMessageCategory#Warning); Status.Error.Id := UINT#524; @@ -1570,8 +1384,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 325; END_IF; END_IF; - - IF _progress = 325 THEN // TriggerTask running: , wait for trigger ack false + // TriggerTask running: resetting the trigger and waiting for acknowledgment to fall. + IF _progress = 325 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#525, eAxoMessageCategory#Warning); Status.Error.Id := UINT#525; @@ -1582,44 +1396,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 326; END_IF; END_IF; - - IF _progress = 326 THEN // TriggerTask running: , trigger done - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#526, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#526; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 327; - END_IF; - END_IF; - - IF _progress = 327 THEN // TriggerTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#527, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#527; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 328; - END_IF; - END_IF; - - IF _progress = 328 THEN // TriggerTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#528, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#528; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 329; - END_IF; - END_IF; - - IF _progress = 329 THEN // TriggerTask running: , + // TriggerTask finished. + IF _progress = 326 THEN TriggerTask.DoneWhen(TRUE); _progress := 0; END_IF; @@ -1649,465 +1427,6 @@ NAMESPACE AXOpen.Components.Cognex.Vision END_IF; //************************************************** - // //*************TemplateTask_10steps_4*************** - // TemplateTask_10steps_4.SetIsDisabled(FALSE); - // IF TemplateTask_10steps_4.StartTriggered() THEN - // Status.Action.Id := UINT#130; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#130,TemplateTask_10steps_4.IsBusy(), eAxoMessageCategory#Info); - // Messenger.ActivateOnCondition(ULINT#131,TemplateTask_10steps_4.IsDone(), eAxoMessageCategory#Info); - // IF TemplateTask_10steps_4.Execute(THIS) THEN - // IF _progress = 0 THEN - // Status.Error.Id := UINT#0; - // TaskMessenger.Restore(); - // THIS.CallTimers(FALSE); - // _progress := 330; - // END_IF; - - // IF _progress = 330 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#530, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#530; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 331; - // END_IF; - // END_IF; - - // IF _progress = 331 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#531, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#531; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 332; - // END_IF; - // END_IF; - - // IF _progress = 332 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#532, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#532; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 333; - // END_IF; - // END_IF; - - // IF _progress = 333 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#533, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#533; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 334; - // END_IF; - // END_IF; - - // IF _progress = 334 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#534, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#534; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 335; - // END_IF; - // END_IF; - - // IF _progress = 335 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#535, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#535; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 336; - // END_IF; - // END_IF; - - // IF _progress = 336 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#536, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#536; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 337; - // END_IF; - // END_IF; - - // IF _progress = 337 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#537, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#537; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 338; - // END_IF; - // END_IF; - - // IF _progress = 338 THEN // TemplateTask_10steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#538, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#538; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 339; - // END_IF; - // END_IF; - - // IF _progress = 339 THEN // TemplateTask_10steps_4 running: , - // TemplateTask_10steps_4.DoneWhen(TRUE); - // _progress := 0; - // END_IF; - - // THIS.CallTimers(TRUE); - - // TemplateTask_10steps_4.ThrowWhen(_errorTimer.output); - // Status.Action.Id := TO_UINT(_progress); - // TemplateTask_10steps_4.ThrowWhen(TemplateTask_10steps_4.Duration >= Config.ErrorTime ,'<#TemplateTask_10steps_4 error.#>'); - // END_IF; - // IF TemplateTask_10steps_4.DoneReached() THEN - // Status.Action.Id := UINT#131; - // Status.Error.Id := UINT#0; - // ELSIF TemplateTask_10steps_4.ErrorOccured() THEN - // Status.Action.Id := UINT#10030; - // Status.Error.Id := UINT#10030; - // ELSIF TemplateTask_10steps_4.AbortTriggered()THEN - // Status.Action.Id := UINT#10031; - // Status.Error.Id := UINT#10031; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#10030,TemplateTask_10steps_4.HasError(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#10031,TemplateTask_10steps_4.IsAborted(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#132,TemplateTask_10steps_4.RestoreTriggered() , eAxoMessageCategory#Error); - // IF TemplateTask_10steps_4.RestoreTriggered() AND _progress >= 330 AND _progress <= 339 THEN - // Status.Action.Id := UINT#132; - // _progress := 0; - // END_IF; - // //************************************************** - - // //*************TemplateTask_10steps_5*************** - // TemplateTask_10steps_5.SetIsDisabled(FALSE); - // IF TemplateTask_10steps_5.StartTriggered() THEN - // Status.Action.Id := UINT#140; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#140,TemplateTask_10steps_5.IsBusy(), eAxoMessageCategory#Info); - // Messenger.ActivateOnCondition(ULINT#141,TemplateTask_10steps_5.IsDone(), eAxoMessageCategory#Info); - // IF TemplateTask_10steps_5.Execute(THIS) THEN - // IF _progress = 0 THEN - // Status.Error.Id := UINT#0; - // TaskMessenger.Restore(); - // THIS.CallTimers(FALSE); - // _progress := 340; - // END_IF; - - // IF _progress = 340 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#540, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#540; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 341; - // END_IF; - // END_IF; - - // IF _progress = 341 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#541, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#541; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 342; - // END_IF; - // END_IF; - - // IF _progress = 342 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#542, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#542; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 343; - // END_IF; - // END_IF; - - // IF _progress = 343 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#543, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#543; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 344; - // END_IF; - // END_IF; - - // IF _progress = 344 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#544, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#544; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 345; - // END_IF; - // END_IF; - - // IF _progress = 345 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#545, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#545; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 346; - // END_IF; - // END_IF; - - // IF _progress = 346 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#546, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#546; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 347; - // END_IF; - // END_IF; - - // IF _progress = 347 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#547, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#547; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 348; - // END_IF; - // END_IF; - - // IF _progress = 348 THEN // TemplateTask_10steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#548, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#548; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 349; - // END_IF; - // END_IF; - - // IF _progress = 349 THEN // TemplateTask_10steps_5 running: , - // TemplateTask_10steps_5.DoneWhen(TRUE); - // _progress := 0; - // END_IF; - - // THIS.CallTimers(TRUE); - - // TemplateTask_10steps_5.ThrowWhen(_errorTimer.output); - // Status.Action.Id := TO_UINT(_progress); - // TemplateTask_10steps_5.ThrowWhen(TemplateTask_10steps_5.Duration >= Config.ErrorTime ,'<#TemplateTask_10steps_5 error.#>'); - // END_IF; - // IF TemplateTask_10steps_5.DoneReached() THEN - // Status.Action.Id := UINT#141; - // Status.Error.Id := UINT#0; - // ELSIF TemplateTask_10steps_5.ErrorOccured() THEN - // Status.Action.Id := UINT#10040; - // Status.Error.Id := UINT#10040; - // ELSIF TemplateTask_10steps_5.AbortTriggered()THEN - // Status.Action.Id := UINT#10041; - // Status.Error.Id := UINT#10041; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#10040,TemplateTask_10steps_5.HasError(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#10041,TemplateTask_10steps_5.IsAborted(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#142,TemplateTask_10steps_5.RestoreTriggered() , eAxoMessageCategory#Error); - // IF TemplateTask_10steps_5.RestoreTriggered() AND _progress >= 340 AND _progress <= 349 THEN - // Status.Action.Id := UINT#142; - // _progress := 0; - // END_IF; - // //************************************************** - - // //*************TemplateTask_10steps_6*************** - // TemplateTask_10steps_6.SetIsDisabled(FALSE); - // IF TemplateTask_10steps_6.StartTriggered() THEN - // Status.Action.Id := UINT#150; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#150,TemplateTask_10steps_6.IsBusy(), eAxoMessageCategory#Info); - // Messenger.ActivateOnCondition(ULINT#151,TemplateTask_10steps_6.IsDone(), eAxoMessageCategory#Info); - // IF TemplateTask_10steps_6.Execute(THIS) THEN - // IF _progress = 0 THEN - // Status.Error.Id := UINT#0; - // TaskMessenger.Restore(); - // THIS.CallTimers(FALSE); - // _progress := 350; - // END_IF; - - // IF _progress = 350 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#550, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#550; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 351; - // END_IF; - // END_IF; - - // IF _progress = 351 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#551, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#551; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 352; - // END_IF; - // END_IF; - - // IF _progress = 352 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#552, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#552; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 335; - // END_IF; - // END_IF; - - // IF _progress = 353 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#553, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#553; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 354; - // END_IF; - // END_IF; - - // IF _progress = 354 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#554, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#554; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 355; - // END_IF; - // END_IF; - - // IF _progress = 355 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#555, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#555; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 356; - // END_IF; - // END_IF; - - // IF _progress = 356 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#556, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#556; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 357; - // END_IF; - // END_IF; - - // IF _progress = 357 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#557, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#557; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 358; - // END_IF; - // END_IF; - - // IF _progress = 358 THEN // TemplateTask_10steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#558, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#558; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 359; - // END_IF; - // END_IF; - - // IF _progress = 359 THEN // TemplateTask_10steps_6 running: , - // TemplateTask_10steps_6.DoneWhen(TRUE); - // _progress := 0; - // END_IF; - - // THIS.CallTimers(TRUE); - - // TemplateTask_10steps_6.ThrowWhen(_errorTimer.output); - // Status.Action.Id := TO_UINT(_progress); - // TemplateTask_10steps_6.ThrowWhen(TemplateTask_10steps_6.Duration >= Config.ErrorTime ,'<#TemplateTask_10steps_6 error.#>'); - // END_IF; - // IF TemplateTask_10steps_6.DoneReached() THEN - // Status.Action.Id := UINT#151; - // Status.Error.Id := UINT#0; - // ELSIF TemplateTask_10steps_6.ErrorOccured() THEN - // Status.Action.Id := UINT#10050; - // Status.Error.Id := UINT#10050; - // ELSIF TemplateTask_10steps_6.AbortTriggered()THEN - // Status.Action.Id := UINT#10051; - // Status.Error.Id := UINT#10051; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#10050,TemplateTask_10steps_6.HasError(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#10051,TemplateTask_10steps_6.IsAborted(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#152,TemplateTask_10steps_6.RestoreTriggered() , eAxoMessageCategory#Error); - // IF TemplateTask_10steps_6.RestoreTriggered() AND _progress >= 350 AND _progress <= 359 THEN - // Status.Action.Id := UINT#152; - // _progress := 0; - // END_IF; - // //************************************************** - //*************ReadResultsTask*************** ReadResultsTask.SetIsDisabled(FALSE); IF ReadResultsTask.StartTriggered() THEN @@ -2122,8 +1441,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision THIS.CallTimers(FALSE); _progress := 360; END_IF; - - IF _progress = 360 THEN // ReadResultsTask running: , Waiting for system ready + // ReadResultsTask running: waiting for the system to be ready. + IF _progress = 360 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#560, eAxoMessageCategory#Warning); Status.Error.Id := UINT#560; @@ -2134,8 +1453,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 361; END_IF; END_IF; - - IF _progress = 361 THEN // ReadResultsTask running: , Waiting for online + // ReadResultsTask running: waiting for the system to be online. + IF _progress = 361 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#561, eAxoMessageCategory#Warning); Status.Error.Id := UINT#561; @@ -2146,8 +1465,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 362; END_IF; END_IF; - - IF _progress = 362 THEN // ReadResultsTask running: , check correct JOBID + // ReadResultsTask running: checking the correct JobId. + IF _progress = 362 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#562, eAxoMessageCategory#Warning); Status.Error.Id := UINT#562; @@ -2158,8 +1477,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 363; END_IF; END_IF; - - IF _progress = 363 THEN // ReadResultsTask running: , Wait for free Data Buffer + // ReadResultsTask running: waiting for the data buffer is free. + IF _progress = 363 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#563, eAxoMessageCategory#Warning); Status.Error.Id := UINT#563; @@ -2177,10 +1496,9 @@ NAMESPACE AXOpen.Components.Cognex.Vision WriteMemory(area := WriteArea#Output,byteOffset := TO_DINT(outputsAddress) + DINT#2,value:= Outputs.Control.JobLoadID); _progress := 364; END_IF; - END_IF; - - IF _progress = 364 THEN // ReadResultsTask running: , Lock Data Buffer + // ReadResultsTask running: locking the data buffer. + IF _progress = 364 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#564, eAxoMessageCategory#Warning); Status.Error.Id := UINT#564; @@ -2191,8 +1509,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 365; END_IF; END_IF; - - IF _progress = 365 THEN // ReadResultsTask running: , set bit user data + // ReadResultsTask running: setting the user data. + IF _progress = 365 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#565, eAxoMessageCategory#Warning); Status.Error.Id := UINT#565; @@ -2209,8 +1527,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 366; END_IF; END_IF; - - IF _progress = 366 THEN // ReadResultsTask running: , wait for result valid + // ReadResultsTask running: waiting for the results to be valid. + IF _progress = 366 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#566, eAxoMessageCategory#Warning); Status.Error.Id := UINT#566; @@ -2221,32 +1539,20 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 367; END_IF; END_IF; - - IF _progress = 367 THEN // ReadResultsTask running: , calculate size variant data + // ReadResultsTask running: calculating the size of the data. + IF _progress = 367 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#567, eAxoMessageCategory#Warning); Status.Error.Id := UINT#567; END_IF; Inputs.Status.ReadedDataVariantSize := _readResultsLength; - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 368; - END_IF; - END_IF; - - IF _progress = 368 THEN // ReadResultsTask running: , check HW correct config - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#568, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#568; - END_IF; - IF TRUE THEN THIS.CallTimers(FALSE); _progress := 369; END_IF; END_IF; - - IF _progress = 369 THEN // ReadResultsTask running: , move data from HW to byte buffer + // ReadResultsTask running: copying the data from hardware to the buffer. + IF _progress = 369 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#569, eAxoMessageCategory#Warning); Status.Error.Id := UINT#569; @@ -2405,8 +1711,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 370; END_IF; END_IF; - - IF _progress = 370 THEN // ReadResultsTask running: , Read Data + // ReadResultsTask running: reading the data. + IF _progress = 370 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#570, eAxoMessageCategory#Warning); Status.Error.Id := UINT#570; @@ -2417,8 +1723,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 371; END_IF; END_IF; - - IF _progress = 371 THEN // ReadResultsTask running: , set release result data ack + // ReadResultsTask running: acknowledging the result data. + IF _progress = 371 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#571, eAxoMessageCategory#Warning); Status.Error.Id := UINT#571; @@ -2435,8 +1741,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 372; END_IF; END_IF; - - IF _progress = 372 THEN // ReadResultsTask running: , set for free Data Buffer + // ReadResultsTask running: reseting the job load Id. + IF _progress = 372 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#572, eAxoMessageCategory#Warning); Status.Error.Id := UINT#572; @@ -2451,8 +1757,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 373; END_IF; END_IF; - - IF _progress = 373 THEN // ReadResultsTask running: , set bit user data + // ReadResultsTask running: loading the job. + IF _progress = 373 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#573, eAxoMessageCategory#Warning); Status.Error.Id := UINT#573; @@ -2470,68 +1776,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 374; END_IF; END_IF; - - IF _progress = 374 THEN // ReadResultsTask running: , set release Locker - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#574, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#574; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 375; - END_IF; - END_IF; - - IF _progress = 375 THEN // ReadResultsTask running: , Result ack - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#575, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#575; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 376; - END_IF; - END_IF; - - IF _progress = 376 THEN // ReadResultsTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#576, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#576; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 377; - END_IF; - END_IF; - - IF _progress = 377 THEN // ReadResultsTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#577, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#577; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 378; - END_IF; - END_IF; - - IF _progress = 378 THEN // ReadResultsTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#578, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#578; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 379; - END_IF; - END_IF; - - IF _progress = 379 THEN // ReadResultsTask running: , + // ReadResultsTask finished. + IF _progress = 374 THEN ReadResultsTask.DoneWhen(TRUE); _progress := 0; END_IF; @@ -2574,8 +1820,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision THIS.CallTimers(FALSE); _progress := 380; END_IF; - - IF _progress = 380 THEN // SendDataTask running: , Waiting for system ready + // SendDataTask running: waiting for the system to be ready. + IF _progress = 380 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#580, eAxoMessageCategory#Warning); Status.Error.Id := UINT#580; @@ -2591,8 +1837,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 381; END_IF; END_IF; - - IF _progress = 381 THEN // SendDataTask running: , Waiting for online + // SendDataTask running: waiting for the system to be online. + IF _progress = 381 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#581, eAxoMessageCategory#Warning); Status.Error.Id := UINT#581; @@ -2603,8 +1849,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 382; END_IF; END_IF; - - IF _progress = 382 THEN // SendDataTask running: , Wait for free Data Buffer + // SendDataTask running: waiting for the data buffer is free. + IF _progress = 382 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#582, eAxoMessageCategory#Warning); Status.Error.Id := UINT#582; @@ -2619,8 +1865,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 383; END_IF; END_IF; - - IF _progress = 383 THEN // SendDataTask running: , Lock Data Buffer + // SendDataTask running: locking the data buffer. + IF _progress = 383 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#583, eAxoMessageCategory#Warning); Status.Error.Id := UINT#583; @@ -2636,33 +1882,21 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 384; END_IF; END_IF; - - IF _progress = 384 THEN // SendDataTask running: , serialize User data DATA + // SendDataTask running: setting the length of the data to sent. + IF _progress = 384 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#584, eAxoMessageCategory#Warning); Status.Error.Id := UINT#584; END_IF; Inputs.Status.WrittenDataVariantSize := _sendDataLength; - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 385; - END_IF; - END_IF; - - IF _progress = 385 THEN // SendDataTask running: , check HW correct config - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#585, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#585; - END_IF; - IF TRUE THEN THIS.CallTimers(FALSE); _progress := 386; END_IF; END_IF; - - IF _progress = 386 THEN // SendDataTask running: , Fill User DATA + // SendDataTask running: filling the user data to be sent. + IF _progress = 386 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#586, eAxoMessageCategory#Warning); Status.Error.Id := UINT#586; @@ -2893,8 +2127,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 387; END_IF; END_IF; - - IF _progress = 387 THEN // SendDataTask running: , set bit user data + // SendDataTask running: waiting for falling of the set user data acknowledge. + IF _progress = 387 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#587, eAxoMessageCategory#Warning); Status.Error.Id := UINT#587; @@ -2906,8 +2140,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 388; END_IF; END_IF; - - IF _progress = 388 THEN // SendDataTask running: , wait for confirm user data ack + // SendDataTask running: waiting for the confirmation of the user data. + IF _progress = 388 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#588, eAxoMessageCategory#Warning); Status.Error.Id := UINT#588; @@ -2919,8 +2153,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 389; END_IF; END_IF; - - IF _progress = 389 THEN // SendDataTask running: , wait for release user data ack + // SendDataTask running: waiting for falling of the set user data acknowledge. + IF _progress = 389 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#589, eAxoMessageCategory#Warning); Status.Error.Id := UINT#589; @@ -2931,8 +2165,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 390; END_IF; END_IF; - - IF _progress = 390 THEN // SendDataTask running: , wait for release user data ack + // SendDataTask running: waiting for falling of the set user data acknowledge. + IF _progress = 390 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#590, eAxoMessageCategory#Warning); Status.Error.Id := UINT#590; @@ -2947,8 +2181,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 391; END_IF; END_IF; - - IF _progress = 391 THEN // SendDataTask running: , data handler set + // SendDataTask running: data handler set. + IF _progress = 391 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#591, eAxoMessageCategory#Warning); Status.Error.Id := UINT#591; @@ -2960,8 +2194,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 392; END_IF; END_IF; - - IF _progress = 392 THEN // SendDataTask running: , wait for data handler ack + // SendDataTask running: waiting for data handler ack. + IF _progress = 392 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#592, eAxoMessageCategory#Warning); Status.Error.Id := UINT#592; @@ -2973,8 +2207,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 393; END_IF; END_IF; - - IF _progress = 393 THEN // SendDataTask running: , wait for data handler ack false + // SendDataTask running: waiting for data handler ack false. + IF _progress = 393 THEN IF _infoTimer.output THEN TaskMessenger.Activate( UINT#593, eAxoMessageCategory#Warning); Status.Error.Id := UINT#593; @@ -2985,68 +2219,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 394; END_IF; END_IF; - - IF _progress = 394 THEN // SendDataTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#594, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#594; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 395; - END_IF; - END_IF; - - IF _progress = 395 THEN // SendDataTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#595, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#595; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 396; - END_IF; - END_IF; - - IF _progress = 396 THEN // SendDataTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#596, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#596; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 397; - END_IF; - END_IF; - - IF _progress = 397 THEN // SendDataTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#597, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#597; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 398; - END_IF; - END_IF; - - IF _progress = 398 THEN // SendDataTask running: , - IF _infoTimer.output THEN - TaskMessenger.Activate( UINT#598, eAxoMessageCategory#Warning); - Status.Error.Id := UINT#598; - END_IF; - - IF TRUE THEN - THIS.CallTimers(FALSE); - _progress := 399; - END_IF; - END_IF; - - IF _progress = 399 THEN // SendDataTask running: , + // SendDataTask finished. + IF _progress = 394 THEN SendDataTask.DoneWhen(TRUE); _progress := 0; END_IF; @@ -3075,1099 +2249,6 @@ NAMESPACE AXOpen.Components.Cognex.Vision _progress := 0; END_IF; //************************************************** - - // //*************TemplateTask_20steps_3*************** - // TemplateTask_20steps_3.SetIsDisabled(FALSE); - // IF TemplateTask_20steps_3.StartTriggered() THEN - // Status.Action.Id := UINT#200; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#200,TemplateTask_20steps_3.IsBusy(), eAxoMessageCategory#Info); - // Messenger.ActivateOnCondition(ULINT#201,TemplateTask_20steps_3.IsDone(), eAxoMessageCategory#Info); - // IF TemplateTask_20steps_3.Execute(THIS) THEN - // IF _progress = 0 THEN - // Status.Error.Id := UINT#0; - // TaskMessenger.Restore(); - // THIS.CallTimers(FALSE); - // _progress := 400; - // END_IF; - - // IF _progress = 400 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#600, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#600; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 401; - // END_IF; - // END_IF; - - // IF _progress = 401 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#601, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#601; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 402; - // END_IF; - // END_IF; - - // IF _progress = 402 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#602, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#602; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 403; - // END_IF; - // END_IF; - - // IF _progress = 403 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#603, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#603; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 404; - // END_IF; - // END_IF; - - // IF _progress = 404 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#604, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#604; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 405; - // END_IF; - // END_IF; - - // IF _progress = 405 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#605, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#605; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 406; - // END_IF; - // END_IF; - - // IF _progress = 406 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#606, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#606; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 407; - // END_IF; - // END_IF; - - // IF _progress = 407 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#607, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#607; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 408; - // END_IF; - // END_IF; - - // IF _progress = 408 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#608, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#608; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 409; - // END_IF; - // END_IF; - - // IF _progress = 409 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#609, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#609; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 410; - // END_IF; - // END_IF; - - // IF _progress = 410 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#610, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#610; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 411; - // END_IF; - // END_IF; - - // IF _progress = 411 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#611, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#611; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 412; - // END_IF; - // END_IF; - - // IF _progress = 412 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#612, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#612; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 413; - // END_IF; - // END_IF; - - // IF _progress = 413 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#613, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#613; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 414; - // END_IF; - // END_IF; - - // IF _progress = 414 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#614, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#614; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 415; - // END_IF; - // END_IF; - - // IF _progress = 415 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#615, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#615; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 416; - // END_IF; - // END_IF; - - // IF _progress = 416 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#616, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#616; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 417; - // END_IF; - // END_IF; - - // IF _progress = 417 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#617, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#617; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 418; - // END_IF; - // END_IF; - - // IF _progress = 418 THEN // TemplateTask_20steps_3 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#618, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#618; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 419; - // END_IF; - // END_IF; - - // IF _progress = 419 THEN // TemplateTask_20steps_3 running: , - // TemplateTask_20steps_3.DoneWhen(TRUE); - // _progress := 0; - // END_IF; - - // THIS.CallTimers(TRUE); - - // TemplateTask_20steps_3.ThrowWhen(_errorTimer.output); - // Status.Action.Id := TO_UINT(_progress); - // TemplateTask_20steps_3.ThrowWhen(TemplateTask_20steps_3.Duration >= Config.ErrorTime ,'<#TemplateTask_20steps_3 error.#>'); - // END_IF; - // IF TemplateTask_20steps_3.DoneReached() THEN - // Status.Action.Id := UINT#201; - // Status.Error.Id := UINT#0; - // ELSIF TemplateTask_20steps_3.ErrorOccured() THEN - // Status.Action.Id := UINT#10100; - // Status.Error.Id := UINT#10100; - // ELSIF TemplateTask_20steps_3.AbortTriggered()THEN - // Status.Action.Id := UINT#10101; - // Status.Error.Id := UINT#10101; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#10100,TemplateTask_20steps_3.HasError(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#10101,TemplateTask_20steps_3.IsAborted(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#202,TemplateTask_20steps_3.RestoreTriggered() , eAxoMessageCategory#Error); - // IF TemplateTask_20steps_3.RestoreTriggered() AND _progress >= 400 AND _progress <= 419 THEN - // Status.Action.Id := UINT#202; - // _progress := 0; - // END_IF; - // //************************************************** - - // //*************TemplateTask_20steps_4*************** - // TemplateTask_20steps_4.SetIsDisabled(FALSE); - // IF TemplateTask_20steps_4.StartTriggered() THEN - // Status.Action.Id := UINT#220; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#220,TemplateTask_20steps_4.IsBusy(), eAxoMessageCategory#Info); - // Messenger.ActivateOnCondition(ULINT#221,TemplateTask_20steps_4.IsDone(), eAxoMessageCategory#Info); - // IF TemplateTask_20steps_4.Execute(THIS) THEN - // IF _progress = 0 THEN - // Status.Error.Id := UINT#0; - // TaskMessenger.Restore(); - // THIS.CallTimers(FALSE); - // _progress := 420; - // END_IF; - - // IF _progress = 420 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#620, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#620; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 421; - // END_IF; - // END_IF; - - // IF _progress = 421 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#621, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#621; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 422; - // END_IF; - // END_IF; - - // IF _progress = 422 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#622, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#622; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 423; - // END_IF; - // END_IF; - - // IF _progress = 423 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#623, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#623; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 424; - // END_IF; - // END_IF; - - // IF _progress = 424 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#624, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#624; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 425; - // END_IF; - // END_IF; - - // IF _progress = 425 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#625, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#625; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 426; - // END_IF; - // END_IF; - - // IF _progress = 426 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#626, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#626; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 427; - // END_IF; - // END_IF; - - // IF _progress = 427 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#627, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#627; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 428; - // END_IF; - // END_IF; - - // IF _progress = 428 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#628, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#628; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 429; - // END_IF; - // END_IF; - - // IF _progress = 429 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#629, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#629; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 430; - // END_IF; - // END_IF; - - // IF _progress = 430 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#630, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#630; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 431; - // END_IF; - // END_IF; - - // IF _progress = 431 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#631, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#631; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 432; - // END_IF; - // END_IF; - - // IF _progress = 432 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#632, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#632; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 433; - // END_IF; - // END_IF; - - // IF _progress = 433 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#633, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#633; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 434; - // END_IF; - // END_IF; - - // IF _progress = 434 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#634, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#634; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 435; - // END_IF; - // END_IF; - - // IF _progress = 435 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#635, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#635; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 436; - // END_IF; - // END_IF; - - // IF _progress = 436 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#636, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#636; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 437; - // END_IF; - // END_IF; - - // IF _progress = 437 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#637, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#637; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 438; - // END_IF; - // END_IF; - - // IF _progress = 438 THEN // TemplateTask_20steps_4 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#638, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#638; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 439; - // END_IF; - // END_IF; - - // IF _progress = 439 THEN // TemplateTask_20steps_4 running: , - // TemplateTask_20steps_4.DoneWhen(TRUE); - // _progress := 0; - // END_IF; - - // THIS.CallTimers(TRUE); - - // TemplateTask_20steps_4.ThrowWhen(_errorTimer.output); - // Status.Action.Id := TO_UINT(_progress); - // TemplateTask_20steps_4.ThrowWhen(TemplateTask_20steps_4.Duration >= Config.ErrorTime ,'<#TemplateTask_20steps_4 error#>'); - // END_IF; - // IF TemplateTask_20steps_4.DoneReached() THEN - // Status.Action.Id := UINT#221; - // Status.Error.Id := UINT#0; - // ELSIF TemplateTask_20steps_4.ErrorOccured() THEN - // Status.Action.Id := UINT#10120; - // Status.Error.Id := UINT#10120; - // ELSIF TemplateTask_20steps_4.AbortTriggered()THEN - // Status.Action.Id := UINT#10121; - // Status.Error.Id := UINT#10121; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#10120,TemplateTask_20steps_4.HasError(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#10121,TemplateTask_20steps_4.IsAborted(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#222,TemplateTask_20steps_4.RestoreTriggered() , eAxoMessageCategory#Error); - // IF TemplateTask_20steps_4.RestoreTriggered() AND _progress >= 420 AND _progress <= 439 THEN - // Status.Action.Id := UINT#222; - // _progress := 0; - // END_IF; - // //************************************************** - - // //*************TemplateTask_20steps_5*************** - // TemplateTask_20steps_5.SetIsDisabled(FALSE); - // IF TemplateTask_20steps_5.StartTriggered() THEN - // Status.Action.Id := UINT#240; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#240,TemplateTask_20steps_5.IsBusy(), eAxoMessageCategory#Info); - // Messenger.ActivateOnCondition(ULINT#241,TemplateTask_20steps_5.IsDone(), eAxoMessageCategory#Info); - // IF TemplateTask_20steps_5.Execute(THIS) THEN - // IF _progress = 0 THEN - // Status.Error.Id := UINT#0; - // TaskMessenger.Restore(); - // THIS.CallTimers(FALSE); - // _progress := 440; - // END_IF; - - // IF _progress = 440 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#640, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#640; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 441; - // END_IF; - // END_IF; - - // IF _progress = 441 THEN // TemplateTask_20steps_5 running , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#641, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#641; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 442; - // END_IF; - // END_IF; - - // IF _progress = 442 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#642, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#642; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 443; - // END_IF; - // END_IF; - - // IF _progress = 443 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#643, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#643; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 444; - // END_IF; - // END_IF; - - // IF _progress = 444 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#644, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#644; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 445; - // END_IF; - // END_IF; - - // IF _progress = 445 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#645, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#645; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 446; - // END_IF; - // END_IF; - - // IF _progress = 446 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#646, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#646; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 447; - // END_IF; - // END_IF; - - // IF _progress = 447 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#647, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#647; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 448; - // END_IF; - // END_IF; - - // IF _progress = 448 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#648, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#648; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 449; - // END_IF; - // END_IF; - - // IF _progress = 449 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#649, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#649; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 450; - // END_IF; - // END_IF; - - // IF _progress = 450 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#650, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#650; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 451; - // END_IF; - // END_IF; - - // IF _progress = 451 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#651, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#651; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 452; - // END_IF; - // END_IF; - - // IF _progress = 452 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#652, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#652; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 453; - // END_IF; - // END_IF; - - // IF _progress = 453 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#653, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#653; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 454; - // END_IF; - // END_IF; - - // IF _progress = 454 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#654, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#654; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 455; - // END_IF; - // END_IF; - - // IF _progress = 455 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#655, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#655; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 456; - // END_IF; - // END_IF; - - // IF _progress = 456 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#656, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#656; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 457; - // END_IF; - // END_IF; - - // IF _progress = 457 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#657, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#657; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 458; - // END_IF; - // END_IF; - - // IF _progress = 458 THEN // TemplateTask_20steps_5 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#658, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#658; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 459; - // END_IF; - // END_IF; - - // IF _progress = 459 THEN // TemplateTask_20steps_5 running: , - // TemplateTask_20steps_5.DoneWhen(TRUE); - // _progress := 0; - // END_IF; - - // THIS.CallTimers(TRUE); - - // TemplateTask_20steps_5.ThrowWhen(_errorTimer.output); - // Status.Action.Id := TO_UINT(_progress); - // TemplateTask_20steps_5.ThrowWhen(TemplateTask_20steps_5.Duration >= Config.ErrorTime ,'<#TemplateTask_20steps_5 error.#>'); - // END_IF; - // IF TemplateTask_20steps_5.DoneReached() THEN - // Status.Action.Id := UINT#241; - // Status.Error.Id := UINT#0; - // ELSIF TemplateTask_20steps_5.ErrorOccured() THEN - // Status.Action.Id := UINT#10140; - // Status.Error.Id := UINT#10140; - // ELSIF TemplateTask_20steps_5.AbortTriggered()THEN - // Status.Action.Id := UINT#10141; - // Status.Error.Id := UINT#10141; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#10140,TemplateTask_20steps_5.HasError(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#10141,TemplateTask_20steps_5.IsAborted(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#242,TemplateTask_20steps_5.RestoreTriggered() , eAxoMessageCategory#Error); - // IF TemplateTask_20steps_5.RestoreTriggered() AND _progress >= 440 AND _progress <= 459 THEN - // Status.Action.Id := UINT#242; - // _progress := 0; - // END_IF; - // //************************************************** - - // //*************TemplateTask_20steps_6*************** - // TemplateTask_20steps_6.SetIsDisabled(FALSE); - // IF TemplateTask_20steps_6.StartTriggered() THEN - // Status.Action.Id := UINT#260; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#260,TemplateTask_20steps_6.IsBusy(), eAxoMessageCategory#Info); - // Messenger.ActivateOnCondition(ULINT#261,TemplateTask_20steps_6.IsDone(), eAxoMessageCategory#Info); - // IF TemplateTask_20steps_6.Execute(THIS) THEN - // IF _progress = 0 THEN - // Status.Error.Id := UINT#0; - // TaskMessenger.Restore(); - // THIS.CallTimers(FALSE); - // _progress := 460; - // END_IF; - - // IF _progress = 460 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#660, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#660; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 461; - // END_IF; - // END_IF; - - // IF _progress = 461 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#661, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#661; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 462; - // END_IF; - // END_IF; - - // IF _progress = 462 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#662, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#662; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 463; - // END_IF; - // END_IF; - - // IF _progress = 463 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#663, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#663; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 464; - // END_IF; - // END_IF; - - // IF _progress = 464 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#664, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#664; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 465; - // END_IF; - // END_IF; - - // IF _progress = 465 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#665, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#665; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 466; - // END_IF; - // END_IF; - - // IF _progress = 466 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#666, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#666; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 467; - // END_IF; - // END_IF; - - // IF _progress = 467 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#667, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#667; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 468; - // END_IF; - // END_IF; - - // IF _progress = 468 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#668, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#668; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 469; - // END_IF; - // END_IF; - - // IF _progress = 469 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#669, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#669; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 470; - // END_IF; - // END_IF; - - // IF _progress = 470 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#670, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#670; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 471; - // END_IF; - // END_IF; - - // IF _progress = 471 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#671, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#671; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 472; - // END_IF; - // END_IF; - - // IF _progress = 472 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#672, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#672; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 473; - // END_IF; - // END_IF; - - // IF _progress = 473 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#673, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#673; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 474; - // END_IF; - // END_IF; - - // IF _progress = 474 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#674, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#674; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 475; - // END_IF; - // END_IF; - - // IF _progress = 475 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#675, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#675; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 476; - // END_IF; - // END_IF; - - // IF _progress = 476 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#676, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#676; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 477; - // END_IF; - // END_IF; - - // IF _progress = 477 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#677, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#677; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 478; - // END_IF; - // END_IF; - - // IF _progress = 478 THEN // TemplateTask_20steps_6 running: , - // IF _infoTimer.output THEN - // TaskMessenger.Activate( UINT#678, eAxoMessageCategory#Warning); - // Status.Error.Id := UINT#678; - // END_IF; - - // IF TRUE THEN - // THIS.CallTimers(FALSE); - // _progress := 479; - // END_IF; - // END_IF; - - // IF _progress = 479 THEN // TemplateTask_20steps_6 running: , - // TemplateTask_20steps_6.DoneWhen(TRUE); - // _progress := 0; - // END_IF; - - // THIS.CallTimers(TRUE); - - // TemplateTask_20steps_6.ThrowWhen(_errorTimer.output); - // Status.Action.Id := TO_UINT(_progress); - // TemplateTask_20steps_6.ThrowWhen(TemplateTask_20steps_6.Duration >= Config.ErrorTime ,'<#TemplateTask_20steps_6 error.#>'); - // END_IF; - // IF TemplateTask_20steps_6.DoneReached() THEN - // Status.Action.Id := UINT#261; - // Status.Error.Id := UINT#0; - // ELSIF TemplateTask_20steps_6.ErrorOccured() THEN - // Status.Action.Id := UINT#10160; - // Status.Error.Id := UINT#10160; - // ELSIF TemplateTask_20steps_6.AbortTriggered()THEN - // Status.Action.Id := UINT#10161; - // Status.Error.Id := UINT#10161; - // END_IF; - // Messenger.ActivateOnCondition(ULINT#10160,TemplateTask_20steps_6.HasError(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#10161,TemplateTask_20steps_6.IsAborted(), eAxoMessageCategory#Error); - // Messenger.ActivateOnCondition(ULINT#262,TemplateTask_20steps_6.RestoreTriggered() , eAxoMessageCategory#Error); - // IF TemplateTask_20steps_6.RestoreTriggered() AND _progress >= 460 AND _progress <= 479 THEN - // Status.Action.Id := UINT#262; - // _progress := 0; - // END_IF; - // //****************************************** - //***********Update outputs **************** @@ -4242,17 +2323,6 @@ NAMESPACE AXOpen.Components.Cognex.Vision Trigger := TriggerTask.Invoke(THIS); END_METHOD - // METHOD PUBLIC TemplateMethod_10steps_4 : IAxoTaskState - // TemplateMethod_10steps_4 := TemplateTask_10steps_4.Invoke(THIS); - // END_METHOD - - // METHOD PUBLIC TemplateMethod_10steps_5 : IAxoTaskState - // TemplateMethod_10steps_5 := TemplateTask_10steps_5.Invoke(THIS); - // END_METHOD - - // METHOD PUBLIC TemplateMethod_10steps_6 : IAxoTaskState - // TemplateMethod_10steps_6 := TemplateTask_10steps_6.Invoke(THIS); - // END_METHOD METHOD PUBLIC ReadResults : IAxoTaskState VAR_INPUT @@ -4286,22 +2356,6 @@ NAMESPACE AXOpen.Components.Cognex.Vision SendData := SendDataTask.Invoke(THIS); END_METHOD - // METHOD PUBLIC TemplateMethod_20steps_3 : IAxoTaskState - // TemplateMethod_20steps_3 := TemplateTask_20steps_3.Invoke(THIS); - // END_METHOD - - // METHOD PUBLIC TemplateMethod_20steps_4 : IAxoTaskState - // TemplateMethod_20steps_4 := TemplateTask_20steps_4.Invoke(THIS); - // END_METHOD - - // METHOD PUBLIC TemplateMethod_20steps_5 : IAxoTaskState - // TemplateMethod_20steps_5 := TemplateTask_20steps_5.Invoke(THIS); - // END_METHOD - - // METHOD PUBLIC TemplateMethod_20steps_6 : IAxoTaskState - // TemplateMethod_20steps_6 := TemplateTask_20steps_6.Invoke(THIS); - // END_METHOD - METHOD PROTECTED OVERRIDE ManualControl THIS._isManuallyControllable := TRUE; @@ -4340,15 +2394,8 @@ NAMESPACE AXOpen.Components.Cognex.Vision HardResetAllCamerasTask.Restore(); ResetTask.Restore(); TriggerTask.Restore(); - // TemplateTask_10steps_4.Restore(); - // TemplateTask_10steps_5.Restore(); - // TemplateTask_10steps_6.Restore(); ReadResultsTask.Restore(); SendDataTask.Restore(); - // TemplateTask_20steps_3.Restore(); - // TemplateTask_20steps_4.Restore(); - // TemplateTask_20steps_5.Restore(); - // TemplateTask_20steps_6.Restore(); HardwareDiagnosticsTask.Restore(); Status.Action.Id := UINT#50; diff --git a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoDataman/AxoDataman.cs b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoDataman/AxoDataman.cs index 9a68d82d3..d0e2d0566 100644 --- a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoDataman/AxoDataman.cs +++ b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoDataman/AxoDataman.cs @@ -397,43 +397,25 @@ public string ActionDescription actionDescriptionDict.Add(50, "Restore has been executed."); actionDescriptionDict.Add(100,"Clear reasult data started."); - actionDescriptionDict.Add(300, "Clear reasult data running."); - actionDescriptionDict.Add(301, "Clear reasult data running."); - actionDescriptionDict.Add(302, "Clear reasult data running."); - actionDescriptionDict.Add(303, "Clear reasult data running."); - actionDescriptionDict.Add(304, "Clear reasult data running."); - actionDescriptionDict.Add(305, "Clear reasult data running."); - actionDescriptionDict.Add(306, "Clear reasult data running."); - actionDescriptionDict.Add(307, "Clear reasult data running."); - actionDescriptionDict.Add(308, "Clear reasult data running."); - actionDescriptionDict.Add(309, "Clear reasult data running."); + actionDescriptionDict.Add(300, "Clear reasult data running: reseting the result data."); + actionDescriptionDict.Add(301, "Clear reasult data running: reseting the result data."); + actionDescriptionDict.Add(302, "Clear reasult data finished."); actionDescriptionDict.Add(101,"Clear reasult data finished succesfully."); actionDescriptionDict.Add(102,"Clear reasult data restored."); actionDescriptionDict.Add(110, "Reading started."); - actionDescriptionDict.Add(310, "Reading running."); - actionDescriptionDict.Add(311, "Reading running."); - actionDescriptionDict.Add(312, "Reading running."); - actionDescriptionDict.Add(313, "Reading running."); - actionDescriptionDict.Add(314, "Reading running."); - actionDescriptionDict.Add(315, "Reading running."); - actionDescriptionDict.Add(316, "Reading running."); - actionDescriptionDict.Add(317, "Reading running."); - actionDescriptionDict.Add(318, "Reading running."); - actionDescriptionDict.Add(319, "Reading running."); - actionDescriptionDict.Add(320, "Reading running."); - actionDescriptionDict.Add(321, "Reading running."); - actionDescriptionDict.Add(322, "Reading running."); - actionDescriptionDict.Add(323, "Reading running."); - actionDescriptionDict.Add(324, "Reading running."); - actionDescriptionDict.Add(325, "Reading running."); - actionDescriptionDict.Add(326, "Reading running."); - actionDescriptionDict.Add(327, "Reading running."); - actionDescriptionDict.Add(328, "Reading running."); - actionDescriptionDict.Add(329, "Reading running."); - - actionDescriptionDict.Add(111,"Reading finished succesfully."); - actionDescriptionDict.Add(112,"Reading restored."); + actionDescriptionDict.Add(310, "Reading running: enabling triger."); + actionDescriptionDict.Add(311, "Reading running: waiting for the triger to be ready."); + actionDescriptionDict.Add(312, "Reading running: waiting for the triger to be acknowledged."); + actionDescriptionDict.Add(313, "Reading running: waiting for the results available."); + actionDescriptionDict.Add(314, "Reading running: evaluating the result data."); + actionDescriptionDict.Add(315, "Reading running: processing the result data."); + actionDescriptionDict.Add(316, "Reading finished."); + actionDescriptionDict.Add(319, "Reading running: error detected, reseting trigger."); + actionDescriptionDict.Add(320, "Reading running: error detected, reseting error."); + actionDescriptionDict.Add(321, "Reading running: error detected, reseting error."); + actionDescriptionDict.Add(111, "Reading finished succesfully."); + actionDescriptionDict.Add(112, "Reading restored."); actionDescriptionDict.Add(120, "Continous reading active: New data read."); diff --git a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_24_0_0/AxoInsight.cs b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_24_0_0/AxoInsight.cs index 5586fac56..65411c0c4 100644 --- a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_24_0_0/AxoInsight.cs +++ b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_24_0_0/AxoInsight.cs @@ -550,96 +550,69 @@ public string ActionDescription actionDescriptionDict.Add(50, "Restore has been executed."); actionDescriptionDict.Add(100, "Clearing of the inspection results started."); - actionDescriptionDict.Add(300, "Clearing of the inspection results running."); - actionDescriptionDict.Add(301, "Clearing of the inspection results running."); - actionDescriptionDict.Add(302, "Clearing of the inspection results running."); - actionDescriptionDict.Add(303, "Clearing of the inspection results running."); - actionDescriptionDict.Add(304, "Clearing of the inspection results running."); - actionDescriptionDict.Add(305, "Clearing of the inspection results running."); - actionDescriptionDict.Add(306, "Clearing of the inspection results running."); - actionDescriptionDict.Add(307, "Clearing of the inspection results running."); - actionDescriptionDict.Add(308, "Clearing of the inspection results running."); - actionDescriptionDict.Add(309, "Clearing of the inspection results running."); + actionDescriptionDict.Add(300, "Clearing of the inspection results running: reseting the inspection result buffer."); + actionDescriptionDict.Add(301, "Clearing of the inspection results running: waiting for the result data is cleared on device side."); + actionDescriptionDict.Add(302, "Clearing of the inspection results finished."); actionDescriptionDict.Add(101, "Clearing of the inspection results finished succesfully."); actionDescriptionDict.Add(102, "Clearing of the inspection results restored."); - actionDescriptionDict.Add(110, "Reading started."); - actionDescriptionDict.Add(310, "Reading running."); - actionDescriptionDict.Add(311, "Reading running."); - actionDescriptionDict.Add(312, "Reading running."); - actionDescriptionDict.Add(313, "Reading running."); - actionDescriptionDict.Add(314, "Reading running."); - actionDescriptionDict.Add(315, "Reading running."); - actionDescriptionDict.Add(316, "Reading running."); - actionDescriptionDict.Add(317, "Reading running."); - actionDescriptionDict.Add(318, "Reading running."); - actionDescriptionDict.Add(319, "Reading running."); - actionDescriptionDict.Add(111, "Reading finished succesfully."); - actionDescriptionDict.Add(112, "Reading restored."); + actionDescriptionDict.Add(110, "Trigger started."); + actionDescriptionDict.Add(310, "Trigger running: enabling trigger."); + actionDescriptionDict.Add(311, "Trigger running: waiting for the device to be ready."); + actionDescriptionDict.Add(312, "Trigger running: waiting for the previous data is cleared."); + actionDescriptionDict.Add(313, "Trigger running: waiting for the reseting the previous cycle error state."); + actionDescriptionDict.Add(314, "Trigger running: waiting for the device to be ready for the new inspection cycle."); + actionDescriptionDict.Add(315, "Trigger running: waiting for the trigger to be enabled."); + actionDescriptionDict.Add(316, "Trigger running: waiting for the inspection to be completed."); + actionDescriptionDict.Add(317, "Trigger running: waiting for the inspection to be valid."); + actionDescriptionDict.Add(318, "Trigger running: parsing the inspection results."); + actionDescriptionDict.Add(319, "Trigger finished."); + actionDescriptionDict.Add(111, "Trigger finished succesfully."); + actionDescriptionDict.Add(112, "Trigger restored."); actionDescriptionDict.Add(120, "Change job by name started."); - actionDescriptionDict.Add(320, "Change job by name running."); - actionDescriptionDict.Add(321, "Change job by name running."); - actionDescriptionDict.Add(322, "Change job by name running."); - actionDescriptionDict.Add(323, "Change job by name running."); - actionDescriptionDict.Add(324, "Change job by name running."); - actionDescriptionDict.Add(325, "Change job by name running."); - actionDescriptionDict.Add(326, "Change job by name running."); - actionDescriptionDict.Add(327, "Change job by name running."); - actionDescriptionDict.Add(328, "Change job by name running."); - actionDescriptionDict.Add(329, "Change job by name running."); - actionDescriptionDict.Add(330, "Change job by name running."); - actionDescriptionDict.Add(331, "Change job by name running."); - actionDescriptionDict.Add(332, "Change job by name running."); - actionDescriptionDict.Add(333, "Change job by name running."); - actionDescriptionDict.Add(334, "Change job by name running."); - actionDescriptionDict.Add(335, "Change job by name running."); - actionDescriptionDict.Add(336, "Change job by name running."); - actionDescriptionDict.Add(337, "Change job by name running."); - actionDescriptionDict.Add(338, "Change job by name running."); - actionDescriptionDict.Add(339, "Change job by name running."); + actionDescriptionDict.Add(320, "Change job by name running: checking the job name."); + actionDescriptionDict.Add(321, "Change job by name running: waiting for the previous action is finished."); + actionDescriptionDict.Add(322, "Change job by name running: waiting for the device to be offline."); + actionDescriptionDict.Add(323, "Change job by name running: reseting the error."); + actionDescriptionDict.Add(324, "Change job by name running: filling the user data with the job name."); + actionDescriptionDict.Add(325, "Change job by name running: waiting for the job name is received."); + actionDescriptionDict.Add(326, "Change job by name running: writing the job name waiting the job name received."); + actionDescriptionDict.Add(327, "Change job by name running: waiting for the command is completed."); + actionDescriptionDict.Add(328, "Change job by name running: waiting for the command complete acknowledged."); + actionDescriptionDict.Add(329, "Change job by name running: waiting for the device to be online."); + actionDescriptionDict.Add(330, "Change job by name finished."); + actionDescriptionDict.Add(330, "Change job by name finished with an error."); actionDescriptionDict.Add(121, "Change job by name finished succesfully."); actionDescriptionDict.Add(122, "Change job by name restored."); actionDescriptionDict.Add(140, "Change job by number started."); - actionDescriptionDict.Add(340, "Change job by number running."); - actionDescriptionDict.Add(341, "Change job by number running."); - actionDescriptionDict.Add(342, "Change job by number running."); - actionDescriptionDict.Add(343, "Change job by number running."); - actionDescriptionDict.Add(344, "Change job by number running."); - actionDescriptionDict.Add(345, "Change job by number running."); - actionDescriptionDict.Add(346, "Change job by number running."); - actionDescriptionDict.Add(347, "Change job by number running."); - actionDescriptionDict.Add(348, "Change job by number running."); - actionDescriptionDict.Add(349, "Change job by number running."); + actionDescriptionDict.Add(340, "Change job by number running: checking the job number."); + actionDescriptionDict.Add(341, "Change job by number running: waiting for the previous action is finished."); + actionDescriptionDict.Add(342, "Change job by number running: waiting for the device to be offline."); + actionDescriptionDict.Add(343, "Change job by number running: reseting the error."); + actionDescriptionDict.Add(344, "Change job by number running: waiting for the command is completed."); + actionDescriptionDict.Add(345, "Change job by number running: waiting for the command complete acknowledged."); + actionDescriptionDict.Add(346, "Change job by number running: waiting for the device to be online."); + actionDescriptionDict.Add(347, "Change job by number finished."); + actionDescriptionDict.Add(349, "Change job by number finished with an error."); actionDescriptionDict.Add(141, "Change job by number finished succesfully."); actionDescriptionDict.Add(142, "Change job by number restored."); actionDescriptionDict.Add(150, "SoftEvent started."); - actionDescriptionDict.Add(350, "SoftEvent running."); - actionDescriptionDict.Add(351, "SoftEvent running."); - actionDescriptionDict.Add(352, "SoftEvent running."); - actionDescriptionDict.Add(353, "SoftEvent running."); - actionDescriptionDict.Add(354, "SoftEvent running."); - actionDescriptionDict.Add(355, "SoftEvent running."); - actionDescriptionDict.Add(356, "SoftEvent running."); - actionDescriptionDict.Add(357, "SoftEvent running."); - actionDescriptionDict.Add(358, "SoftEvent running."); - actionDescriptionDict.Add(359, "SoftEvent running."); + actionDescriptionDict.Add(350, "SoftEvent running: checking the soft event number."); + actionDescriptionDict.Add(351, "SoftEvent running: checking the soft event number."); + actionDescriptionDict.Add(352, "SoftEvent running: waiting for the soft event is finished."); + actionDescriptionDict.Add(353, "SoftEvent running: waiting for the soft event is acknowledged."); + actionDescriptionDict.Add(354, "SoftEvent finished."); actionDescriptionDict.Add(151, "SoftEvent finished succesfully."); actionDescriptionDict.Add(152, "SoftEvent restored."); actionDescriptionDict.Add(160, "SendData started."); - actionDescriptionDict.Add(360, "SendData running."); - actionDescriptionDict.Add(361, "SendData running."); - actionDescriptionDict.Add(362, "SendData running."); - actionDescriptionDict.Add(363, "SendData running."); - actionDescriptionDict.Add(364, "SendData running."); - actionDescriptionDict.Add(365, "SendData running."); - actionDescriptionDict.Add(366, "SendData running."); - actionDescriptionDict.Add(367, "SendData running."); - actionDescriptionDict.Add(368, "SendData running."); - actionDescriptionDict.Add(369, "SendData running."); + actionDescriptionDict.Add(360, "SendData running: filling the user data buffer."); + actionDescriptionDict.Add(361, "SendData running: sending the user data to the device."); + actionDescriptionDict.Add(362, "SendData running: waiting for the user is acknowledged."); + actionDescriptionDict.Add(363, "SendData finished."); actionDescriptionDict.Add(161, "SendData finished succesfully."); actionDescriptionDict.Add(162, "SendData restored."); diff --git a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_6_0_0_0/AxoInsight.cs b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_6_0_0_0/AxoInsight.cs index 15f8aebf1..b03f03c9f 100644 --- a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_6_0_0_0/AxoInsight.cs +++ b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoInsight/v_6_0_0_0/AxoInsight.cs @@ -3,6 +3,7 @@ using AXSharp.Connector; using System; using System.Collections.Generic; +using System.Threading.Channels; namespace AXOpen.Components.Cognex.Vision.v_6_0_0_0 { @@ -395,96 +396,69 @@ public string ActionDescription actionDescriptionDict.Add(50, "Restore has been executed."); actionDescriptionDict.Add(100, "Clearing of the inspection results started."); - actionDescriptionDict.Add(300, "Clearing of the inspection results running."); - actionDescriptionDict.Add(301, "Clearing of the inspection results running."); - actionDescriptionDict.Add(302, "Clearing of the inspection results running."); - actionDescriptionDict.Add(303, "Clearing of the inspection results running."); - actionDescriptionDict.Add(304, "Clearing of the inspection results running."); - actionDescriptionDict.Add(305, "Clearing of the inspection results running."); - actionDescriptionDict.Add(306, "Clearing of the inspection results running."); - actionDescriptionDict.Add(307, "Clearing of the inspection results running."); - actionDescriptionDict.Add(308, "Clearing of the inspection results running."); - actionDescriptionDict.Add(309, "Clearing of the inspection results running."); + actionDescriptionDict.Add(300, "Clearing of the inspection results running: reseting the inspection result buffer."); + actionDescriptionDict.Add(301, "Clearing of the inspection results running: waiting for the result data is cleared on device side."); + actionDescriptionDict.Add(302, "Clearing of the inspection results finished."); actionDescriptionDict.Add(101, "Clearing of the inspection results finished succesfully."); actionDescriptionDict.Add(102, "Clearing of the inspection results restored."); - actionDescriptionDict.Add(110, "Reading started."); - actionDescriptionDict.Add(310, "Reading running."); - actionDescriptionDict.Add(311, "Reading running."); - actionDescriptionDict.Add(312, "Reading running."); - actionDescriptionDict.Add(313, "Reading running."); - actionDescriptionDict.Add(314, "Reading running."); - actionDescriptionDict.Add(315, "Reading running."); - actionDescriptionDict.Add(316, "Reading running."); - actionDescriptionDict.Add(317, "Reading running."); - actionDescriptionDict.Add(318, "Reading running."); - actionDescriptionDict.Add(319, "Reading running."); - actionDescriptionDict.Add(111, "Reading finished succesfully."); - actionDescriptionDict.Add(112, "Reading restored."); + actionDescriptionDict.Add(110, "Trigger started."); + actionDescriptionDict.Add(310, "Trigger running: enabling trigger."); + actionDescriptionDict.Add(311, "Trigger running: waiting for the device to be ready."); + actionDescriptionDict.Add(312, "Trigger running: waiting for the previous data is cleared."); + actionDescriptionDict.Add(313, "Trigger running: waiting for the reseting the previous cycle error state."); + actionDescriptionDict.Add(314, "Trigger running: waiting for the device to be ready for the new inspection cycle."); + actionDescriptionDict.Add(315, "Trigger running: waiting for the trigger to be enabled."); + actionDescriptionDict.Add(316, "Trigger running: waiting for the inspection to be completed."); + actionDescriptionDict.Add(317, "Trigger running: waiting for the inspection to be valid."); + actionDescriptionDict.Add(318, "Trigger running: parsing the inspection results."); + actionDescriptionDict.Add(319, "Trigger finished."); + actionDescriptionDict.Add(111, "Trigger finished succesfully."); + actionDescriptionDict.Add(112, "Trigger restored."); actionDescriptionDict.Add(120, "Change job by name started."); - actionDescriptionDict.Add(320, "Change job by name running."); - actionDescriptionDict.Add(321, "Change job by name running."); - actionDescriptionDict.Add(322, "Change job by name running."); - actionDescriptionDict.Add(323, "Change job by name running."); - actionDescriptionDict.Add(324, "Change job by name running."); - actionDescriptionDict.Add(325, "Change job by name running."); - actionDescriptionDict.Add(326, "Change job by name running."); - actionDescriptionDict.Add(327, "Change job by name running."); - actionDescriptionDict.Add(328, "Change job by name running."); - actionDescriptionDict.Add(329, "Change job by name running."); - actionDescriptionDict.Add(330, "Change job by name running."); - actionDescriptionDict.Add(331, "Change job by name running."); - actionDescriptionDict.Add(332, "Change job by name running."); - actionDescriptionDict.Add(333, "Change job by name running."); - actionDescriptionDict.Add(334, "Change job by name running."); - actionDescriptionDict.Add(335, "Change job by name running."); - actionDescriptionDict.Add(336, "Change job by name running."); - actionDescriptionDict.Add(337, "Change job by name running."); - actionDescriptionDict.Add(338, "Change job by name running."); - actionDescriptionDict.Add(339, "Change job by name running."); + actionDescriptionDict.Add(320, "Change job by name running: checking the job name."); + actionDescriptionDict.Add(321, "Change job by name running: waiting for the previous action is finished."); + actionDescriptionDict.Add(322, "Change job by name running: waiting for the device to be offline."); + actionDescriptionDict.Add(323, "Change job by name running: reseting the error."); + actionDescriptionDict.Add(324, "Change job by name running: filling the user data with the job name."); + actionDescriptionDict.Add(325, "Change job by name running: waiting for the job name is received."); + actionDescriptionDict.Add(326, "Change job by name running: writing the job name waiting the job name received."); + actionDescriptionDict.Add(327, "Change job by name running: waiting for the command is completed."); + actionDescriptionDict.Add(328, "Change job by name running: waiting for the command complete acknowledged."); + actionDescriptionDict.Add(329, "Change job by name running: waiting for the device to be online."); + actionDescriptionDict.Add(330, "Change job by name finished."); + actionDescriptionDict.Add(330, "Change job by name finished with an error."); actionDescriptionDict.Add(121, "Change job by name finished succesfully."); actionDescriptionDict.Add(122, "Change job by name restored."); actionDescriptionDict.Add(140, "Change job by number started."); - actionDescriptionDict.Add(340, "Change job by number running."); - actionDescriptionDict.Add(341, "Change job by number running."); - actionDescriptionDict.Add(342, "Change job by number running."); - actionDescriptionDict.Add(343, "Change job by number running."); - actionDescriptionDict.Add(344, "Change job by number running."); - actionDescriptionDict.Add(345, "Change job by number running."); - actionDescriptionDict.Add(346, "Change job by number running."); - actionDescriptionDict.Add(347, "Change job by number running."); - actionDescriptionDict.Add(348, "Change job by number running."); - actionDescriptionDict.Add(349, "Change job by number running."); + actionDescriptionDict.Add(340, "Change job by number running: checking the job number."); + actionDescriptionDict.Add(341, "Change job by number running: waiting for the previous action is finished."); + actionDescriptionDict.Add(342, "Change job by number running: waiting for the device to be offline."); + actionDescriptionDict.Add(343, "Change job by number running: reseting the error."); + actionDescriptionDict.Add(344, "Change job by number running: waiting for the command is completed."); + actionDescriptionDict.Add(345, "Change job by number running: waiting for the command complete acknowledged."); + actionDescriptionDict.Add(346, "Change job by number running: waiting for the device to be online."); + actionDescriptionDict.Add(347, "Change job by number finished."); + actionDescriptionDict.Add(349, "Change job by number finished with an error."); actionDescriptionDict.Add(141, "Change job by number finished succesfully."); actionDescriptionDict.Add(142, "Change job by number restored."); actionDescriptionDict.Add(150, "SoftEvent started."); - actionDescriptionDict.Add(350, "SoftEvent running."); - actionDescriptionDict.Add(351, "SoftEvent running."); - actionDescriptionDict.Add(352, "SoftEvent running."); - actionDescriptionDict.Add(353, "SoftEvent running."); - actionDescriptionDict.Add(354, "SoftEvent running."); - actionDescriptionDict.Add(355, "SoftEvent running."); - actionDescriptionDict.Add(356, "SoftEvent running."); - actionDescriptionDict.Add(357, "SoftEvent running."); - actionDescriptionDict.Add(358, "SoftEvent running."); - actionDescriptionDict.Add(359, "SoftEvent running."); + actionDescriptionDict.Add(350, "SoftEvent running: checking the soft event number."); + actionDescriptionDict.Add(351, "SoftEvent running: checking the soft event number."); + actionDescriptionDict.Add(352, "SoftEvent running: waiting for the soft event is finished."); + actionDescriptionDict.Add(353, "SoftEvent running: waiting for the soft event is acknowledged."); + actionDescriptionDict.Add(354, "SoftEvent finished."); actionDescriptionDict.Add(151, "SoftEvent finished succesfully."); actionDescriptionDict.Add(152, "SoftEvent restored."); actionDescriptionDict.Add(160, "SendData started."); - actionDescriptionDict.Add(360, "SendData running."); - actionDescriptionDict.Add(361, "SendData running."); - actionDescriptionDict.Add(362, "SendData running."); - actionDescriptionDict.Add(363, "SendData running."); - actionDescriptionDict.Add(364, "SendData running."); - actionDescriptionDict.Add(365, "SendData running."); - actionDescriptionDict.Add(366, "SendData running."); - actionDescriptionDict.Add(367, "SendData running."); - actionDescriptionDict.Add(368, "SendData running."); - actionDescriptionDict.Add(369, "SendData running."); + actionDescriptionDict.Add(360, "SendData running: filling the user data buffer."); + actionDescriptionDict.Add(361, "SendData running: sending the user data to the device."); + actionDescriptionDict.Add(362, "SendData running: waiting for the user is acknowledged."); + actionDescriptionDict.Add(363, "SendData finished."); actionDescriptionDict.Add(161, "SendData finished succesfully."); actionDescriptionDict.Add(162, "SendData restored."); diff --git a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoVisionPro/AxoVisionPro.cs b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoVisionPro/AxoVisionPro.cs index 3e1c8c5e1..c4cc8d71e 100644 --- a/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoVisionPro/AxoVisionPro.cs +++ b/src/components.cognex.vision/src/AXOpen.Components.Cognex.Vision/AxoVisionPro/AxoVisionPro.cs @@ -750,39 +750,6 @@ public string ErrorDescription errorDescriptionDict.Add(527, "Waiting for the signal/variable `` to be set/reseted !" ); errorDescriptionDict.Add(528, "Waiting for the signal/variable `` to be set/reseted !" ); errorDescriptionDict.Add(529, "Waiting for the signal/variable `` to be set/reseted !" ); - //TemplateTask_10steps_4 - errorDescriptionDict.Add(530, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(531, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(532, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(533, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(534, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(535, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(536, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(537, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(538, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(539, "Waiting for the signal/variable `` to be set/reseted !" ); - //TemplateTask_10steps_5 - errorDescriptionDict.Add(540, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(541, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(542, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(543, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(544, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(545, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(546, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(547, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(548, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(549, "Waiting for the signal/variable `` to be set/reseted !" ); - //TemplateTask_10steps_6 - errorDescriptionDict.Add(550, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(551, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(552, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(553, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(554, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(555, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(556, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(557, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(558, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(559, "Waiting for the signal/variable `` to be set/reseted !" ); //ReadResultsTask errorDescriptionDict.Add(560, "Waiting for the signal/variable `Waiting for system ready` to be set!" ); errorDescriptionDict.Add(561, "Waiting for the signal/variable `Waiting for online` to be set!" ); @@ -804,7 +771,7 @@ public string ErrorDescription errorDescriptionDict.Add(577, "Waiting for the signal/variable `` to be set/reseted !" ); errorDescriptionDict.Add(578, "Waiting for the signal/variable `` to be set/reseted !" ); errorDescriptionDict.Add(579, "Waiting for the signal/variable `` to be set/reseted !" ); - //SendDataTask + //SendDataTask errorDescriptionDict.Add(580, "Waiting for the signal/variable `Waiting for system ready` to be set!" ); errorDescriptionDict.Add(581, "Waiting for the signal/variable `Waiting for online` to be set!" ); errorDescriptionDict.Add(582, "Waiting for the signal/variable `Inputs.Status.UserDataLockerJobID` to be equal to value of 'Config.CameraNo' or equal to zero!" ); @@ -825,90 +792,7 @@ public string ErrorDescription errorDescriptionDict.Add(597, "Waiting for the signal/variable `` to be set/reseted !" ); errorDescriptionDict.Add(598, "Waiting for the signal/variable `` to be set/reseted !" ); errorDescriptionDict.Add(599, "Waiting for the signal/variable `` to be set/reseted !" ); - //TemplateTask_20steps_3 - errorDescriptionDict.Add(600, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(601, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(602, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(603, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(604, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(605, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(606, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(607, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(608, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(609, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(610, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(611, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(612, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(613, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(614, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(615, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(616, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(617, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(618, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(619, "Waiting for the signal/variable `` to be set/reseted !" ); - //TemplateTask_20steps_4 - errorDescriptionDict.Add(620, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(621, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(622, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(623, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(624, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(625, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(626, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(627, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(628, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(629, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(630, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(631, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(632, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(633, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(634, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(635, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(636, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(637, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(638, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(639, "Waiting for the signal/variable `` to be set/reseted !" ); - //TemplateTask_20steps_5 - errorDescriptionDict.Add(640, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(641, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(642, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(643, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(644, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(645, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(646, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(647, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(648, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(649, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(650, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(651, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(652, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(653, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(654, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(655, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(656, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(657, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(658, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(659, "Waiting for the signal/variable `` to be set/reseted !" ); - //TemplateTask_20steps_6 - errorDescriptionDict.Add(660, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(661, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(662, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(663, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(664, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(665, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(666, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(667, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(668, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(669, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(670, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(671, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(672, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(673, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(674, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(675, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(676, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(677, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(678, "Waiting for the signal/variable `` to be set/reseted !" ); - errorDescriptionDict.Add(679, "Waiting for the signal/variable `` to be set/reseted !" ); + // General alarms errorDescriptionDict.Add(700, "Input variable `parent` has NULL reference in `Run` method!"); errorDescriptionDict.Add(701, "Input variable `Config.HWIDs.HW_Device` has invalid value in `Run` method!"); @@ -1287,44 +1171,22 @@ public string ErrorDescription errorDescriptionDict.Add(1306, "User data size oversized!"); - // HardResetAllCamerasTask + // HardResetAllCamerasTask errorDescriptionDict.Add(10000, "HardResetAllCamerasTask finished with error!"); errorDescriptionDict.Add(10001, "HardResetAllCamerasTask was aborted, while not yet completed!"); - // ResetTask + // ResetTask errorDescriptionDict.Add(10010, "ResetTask finished with error!"); errorDescriptionDict.Add(10011, "ResetTask was aborted, while not yet completed!"); - // TriggerTask + // TriggerTask errorDescriptionDict.Add(10020, "TriggerTask finished with error!"); errorDescriptionDict.Add(10021, "TriggerTask was aborted, while not yet completed!"); - // TemplateTask_10steps_4 - errorDescriptionDict.Add(10030, "TemplateTask_10steps_4 task finished with error!"); - errorDescriptionDict.Add(10031, "TemplateTask_10steps_4 task was aborted, while not yet completed!"); - // TemplateTask_10steps_5 - errorDescriptionDict.Add(10040, "TemplateTask_10steps_5 task finished with error!"); - errorDescriptionDict.Add(10041, "TemplateTask_10steps_5 task was aborted, while not yet completed!"); - // TemplateTask_10steps_6 - errorDescriptionDict.Add(10050, "TemplateTask_10steps_6 task finished with error!"); - errorDescriptionDict.Add(10051, "TemplateTask_10steps_6 task was aborted, while not yet completed!"); - // ReadResultsTask + // ReadResultsTask errorDescriptionDict.Add(10060, "ReadResultsTask task finished with error!"); errorDescriptionDict.Add(10061, "ReadResultsTask task was aborted, while not yet completed!"); // SendDataTask errorDescriptionDict.Add(10080, "SendDataTask task finished with error!"); errorDescriptionDict.Add(10081, "SendDataTask task was aborted, while not yet completed!"); - // TemplateTask_20steps_3 - errorDescriptionDict.Add(10100,"TemplateTask_20steps_3 task finished with error!"); - errorDescriptionDict.Add(10101, "TemplateTask_20steps_3 task was aborted, while not yet completed!"); - // TemplateTask_20steps_4 - errorDescriptionDict.Add(10120,"TemplateTask_20steps_4 task finished with error!"); - errorDescriptionDict.Add(10121, "TemplateTask_20steps_4 task was aborted, while not yet completed!"); - // TemplateTask_20steps_5 - errorDescriptionDict.Add(10140,"TemplateTask_20steps_5 task finished with error!"); - errorDescriptionDict.Add(10141, "TemplateTask_20steps_5 task was aborted, while not yet completed!"); - // TemplateTask_20steps_6 - errorDescriptionDict.Add(10160,"TemplateTask_20steps_6 task finished with error!"); - errorDescriptionDict.Add(10161, "TemplateTask_20steps_6 task was aborted, while not yet completed!"); - } string errorDescription = " "; @@ -1354,233 +1216,67 @@ public string ActionDescription actionDescriptionDict.Add(50, "Restore has been executed."); // HardResetAllCamerasTask actionDescriptionDict.Add(100, "HardResetAllCamerasTask started."); - actionDescriptionDict.Add(300, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(301, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(302, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(303, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(304, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(305, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(306, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(307, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(308, "HardResetAllCamerasTask running."); - actionDescriptionDict.Add(309, "HardResetAllCamerasTask running."); + actionDescriptionDict.Add(300, "HardResetAllCamerasTask running: waiting for the job id set."); + actionDescriptionDict.Add(301, "HardResetAllCamerasTask running: waiting for the job id cleared."); + actionDescriptionDict.Add(302, "HardResetAllCamerasTask finished."); actionDescriptionDict.Add(101, "HardResetAllCamerasTask finished succesfully."); actionDescriptionDict.Add(102, "HardResetAllCamerasTask restored."); // ResetTask actionDescriptionDict.Add(110, "ResetTask started."); - actionDescriptionDict.Add(310, "ResetTask running."); - actionDescriptionDict.Add(311, "ResetTask running."); - actionDescriptionDict.Add(312, "ResetTask running."); - actionDescriptionDict.Add(313, "ResetTask running."); - actionDescriptionDict.Add(314, "ResetTask running."); - actionDescriptionDict.Add(315, "ResetTask running."); - actionDescriptionDict.Add(316, "ResetTask running."); - actionDescriptionDict.Add(317, "ResetTask running."); - actionDescriptionDict.Add(318, "ResetTask running."); - actionDescriptionDict.Add(319, "ResetTask running."); + actionDescriptionDict.Add(310, "ResetTask running: checking if the data buffer is free."); + actionDescriptionDict.Add(311, "ResetTask running: writing the user data."); + actionDescriptionDict.Add(312, "ResetTask running: checking if the data buffer is free."); + actionDescriptionDict.Add(313, "ResetTask running: releasing the data buffer."); + actionDescriptionDict.Add(314, "ResetTask finished."); actionDescriptionDict.Add(111, "ResetTask finished succesfully."); actionDescriptionDict.Add(112, "ResetTask restored."); // TriggerTask actionDescriptionDict.Add(120, "TriggerTask started."); - actionDescriptionDict.Add(320, "TriggerTask running, Waiting for system ready"); - actionDescriptionDict.Add(321, "TriggerTask running, Waiting for online"); - actionDescriptionDict.Add(322, "TriggerTask running, camera reset before trigger"); - actionDescriptionDict.Add(323, "TriggerTask running, trigger set"); - actionDescriptionDict.Add(324, "TriggerTask running, wait for trigger ack"); - actionDescriptionDict.Add(325, "TriggerTask running, wait for trigger ack false>"); - actionDescriptionDict.Add(326, "TriggerTask running, trigger done>"); - actionDescriptionDict.Add(327, "TriggerTask running, "); - actionDescriptionDict.Add(328, "TriggerTask running, "); - actionDescriptionDict.Add(329, "TriggerTask running, "); + actionDescriptionDict.Add(320, "TriggerTask running: waiting for the system to be ready."); + actionDescriptionDict.Add(321, "TriggerTask running: waiting for the system to be online."); + actionDescriptionDict.Add(322, "TriggerTask running: reseting camera before trigger started."); + actionDescriptionDict.Add(323, "TriggerTask running: reseting the trigger."); + actionDescriptionDict.Add(324, "TriggerTask running: setting the trigger and waiting for acknowledgement."); + actionDescriptionDict.Add(325, "TriggerTask running: resetting the trigger and waiting for acknowledgment to fall."); + actionDescriptionDict.Add(326, "TriggerTask finished."); actionDescriptionDict.Add(121, "TriggerTask finished succesfully."); actionDescriptionDict.Add(122, "TriggerTask restored."); - // TemplateTask_10steps_4 - actionDescriptionDict.Add(130, "TemplateTask_10steps_4 started."); - actionDescriptionDict.Add(330, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(331, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(332, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(333, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(334, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(335, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(336, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(337, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(338, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(339, "TemplateTask_10steps_4 running, "); - actionDescriptionDict.Add(131, "TemplateTask_10steps_4 finished succesfully."); - actionDescriptionDict.Add(132, "TemplateTask_10steps_4 restored."); - // TemplateTask_10steps_5 - actionDescriptionDict.Add(140, "TemplateTask_10steps_5 started."); - actionDescriptionDict.Add(340, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(341, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(342, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(343, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(344, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(345, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(346, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(347, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(348, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(349, "TemplateTask_10steps_5 running, "); - actionDescriptionDict.Add(141, "TemplateTask_10steps_5 finished succesfully."); - actionDescriptionDict.Add(142, "TemplateTask_10steps_5 restored."); - // TemplateTask_10steps_6 - actionDescriptionDict.Add(150, "TemplateTask_10steps_6 started."); - actionDescriptionDict.Add(350, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(351, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(352, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(353, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(354, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(355, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(356, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(357, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(358, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(359, "TemplateTask_10steps_6 running, "); - actionDescriptionDict.Add(151, "TemplateTask_10steps_6 finished succesfully."); - actionDescriptionDict.Add(152, "TemplateTask_10steps_6 restored."); - // ReadResultsTask actionDescriptionDict.Add(160, "ReadResultsTask started."); - actionDescriptionDict.Add(360, "ReadResultsTask running, Waiting for system ready"); - actionDescriptionDict.Add(361, "ReadResultsTask running, Waiting for online"); - actionDescriptionDict.Add(362, "ReadResultsTask running, check correct JOBID"); - actionDescriptionDict.Add(363, "ReadResultsTask running, Wait for free Data Buffer"); - actionDescriptionDict.Add(364, "ReadResultsTask running, Lock Data Buffer"); - actionDescriptionDict.Add(365, "ReadResultsTask running, set bit user data"); - actionDescriptionDict.Add(366, "ReadResultsTask running, wait for result valid"); - actionDescriptionDict.Add(367, "ReadResultsTask running, calculate size variant data"); - actionDescriptionDict.Add(368, "ReadResultsTask running, check HW correct config"); - actionDescriptionDict.Add(369, "ReadResultsTask running, move data from HW to byte buffer"); - actionDescriptionDict.Add(370, "ReadResultsTask running, Read Data"); - actionDescriptionDict.Add(371, "ReadResultsTask running, set release result data ack"); - actionDescriptionDict.Add(372, "ReadResultsTask running, set for free Data Buffer"); - actionDescriptionDict.Add(373, "ReadResultsTask running, set bit user data"); - actionDescriptionDict.Add(374, "ReadResultsTask running, set release Locker"); - actionDescriptionDict.Add(375, "ReadResultsTask running, Result ack>"); - actionDescriptionDict.Add(376, "ReadResultsTask running, "); - actionDescriptionDict.Add(377, "ReadResultsTask running, "); - actionDescriptionDict.Add(378, "ReadResultsTask running, "); - actionDescriptionDict.Add(379, "ReadResultsTask running, "); + actionDescriptionDict.Add(360, "ReadResultsTask running: waiting for the system to be ready."); + actionDescriptionDict.Add(361, "ReadResultsTask running: waiting for the system to be online."); + actionDescriptionDict.Add(362, "ReadResultsTask running: checking the correct JobId."); + actionDescriptionDict.Add(363, "ReadResultsTask running: waiting for the data buffer is free."); + actionDescriptionDict.Add(364, "ReadResultsTask running: locking the data buffer."); + actionDescriptionDict.Add(365, "ReadResultsTask running: setting the user data."); + actionDescriptionDict.Add(366, "ReadResultsTask running: waiting for the results to be valid."); + actionDescriptionDict.Add(367, "ReadResultsTask running: calculating the size of the data."); + actionDescriptionDict.Add(369, "ReadResultsTask running: copying the data from hardware to the buffer."); + actionDescriptionDict.Add(370, "ReadResultsTask running: reading the data."); + actionDescriptionDict.Add(371, "ReadResultsTask running: acknowledging the result data."); + actionDescriptionDict.Add(372, "ReadResultsTask running: reseting the job load Id."); + actionDescriptionDict.Add(373, "ReadResultsTask running: loading the job."); + actionDescriptionDict.Add(374, "ReadResultsTask finished."); actionDescriptionDict.Add(161, "ReadResultsTask finished succesfully."); actionDescriptionDict.Add(162, "ReadResultsTask restored."); // SendDataTask actionDescriptionDict.Add(180, "SendDataTask started."); - actionDescriptionDict.Add(380, "SendDataTask running, Waiting for system ready"); - actionDescriptionDict.Add(381, "SendDataTask running, Waiting for online"); - actionDescriptionDict.Add(382, "SendDataTask running, Wait for free Data Buffer"); - actionDescriptionDict.Add(383, "SendDataTask running, Lock Data Buffer"); - actionDescriptionDict.Add(384, "SendDataTask running, serialize User data DATA"); - actionDescriptionDict.Add(385, "SendDataTask running, check HW correct config"); - actionDescriptionDict.Add(386, "SendDataTask running, Fill User DATA"); - actionDescriptionDict.Add(387, "SendDataTask running, set bit user data"); - actionDescriptionDict.Add(388, "SendDataTask running, wait for confirm user data ack"); - actionDescriptionDict.Add(389, "SendDataTask running, wait for release user data ack"); + actionDescriptionDict.Add(380, "SendDataTask running: waiting for the system to be ready."); + actionDescriptionDict.Add(381, "SendDataTask running: waiting for the system to be online."); + actionDescriptionDict.Add(382, "SendDataTask running: waiting for the data buffer is free."); + actionDescriptionDict.Add(383, "SendDataTask running: locking the data buffer."); + actionDescriptionDict.Add(384, "SendDataTask running: setting the length of the data to sent."); + actionDescriptionDict.Add(386, "SendDataTask running: filling the user data to be sent."); + actionDescriptionDict.Add(387, "SendDataTask running: waiting for falling of the set user data acknowledge."); + actionDescriptionDict.Add(388, "SendDataTask running: waiting for the confirmation of the user data."); + actionDescriptionDict.Add(389, "SendDataTask running: waiting for falling of the set user data acknowledge."); actionDescriptionDict.Add(390, "SendDataTask running, wait for release user data ack"); - actionDescriptionDict.Add(391, "SendDataTask running, data handler set"); - actionDescriptionDict.Add(392, "SendDataTask running, wait for data handler ack"); - actionDescriptionDict.Add(393, "SendDataTask running, wait for data handler ack false"); - actionDescriptionDict.Add(394, "SendDataTask running, "); - actionDescriptionDict.Add(395, "SendDataTask running, "); - actionDescriptionDict.Add(396, "SendDataTask running, "); - actionDescriptionDict.Add(397, "SendDataTask running, "); - actionDescriptionDict.Add(398, "SendDataTask running, "); - actionDescriptionDict.Add(399, "SendDataTask running, "); + actionDescriptionDict.Add(391, "SendDataTask running: data handler set."); + actionDescriptionDict.Add(392, "SendDataTask running: waiting for data handler ack."); + actionDescriptionDict.Add(393, "SendDataTask running: waiting for data handler ack false."); + actionDescriptionDict.Add(394, "SendDataTask finished."); actionDescriptionDict.Add(181, "SendDataTask finished succesfully."); actionDescriptionDict.Add(182, "SendDataTask restored."); - // TemplateTask_20steps_3 - actionDescriptionDict.Add(200, "TemplateTask_20steps_3 started."); - actionDescriptionDict.Add(400, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(401, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(402, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(403, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(404, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(405, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(406, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(407, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(408, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(409, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(410, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(411, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(412, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(413, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(414, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(415, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(416, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(417, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(418, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(419, "TemplateTask_20steps_3 running, "); - actionDescriptionDict.Add(201, "TemplateTask_20steps_3 finished succesfully."); - actionDescriptionDict.Add(202, "TemplateTask_20steps_3 restored."); - // TemplateTask_20steps_4 - actionDescriptionDict.Add(220, "TemplateTask_20steps_4 started."); - actionDescriptionDict.Add(420, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(421, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(422, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(423, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(424, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(425, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(426, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(427, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(428, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(429, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(430, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(431, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(432, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(433, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(434, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(435, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(436, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(437, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(438, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(439, "TemplateTask_20steps_4 running, "); - actionDescriptionDict.Add(221, "TemplateTask_20steps_4 finished succesfully."); - actionDescriptionDict.Add(222, "TemplateTask_20steps_4 restored."); - // TemplateTask_20steps_5 - actionDescriptionDict.Add(240, "TemplateTask_20steps_5 started."); - actionDescriptionDict.Add(440, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(441, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(442, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(443, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(444, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(445, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(446, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(447, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(448, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(449, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(450, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(451, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(452, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(453, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(454, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(455, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(456, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(457, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(458, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(459, "TemplateTask_20steps_5 running, "); - actionDescriptionDict.Add(241, "TemplateTask_20steps_5 finished succesfully."); - actionDescriptionDict.Add(242, "TemplateTask_20steps_5 restored."); - // TemplateTask_20steps_6 - actionDescriptionDict.Add(260, "TemplateTask_20steps_6 started."); - actionDescriptionDict.Add(460, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(461, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(462, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(463, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(464, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(465, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(466, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(467, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(468, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(469, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(470, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(471, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(472, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(473, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(474, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(475, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(476, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(477, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(478, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(479, "TemplateTask_20steps_6 running, "); - actionDescriptionDict.Add(261, "TemplateTask_20steps_6 finished succesfully."); - actionDescriptionDict.Add(262, "TemplateTask_20steps_6 restored."); // General alarms actionDescriptionDict.Add(700, "Input variable `parent` has NULL reference in `Run` method!"); actionDescriptionDict.Add(701, "Input variable `Config.HWIDs.HW_Device` has invalid value in `Run` method!"); @@ -1627,7 +1323,6 @@ public string ActionDescription actionDescriptionDict.Add(741, "Error writing the AxoVisionProOutputStructure_hwID_19!"); actionDescriptionDict.Add(742, "Error writing the AxoVisionProOutputStructure_hwID_20!"); - // HardResetAllCamerasTask actionDescriptionDict.Add(10000, "HardResetAllCamerasTask finished with error!"); actionDescriptionDict.Add(10001, "HardResetAllCamerasTask was aborted, while not yet completed!"); @@ -1637,15 +1332,6 @@ public string ActionDescription // TriggerTask actionDescriptionDict.Add(10020, "TriggerTask finished with error!"); actionDescriptionDict.Add(10021, "TriggerTask was aborted, while not yet completed!"); - // TemplateTask_10steps_4 - actionDescriptionDict.Add(10030, "TemplateTask_10steps_4 task finished with error!"); - actionDescriptionDict.Add(10031, "TemplateTask_10steps_4 task was aborted, while not yet completed!"); - // TemplateTask_10steps_5 - actionDescriptionDict.Add(10040, "TemplateTask_10steps_5 task finished with error!"); - actionDescriptionDict.Add(10041, "TemplateTask_10steps_5 task was aborted, while not yet completed!"); - // TemplateTask_10steps_6 - actionDescriptionDict.Add(10050, "TemplateTask_10steps_6 task finished with error!"); - actionDescriptionDict.Add(10051, "TemplateTask_10steps_6 task was aborted, while not yet completed!"); // ReadResultsTask actionDescriptionDict.Add(10060, "ReadResultsTask task finished with error!"); @@ -1653,19 +1339,6 @@ public string ActionDescription // SendDataTask actionDescriptionDict.Add(10080, "SendDataTask task finished with error!"); actionDescriptionDict.Add(10081, "SendDataTask task was aborted, while not yet completed!"); - // TemplateTask_20steps_3 - actionDescriptionDict.Add(10100, "TemplateTask_20steps_3 task finished with error!"); - actionDescriptionDict.Add(10101, "TemplateTask_20steps_3 task was aborted, while not yet completed!"); - // TemplateTask_20steps_4 - actionDescriptionDict.Add(10120, "TemplateTask_20steps_4 task finished with error!"); - actionDescriptionDict.Add(10121, "TemplateTask_20steps_4 task was aborted, while not yet completed!"); - // TemplateTask_20steps_5 - actionDescriptionDict.Add(10140, "TemplateTask_20steps_5 task finished with error!"); - actionDescriptionDict.Add(10141, "TemplateTask_20steps_5 task was aborted, while not yet completed!"); - // TemplateTask_20steps_6 - actionDescriptionDict.Add(10160, "TemplateTask_20steps_6 task finished with error!"); - actionDescriptionDict.Add(10161, "TemplateTask_20steps_6 task was aborted, while not yet completed!"); - } string actionDescription = " "; @@ -1681,9 +1354,7 @@ public string ActionDescription { return " "; } - } } } - }