FB79 OUT P05 : Guide rail control - outputs (master)

[hit  <- on your browser to return]

 

 

 

Netzwerk 1: Call manual operation

 

#MANUAL(ST_MANU := "M00 ManuCmpltMa run",

        MODULE_HP := "HMI KEY".P04.GLB.F20_HomPos,

        SUPPORT_SEQ := "M04 RunHomPos");

 

 

 

Netzwerk 2: Pre-Setting

 

 

 

 

 

Netzwerk 3: M01 Spiral conveyor

 

#Z02(CMD_WP := FALSE,

     CMD_HP := FALSE,

     FB_WP := "E03 Z02 WP",

     FB_HP := "E03 Z02 HP",

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A03 Z02 WP",

     VALV_HP => "A03 Z02 HP");

 

 

 

Netzwerk 4: M02 Feed rail conveyor

 

#CAM1(ixTrigger := #CAM1_IO.IN.ixTrigger,

      ixChApp := #CAM1_IO.IN.ixChApp,

      iiAppNo := #CAM1_IO.IN.iiAppNo,

      oxBusy => #CAM1_IO.OUT.oxBusy,

      oxDone => #CAM1_IO.OUT.oxDone,

      oxError => #CAM1_IO.OUT.oxError,

      owStatus => #CAM1_IO.OUT.owStatus,

      oiActAppNo => #CAM1_IO.OUT.oiActAppNo,

      odiRcvdLen => #CAM1_IO.OUT.odiRcvdLen,

      ioudtCfgData := #CAM1_IO.IN_OUT);

 

 

 

Netzwerk 5: M03 Elevating belt-conveyor

 

#M03(CMD_ONOFF := "M00 AutoCmpltMa run" AND #Support.M03_TON.Q,

     FD_BACK := "E00 M03 FdBk",

     MCB := "E00 M03 MCB",

     ESTOP := "HMI KEY".P05.M03.F12_Enable_WP,

     ACK_FLT := "M00 ACK Imp",

     MOT_CW => "A00 M03 MC");

 

 

 

Netzwerk 6: M04 OK belt conveyor

 

#M04(CMD_ONOFF := "M05 M04 OnOff",

     FD_BACK := "E00 M04 FdBk",

     MCB := "E00 M04 MCB",

     ESTOP := "HMI KEY".P05.M01.F12_Enable_WP,

     ACK_FLT := "M00 ACK Imp",

     MOT_CW => "A00 M04 MC");

 

 

 

Netzwerk 7: M06 NOK belt conveyor

 

#M06(CMD_ONOFF := "M05 M06 OnOff",

     FD_BACK := "E00 M06 FdBk",

     MCB := "E00 M04 MCB",

     ESTOP := "HMI KEY".P05.M06.F12_Enable_WP,

     ACK_FLT := "M00 ACK Imp",

     MOT_CW => "A00 M06 MC");

 

 

 

Netzwerk 8: Z08/Z09 Guide-rail clamp cylinder 1+2 front

 

#dummy_WP := "E05 Z08 WP" AND "E05 Z09 WP";

#dummy_HP := "E05 Z08 HP" AND "E05 Z09 HP";

 

#Z08(CMD_WP := FALSE,

     CMD_HP := FALSE,

     FB_WP := #dummy_WP,

     FB_HP := #dummy_HP,

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A05 Z08 WP",

     VALV_HP => "A05 Z08 HP");

 

"A05 Z09 WP" := "A05 Z08 WP";

"A05 Z09 HP" := "A05 Z08 HP";

 

 

 

Netzwerk 9: Z10 Guide-rail cylinder

 

#Z10(CMD_WP := FALSE,

     CMD_HP := FALSE,

     FB_WP := "E05 Z10 WP",

     FB_HP := "E05 Z10 HP",

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A05 Z10 WP",

     VALV_HP => "A05 Z10 HP");

 

 

 

Netzwerk 10: Z11 NOK picking flap

 

