FB49 OUT P02 : Spring elasticity reading - outputs (slave 2) |
|
|
|
Netzwerk 1: Call manual operation
#MANUAL(ST_MANU := "M00 ManuCmpltMa run", MODULE_HP := "HMI KEY".P02.GLB.F20_HomPos, SUPPORT_SEQ := "M02 RunHomPos"); |
|
|
|
Netzwerk 2: Pre-Setting force sensor
"HSC_FORCE"(SwGate := "M02 HSC OnOff", ErrorAck := "M00 ACK Imp", EventAck := FALSE, StatusHW => #HSC_FORC_IO.OUT.StatusHW, StatusGate => #HSC_FORC_IO.OUT.StatusGate, Error => #HSC_FORC_IO.OUT.Error, MeasuredValue => #HSC_FORC_IO.OUT.MeasuredValue, SetCountValue := #HSC_FORC_IO.InOut.SetCountValue); #HSC_FORC_IO.UserStatusFlags.StatusDQ0 := "HSC_FORCE".UserStatusFlags.StatusDQ0; #HSC_FORC_IO.UserStatusFlags.StatusDQ1 := "HSC_FORCE".UserStatusFlags.StatusDQ1;
"A02 M5_Z EN" := "M00 EStp ok"; |
|
|
|
Netzwerk 3: M5_Z axis Spring elasticity servo drive // Execute output stage #M5_Z.DRV.MC_Home.Execute := "HMI KEY".P02."M5_Z".F5_Set_Ref_Point AND "M00 ManuCmpltMa run"; #M5_Z.DRV.MC_Power.StartMode := #M5_Z.DRV.MC_MoveAbsolute.Direction := 1; #M5_Z.DRV.MC_MoveJog.PosCntrl := TRUE; // Halt axis #tmp_enable_axis := "HMI KEY".P02."M5_Z".F11_Enable_HP AND "HMI KEY".P02."M5_Z".F12_Enable_WP; #Support.M5_Z_FEg_halt_Imp := #Support.M5_Z_FEg_Halt AND NOT #tmp_enable_axis; #Support.M5_Z_FEg_Halt := #tmp_enable_axis;
#M5_Z(ENABLE := "A02 M5_Z EN", HALT_01 := "HMI KEY".P02."M5_Z".F21_HALT_GoToPos OR "DI MAIN GLB".TOF_ManuOff_Pulse.Q OR #Support.M5_Z_FEg_halt_Imp, MCB := "E00 M05 MCB", START_ABSO := #tmp_enable_axis AND ("M02 M5_Z GoToPosAbso" AND ("M00 AutoCmpltMa run" OR "M02 RunHomPos" OR "DI MAIN P02".SEQ1.SSM1.S.stepin) OR "HMI EY".P02."M5_Z".F17_GoToAbsoPos), START_RELA := #tmp_enable_axis AND ("M02 M5_Z GoToPosRela" OR "HMI KEY".P02.M5_Z.F18_GoToRelaPos), JOG_WP := #MANUAL.M5_Z.CmdExe_slow_fast_WP, JOG_HP := #MANUAL.M5_Z.CmdExe_slow_fast_HP, ACK_FLT := "M00 ACK FP", HOM_MODE := 3, AXIS :="+2-M5_Z"); |
|