FB SAFE GLB

 

Home

 

Erfahrung

 

Referenzen

 

Sondermaschinen

 

MSR-Maschinen

 

SPS-Programmierung

 

Visualisierung HMI

 

Elektro CAD

 

Leistungsprofil

 

Personalia

 

SW-Development

 

Dokumentation

 

 

 

Impressum & DSGVO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OB1 Main Main Program Sweep (Cycle)

 

 

 

Netzwerk 1: Start measuring runtime (=Last Cycle)

"HMI SYS".Support.LastCycle := RUNTIME("HMI SYS".Support.LastCycle_inout);

 

 

 

Netzwerk 2: Pulse generator

"HMI SYS".Support.Sav_Clock_Byte := "HMI SYS".Support.Sav_Clock_Byte XOR "M00_Clock_Byte";

"M00_Impulse_Byte" := "HMI SYS".Support.Sav_Clock_Byte AND "M00_Clock_Byte";

"HMI SYS".Support.Sav_Clock_Byte := "M00_Clock_Byte";

 

 

 

Netzwerk 3: CALL distributor

"DI MAIN GLB"(); // Global operation mode

"DI MAIN P01"(); // Main programme management P01

"DI MAIN P02"(); // Main programme management P02

//-----

"DI OUT P01"(); // Output stage P01

"DI OUT P02"(); // Output stage P02

 

 

 

Netzwerk 4: Create delayed first cycle flag

"HMI SYS".Support.FirstCycle_TON(IN := TRUE,

                                 PT := t#2s);

"M00 OB1 FirstCycle" := "HMI SYS".Support.FirstCycle_TON.Q;

 

 

 

Netzwerk 5: End measuring runtime (=Last Cycle)

"HMI SYS".Support.LastCycle_real := LREAL_TO_REAL(IN := RUNTIME("HMI SYS".Support.LastCycle_inout));