FB62 SEQ1 P04 : Spring winding point inspection - SEQ1 (slave 4)

 

 

 

Netzwerk 1: Pre-Setting

 

"M04 RdyToStart" :=

"M04 HomPos" AND "DI MAIN P05".SEQ1.Shift_Register.%X21;

 

 

 

Netzwerk 2: Execute SEQ1

 

#SSM1(STEP_PLS := "HMI KEY".P04.GLB.F17_StepPls,

STEP_MNS := "HMI KEY".P04.GLB.F18_StepMns,

GOTO_STEP := "HMI KEY".P04.GLB.F19_GoToStep,

GOTO_STEP_NO := "HMI KEY".P04.GLB.GoToStep,

MAX_STEP := 12);

 

 

 

Netzwerk 3: Step jump distributor

 

CASE #SEQ1.S.stepact OF

0: // Waiting for SEQ1 to start

"M04 SEQ1 Active" := FALSE;

IF NOT "DI MAIN P05".SEQ1.Shift_Register.%X21 THEN

"M04 Enbl toRTT" := TRUE;

RETURN;

END_IF;

#SSM1.S.stepd := #SSM1.S.steps AND "M04 RdyToStart" AND "M04 Enbl frmRTT";

1: // Z06 lift cylinder WP (down)

"M04 SEQ1 Active" := TRUE;

"DI OUT P04".Z06.VLV.CmdExe_HP := FALSE;

"DI OUT P04".Z06.VLV.CmdExe_WP := "HMI KEY".P04.Z06.F12_Enable_WP;

IF "DI OUT P04".Z06.FB_WP THEN

"M04 Enbl frmRTT" := FALSE;

#SSM1.S.stepd := TRUE;

END_IF;

2: // G04 Clamp cylinder WP (close)

"DI OUT P04".G04.VLV.CmdExe_HP := FALSE;

"DI OUT P04".G04.VLV.CmdExe_WP := "HMI KEY".P04.G04.F12_Enable_WP;

#SSM1.S.stepd := "DI OUT P04".G04.FB_WP;

3: // Z06 Lift cylinder HP (up)

"DI OUT P04".Z06.VLV.CmdExe_WP := FALSE;

"DI OUT P04".Z06.VLV.CmdExe_HP := "HMI KEY".P04.Z06.F11_Enable_HP;

#SSM1.S.stepd := "DI OUT P04".Z06.FB_HP;

4: // Query ifm_O2Vx camera not busy

IF #SSM1.S.DlyStart.Q THEN

#SSM1.S.c1.start := NOT "DI OUT P04".CAM2_IO.OUT.oxBusy;

#SSM1.S.c1.set := 20;

RETURN;

END_IF;

#SSM1.S.stepd := "DI OUT P04".CAM2_IO.IN.ixTrigger := #SSM1.S.c1.done;

5: // Start ifm O2Vx camera inspecting spring winding point 1/2

IF "DI OUT P04".CAM2_IO.OUT.owStatus = w#16#F001 THEN

"DI MAIN P05".SEQ1.Shift_Register_BadParts.%X21 := TRUE;

END_IF;

#SSM1.S.stepd := "DI OUT P04".CAM2_IO.OUT.oxDone;

6: // Z05 Rotary cylinder CW

"DI OUT P04".Z05.VLV.CmdExe_HP := FALSE;

"DI OUT P04".Z05.VLV.CmdExe_WP := "HMI KEY".P04.Z05.F12_Enable_WP;

#SSM1.S.stepd := "DI OUT P04".Z05.FB_WP;

7: // Query ifm_O2Vx camera not busy

IF #SSM1.S.DlyStart.Q THEN

#SSM1.S.c1.start := NOT "DI OUT P04".CAM2_IO.OUT.oxBusy;

#SSM1.S.c1.set := 20;

RETURN;

END_IF;

#SSM1.S.stepd := "DI OUT P04".CAM2_IO.IN.ixTrigger := #SSM1.S.c1.done;

8: // Start ifm O2Vx camera inspecting spring winding point 2/2

IF "DI OUT P04".CAM2_IO.OUT.owStatus = w#16#F001 THEN

"DI MAIN P05".SEQ1.Shift_Register_BadParts.%X21 := TRUE;

END_IF;

#SSM1.S.stepd := "DI OUT P04".CAM2_IO.OUT.oxDone;

9: // Z05 Rotary cylinder ACW

"DI OUT P04".Z05.VLV.CmdExe_WP := FALSE;

"DI OUT P04".Z05.VLV.CmdExe_HP := "HMI KEY".P04.Z05.F11_Enable_HP;

#SSM1.S.stepd := "DI OUT P04".Z05.FB_HP;

10: // Z06 Lift cylinder WP (down)

"DI OUT P04".Z06.VLV.CmdExe_HP := FALSE;

"DI OUT P04".Z06.VLV.CmdExe_WP := "HMI KEY".P04.Z06.F12_Enable_WP;

#SSM1.S.stepd := "DI OUT P04".Z06.FB_WP;

11: // G04 Clamp cylinder HP (open)

"DI OUT P04".G04.VLV.CmdExe_WP := FALSE;

"DI OUT P04".G04.VLV.CmdExe_HP := "HMI KEY".P04.G04.F11_Enable_HP;

#SSM1.S.stepd := "DI OUT P04".G04.FB_HP;

12: // Z06 Lift cylinder HP (up)

#FLT."3_FAULT_00_15".%X0 := "DI MAIN P05".SEQ1.Shift_Register_BadParts.%X21;

"DI OUT P04".Z06.VLV.CmdExe_WP := FALSE;

"DI OUT P04".Z06.VLV.CmdExe_HP := "HMI KEY".P04.Z06.F11_Enable_HP;

"M04 SEQ1 Done" := "M04 Enbl toRTT" := "DI OUT P04".Z06.FB_HP;

END_CASE;

 

 

Home

 

Erfahrung

 

Referenzen

 

Sondermaschinen

 

MSR-Maschinen

 

SPS-Programmierung

 

Visualisierung HMI

 

Elektro CAD

 

Leistungsprofil

 

Personalia

 

SW-Development

 

Dokumentation

 

 

 

Impressum & DSGVO