LUA Handbuch zu EEP

Aus EEP Handbuch
Version vom 7. September 2018, 11:16 Uhr von Marc Horstmann (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

System-Variables

   


EEPVer EEPVer
Type: Variable
               if EEPVer < 11 then
print( "Train control via Lua not possible!" )
               end
Used in: Script
Assigned by: EEP
Requirements: EEP 10.2 Plug-In 2
Purpose: EEP assignes the version number of EEP to this variable.


   


EEPTime EEPTime
Type Variable
               if EEPTime == alteZeit + 50 then
print( "Exactly 50 seconds have passed" )
alteZeit = EEPTime
               elseif EEPTime > alte Zeit + 50 then
print( "More than 50 seconds have passed" )
alteZeit = EEPTime
               else
print( "50 seconds didn't expired yet" )
               end
Used in: Script
Assigned by: EEP
Requirements: EEP 10.2 Plug-In 2
Purpose: EEP writes the actual time to this variable. The value counts the number of seconds that passed since midnight (EEP-time).
   


EEPTimeH EEPTimeH
Type: Variable
               print("It is now: "..EEPTimeH..":"..EEPTimeM.." o'clock")
Used in: Script
Assigned by: EEP
Requirements: EEP 10.2 Plug-In 2
Purpose: EEP writes the current EEP hour into this variable.


   


EEPTimeM EEPTimeM
Type: Variable
               print("It is now: "..EEPTimeH..":"..EEPTimeM.." o'clock")
Used in: Script
Assigned by: EEP
Requirements: EEP 10.2 Plug-In 2
Purpose: EEP writes the current EEP minute into this variable.


   


EEPTimeS EEPTimeS
Type: Variable
               if EEPTimeS == 15 then
EEPSetSignal( 1 , 1 ) -- switch traffic light 1 to green
               elseif EEPTimeS == 45 then
EEPSetSignal( 1 , 2 ) -- switch traffic light 1 to red
               end
Used in: Script
Assigned by: EEP
Requirements: EEP 10.2 Plug-In 2
Purpose: EEP writes the current EEP second into this variable.