#Z11(CMD_WP := "M00 AutoCmpltMa run" AND "DI MAIN P05".SEQ1.Shift_Register_BadParts.%X24,

     CMD_HP := "M00 AutoCmpltMa run" AND NOT "DI MAIN P05".SEQ1.Shift_Register_BadParts.%X24,

     FB_WP := "E05 Z11 WP",

     FB_HP := "E05 Z11 HP",

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A05 Z11 WP",

     VALV_HP => "A05 Z11 HP");

// Qery bad spring Forwards Sliding-Sontrol (FSC)

IF "A05 Z11 WP" THEN

    IF "M05 FSC BadPart 1/2" AND "M05 FSC BadPart 2/2" AND NOT "E05 FSC BadPart 2/2" THEN

        "M05 FSC BadPart 1/2" := "M05 FSC BadPart 2/2" := FALSE;

        "DatOfMod".GLB.STS.CounterBadParts := "DatOfMod".GLB.STS.CounterBadParts + 1;

        IF "DatOfMod".GLB.STS.CounterBadParts >= "DatOfMod".GLB.STS.RunTimeCntr_seq4 THEN

            "M00 AutoCmpltMa run" := FALSE;

        END_IF;

    ELSIF NOT "E05 FSC BadPart 2/2" AND "E05 FSC BadPart 1/2" THEN

        "M05 FSC BadPart 1/2" := TRUE;

    ELSIF "M05 FSC BadPart 1/2" AND NOT "E05 FSC BadPart 1/2" AND "E05 FSC BadPart 2/2" THEN

        "M05 FSC BadPart 2/2" := TRUE;

    END_IF;

END_IF;

 

 

 

Netzwerk 11: Z12 OK picking flap

 

#Z12(CMD_WP := "M00 AutoCmpltMa run" AND NOT "DI MAIN P05".SEQ1.Shift_Register_BadParts.%X24,

     CMD_HP := "M00 AutoCmpltMa run" AND "DI MAIN P05".SEQ1.Shift_Register_BadParts.%X24,

     FB_WP := "E05 Z12 WP",

     FB_HP := "E05 Z12 HP",

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A05 Z12 WP",

     VALV_HP => "A05 Z12 HP");

// Qery good spring Forwards Sliding-Sontrol (FSC)

IF "A05 Z12 WP" THEN

    IF "M05 FSC GoodPart 1/2" AND "M05 FSC GoodPart 2/2" AND NOT "E05 FSC GoodPart 2/2" THEN

        "M05 FSC GoodPart 1/2" := "M05 FSC GoodPart 2/2" := FALSE;

        "DatOfMod".GLB.STS.CounterGoodParts := "DatOfMod".GLB.STS.CounterGoodParts + 1;

        IF "DatOfMod".GLB.STS.CounterGoodParts >= "DatOfMod".GLB.STS.RunTimeCntr_seq3 THEN

            "M00 AutoCmpltMa run" := FALSE;

        END_IF;

    ELSIF NOT "E05 FSC GoodPart 2/2" AND "E05 FSC GoodPart 1/2" THEN

        "M05 FSC GoodPart 1/2" := TRUE;

    ELSIF "M05 FSC GoodPart 1/2" AND NOT "E05 FSC GoodPart 1/2" AND "E05 FSC GoodPart 2/2" THEN

        "M05 FSC GoodPart 2/2" := TRUE;

    END_IF;

END_IF;

 

 

 

Netzwerk 12: Z13 Box pre-stopper fill station

 

#Z13(CMD_WP := FALSE,

     FB_WP := "E05 Z13 WP",

     FB_HP := "E05 Z13 HP",

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A05 Z13 WP");

 

 

 

Netzwerk 13: Z14 Box stopper fill station

 

#Z14(CMD_WP := FALSE,

     FB_WP := "E05 Z14 WP",

     FB_HP := "E05 Z14 HP",

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A05 Z14 WP");

 

 

 

Netzwerk 14: Z15 Feed rail stopper

 

#Z15(CMD_WP := FALSE,

     FB_WP := "E05 Z15 WP",

     FB_HP := "E05 Z15 HP",

     RLS := "E00 Y56 WP",

     ACK_FLT := "M00 ACK Imp",

     VALV_WP => "A05 Z15 WP");