Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Public eth As Ethernet
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
eth.InitializeAdvanced(....)
If eth.GetLinkStatus=eth.LinkOn Then
Log("Link ON")
Else
Log("Link OFF")
End If
End Sub