FUNCTION_BLOCK "FB_CallF2HManagement"
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR 
      Lfb_F2HManagement { S7_SetPoint := 'False'} : "FB_F2H_Management_Rework";
      "*****FEHLT******" { S7_SetPoint := 'True'} : Bool;
   END_VAR


BEGIN
	REGION Info
	(* Company: Schönenberger Systeme GmbH / (C) Copyright (2022). All rights reserved.
	-----------------------------------------------------------------------------------------
	Title: FB_CallAMRManagement
	Comment/Function: Call all F2H Management FBs
	Library/Family: -
	Author: department: "Automatisierung" ; person in charge / contact: C.Nottelmann (Automated Intelligence)
	Target System: CPU 1518F-4 PN/DP
	Engineering: TIA Portal V20
	Restrictions: -
	Requirements: -
	-----------------------------------------------------------------------------------------
	Change log table:
	Version     | Date       | Signature (Safety) | Expert in charge | Changes applied
	------------|------------|--------------------|------------------|-----------------------
	001.000.000 | 2025-10-15 | -                  |                  | Header added on 15.10.2025
	                                                                   
	*)
	END_REGION
	
	REGION Call
	    #Lfb_F2HManagement(xInQuit:=#"*****FEHLT******",
	                       wsIn_ObjectName:=WSTRING#'F2H Management',
	                       udtIn_DataMES:="DB_Handshake".str_TelegramMES.udtIn_DataMES,
	                       t_InTRO505Watchdog:=T#60s,
	                       t_InTRO510Watchdog:=T#60s,
	                       t_InTRO514Watchdog:=T#60s,
	                       t_InTRO518Watchdog:=T#60s,
	                       t_InTRO522Watchdog:=T#60s,
	                       stInOutJam5000_1:="DB_JamArea5000".stJam5000_1,
	                       stInOutJam5000_2:="DB_JamArea5000".stJam5000_2,
	                       stInOutJam5000_3:="DB_JamArea5000".stJam5000_3,
	                       stInOutJam5001_1:="DB_JamArea5001".stJam5001_1,
	                       stInOutJam5001_2:="DB_JamArea5001".stJam5001_2,
	                       stInOutJam5001_3:="DB_JamArea5001".stJam5001_3,
	                       stInOutJam5002_1:="DB_JamArea5002".stJam5002_1,
	                       stInOutJam5002_2:="DB_JamArea5002".stJam5002_2,
	                       stInOutJam5002_3:="DB_JamArea5002".stJam5002_3,
	                       stInOutJam5002_4:="DB_JamArea5002".stJam5002_4,
	                       stInOutJam5002_5:="DB_JamArea5002".stJam5002_5,
	                       stInOutJam5002_6:="DB_JamArea5002".stJam5002_6,
	                       stInOutJam5002_7:="DB_JamArea5002".stJam5002_7,
	                       stInOutJam5002_8:="DB_JamArea5002".stJam5002_8,
	                       stInOutJam5002_9:="DB_JamArea5002".stJam5002_9,
	                       stInOutJam5002_10:="DB_JamArea5002".stJam5002_10,
	                       stInOutJam5003_1:="DB_JamArea5003".stJam5003_1,
	                       stInOutJam5003_2:="DB_JamArea5003".stJam5003_2,
	                       stInOutJam5004_1:="DB_JamArea5004".stJam5004_1,
	                       stInOutJam5004_2:="DB_JamArea5004".stJam5004_2,
	                       stInOutJam5005_1:="DB_JamArea5005".stJam5005_1,
	                       stInOutJam5005_2:="DB_JamArea5005".stJam5005_2,
	                       stInOutJam5005_3:="DB_JamArea5005".stJam5005_3,
	                       stInOutJam5006_1:="DB_JamArea5006".stJam5006_1,
	                       stInOutJam5006_2:="DB_JamArea5006".stJam5006_2,
	                       stInOutJam5006_3:="DB_JamArea5006".stJam5006_3,
	                       stInOutJam5007_1:="DB_JamArea5007".stJam5007_1,
	                       stInOutJam5007_2:="DB_JamArea5007".stJam5007_2,
	                       stInOutJam5007_3:="DB_JamArea5007".stJam5007_3,
	                       stInOutJam5008_1:="DB_JamArea5008".stJam5008_1,
	                       stInOutJam5008_2:="DB_JamArea5008".stJam5008_2,
	                       stInOutJam5008_3:="DB_JamArea5008".stJam5008_3,
	                       udt_TRO503:="DB_Handshake".str_TROs.udt_TRO503,
	                       udt_TRO501:="DB_Handshake".str_TROs.udt_TRO501,
	                       udt_TRO505:="DB_Handshake".str_TROs.udt_TRO505,
	                       udt_TRO510:="DB_Handshake".str_TROs.udt_TRO510,
	                       udt_TRO514:="DB_Handshake".str_TROs.udt_TRO514,
	                       udt_TRO518:="DB_Handshake".str_TROs.udt_TRO518,
	                       udt_TRO522:="DB_Handshake".str_TROs.udt_TRO522,
	                       udt_InOut_HandshakeDataMES:="DB_Handshake".udt_HandshakeMESStorage,
	                       arInOutWorkstations:="DB_Prozessdaten".stWorkStations.arWorkStations);
	END_REGION
END_FUNCTION_BLOCK

