|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OB1 Main : Main Program Sweep |
|
|
|
Network 1: Start measuring runtime (Start Cycle) "HMI SYS".Support.LastCycle := RUNTIME("HMI SYS".Support.LastCycle_inout); |
|
|
|
Network 2: Pulse generator "HMI SYS".Support.Sav_Clock_Byte := "HMI SYS".Support.Sav_Clock_Byte XOR "M00_Clock_Byte"; "M00_Clock_Impulses" :="HMI SYS".Support.Sav_Clock_Byte AND"M00_Clock_Byte"; "HMI SYS".Support.Sav_Clock_Byte := "M00_Clock_Byte"; |
|
|
|
Network 3: CALL distributor "DI MAIN GLB"(); // Operating Mode Global Machine "DI MAIN P01"(); // P01 Main programme management "DI MAIN P02"(); // P02 Main programme management
"DI OUT P01"(); // Assign out puts P01 "DI OUT P02"(); // Assign out puts P02 |
|
|
|
Network 4: First cycle evaluation "HMI SYS".Support.FirstCycle_TON(IN := TRUE,PT := t#2s); "M00 OB1 FirstCycle" := "HMI SYS".Support.FirstCycle_TON.Q; |
|
|
|
Network 5: End measuring runtime (=LastCycle) "HMI SYS".Support.LastCycle_real := LREAL_TO_REAL(IN := RUNTIME("HMI SYS".Support.LastCycle_inout)); |
|