| | |
| | | { |
| | | if (aoistage.Stage1.IsExist && info1.WidthMeasurement_Ack == false) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Left_Ack)) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Left_Result)) |
| | | { |
| | | info1.WidthMeasurement_Ack = true; |
| | |
| | | isAoiPanel1WidthMeasurementAck = aoiStage.Stage1.IsExist == false || aoiStage.Panel1.WidthMeasurement_Ack; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (aoistage.Stage2.IsExist && info2.WidthMeasurement_Ack == false) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Right_Ack)) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Right_Result)) |
| | | { |
| | |
| | | aoistage.Panel2 = info2; |
| | | |
| | | isAoiPanel2WidthMeasurementAck = aoiStage.Stage2.IsExist == false || aoiStage.Panel2.WidthMeasurement_Ack; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | if (aoistage.Stage1.IsExist && info1.WidthMeasurement_Ack == false) |
| | | { |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0886_MEASUREMENT_LEFT_ERROR); |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0888_MEASUREMENT_WIDTH_ERROR); |
| | | } |
| | | |
| | | if (aoistage.Stage2.IsExist && info2.WidthMeasurement_Ack == false) |
| | | { |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0887_MEASUREMENT_RIGHT_ERROR); |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0888_MEASUREMENT_WIDTH_ERROR); |
| | | } |
| | | |
| | | measurement_user_command = new Form_User_Command_Set("Width Measurement"); |
| | |
| | | { |
| | | if (aoistage.Stage1.IsExist && info1.WidthMeasurement_Ack == false) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Left_Ack)) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Left_Result)) |
| | | { |
| | | info1.WidthMeasurement_Ack = true; |
| | |
| | | |
| | | isAoiPanel1WidthMeasurementAck = aoiStage.Stage1.IsExist == false || aoiStage.Panel1.WidthMeasurement_Result; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return; |
| | |
| | | } |
| | | |
| | | if (aoistage.Stage2.IsExist && info2.WidthMeasurement_Ack == false) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Right_Ack)) |
| | | { |
| | | if (equipment.sm.Get_Bit(Vision_Address.Measurement_Right_Result)) |
| | | { |
| | |
| | | aoistage.Panel2 = info2; |
| | | |
| | | isAoiPanel2WidthMeasurementAck = aoiStage.Stage2.IsExist == false || aoiStage.Panel2.WidthMeasurement_Result; |
| | | } |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | if (aoistage.Stage1.IsExist && info1.WidthMeasurement_Ack == false) |
| | | { |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0886_MEASUREMENT_LEFT_ERROR); |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0888_MEASUREMENT_WIDTH_ERROR); |
| | | } |
| | | |
| | | if (aoistage.Stage2.IsExist && info2.WidthMeasurement_Ack == false) |
| | | { |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0887_MEASUREMENT_RIGHT_ERROR); |
| | | Alarm_Manager.Instance.Occurred(En_Alarm_List.AL_0888_MEASUREMENT_WIDTH_ERROR); |
| | | } |
| | | |
| | | measurement_user_command = new Form_User_Command_Set("Width Measurement"); |