Obsidean_VM/03-VM/45 - HENKEL - VM Auto Chang.../Q1 Change Over Problems - B...

3.1 KiB

Before testing with Lenin, we prepare changes to the Q1 PLC to prevent simultaneous use of the HMI by the guides and remote changeover. In the Vetromeccanica logic, the HMI contains recipes for motors and parameters for the FamilyName format, which is used by transport-motors and motor-guides. The PLC needs full access to the HMI to read these values. In the original software, the motor-guides changeover and remote changeover of transport-motors competed for HMI access because they were not designed for the same CPU or HMI. Our changes allow the transport-motor to access the HMI first during remote changeover, using signals from Henkel, and then pass access to the motor-guides. This way, both systems can access the HMI one at a time to get the needed values.

The FC800 use the HMI like this :

"Rt_LoadRemoteRecipe"(CLK := "FormatManagementQE1_D".IN_EndFormatManagement);

IF "Rt_LoadRemoteRecipe".Q THEN
    "DB HMI".DBW_36 := 0;
    "DB HMI".DBW_12 := 2;
    "DB HMI".DBW_14 := DINT_TO_INT("FormatManagementQE1_D".NextSku.ProdFamily);
    "DB HMI".DBW_16 := 0;
    "DB HMI".DBW_10 := 70;
END_IF;

IF ("DB HMI".DBW_36 = 4) OR ("DB HMI".DBW_36 = 12) AND
    ("DB HMI".DBW_10 = 70) THEN
    "DB HMI".DBW_10 := 0;
    "DB HMI".DBW_12 := 0;
    "DB HMI".DBW_14 := 0;
    "DB HMI".DBW_16 := 0;
END_IF;

And the FC1100: at the same time

(************************ ORDINE CONTROLLO - Update ************************)

"DB HMI".DBW_10 := "DB Collegamento HMI".OrderControl."Order number";
"DB HMI".DBW_12 := "DB Collegamento HMI".OrderControl.OC_Parameter_1;
"DB HMI".DBW_14 := "DB Collegamento HMI".OrderControl.OC_Parameter_2;
"DB HMI".DBW_16 := "DB Collegamento HMI".OrderControl.OC_Parameter_3;

To avoid this problem temporarily, we freeze the motor-guides logic while Q1 prepares the remote change-over and reads the new recipe. Then, we unfreeze the motor-guides to allow the normal change-over.

The logic for the "Remote" changeover is that the HMI will display three popups to inform and request permission to proceed. Ensure the transport is empty before accepting these popups, as this will carry out the EMD guides and all related changeovers.

To display the last popup, we dispatch the PopUp_LineReady event before the motor-guides and EMD perform the change-over. This ensures compliance with the AUTEFA-HENKEL logic by setting ComSV.TL25_WriteToSv.ToAutefa.dw0.x[1] to FALSE after completing all related change-overs, including the motor-guides. This change also allows the three popups to appear quickly at the start of the "Remote" change-over. After the operator confirms, the motor-guides and EMD will start changing automatically. The signals to HENKEL and AUTEFA will be correct because they are sent after the change-over is properly finished.

Time ago there was a request to stop the motor transport if someone starts changing the motor guides, but after stopping, the line couldn't restart once the guides were changed. To fix this, we set it up to temporarily stop the transport during the change-over by disabling all motors, without shutting down the transport cycle..