Home

 

Erfahrung

 

Referenzen

 

Sondermaschinen

 

MSR-Maschinen

 

SPS-Programmierung

 

Visualisierung HMI

 

Elektro CAD

 

Leistungsprofil

 

Personalia

 

SW-Development

 

Dokumentation

 

 

 

Impressum & DSGVO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OB1 Main : Main Program Sweep

 

 

 

Netzwerk 1: Start measuring runtime (Start 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 PLC Impulse" := "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"();

>"DI MAIN P01"();

// ----

>"DI OUT P01"();

 

 

 

Netzwerk 4: First cycle evaluation

 

U "M00 log 1"

L s5t#2s

SE "T00 OB1 FirstCycle SE"

U "T00 OB1 FirstCycle SE"

= "M00 OB1 FirstCycle"

 

 

 

Netzwerk 5: Flag logic =0, =1

 

"M00 log 0" := FALSE;

"M00 log 1" := TRUE;

 

 

 

Netzwerk 6: End measuring PLC-Runtime (End Cycle)

 

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