LUA Handbuch zu EEP: Unterschied zwischen den Versionen

Aus EEP Handbuch
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „ <h1>System-Variables</h1> <br /> <br /> <br /> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collaps…“)
 
Zeile 1: Zeile 1:
 
     <h1>System-Variables</h1>
 
     <h1>System-Variables</h1>
  
     <br />
+
      
    <br />
+
    <br />
+
 
     <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;">
 
     <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;">
 
         <tr>
 
         <tr>
Zeile 13: Zeile 11:
 
             <td style="padding: 10px;">Variable</td>
 
             <td style="padding: 10px;">Variable</td>
 
             <td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;">
 
             <td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;">
                 if EEPVer < 11 then<br />
+
                 <pre>
                <div style="text-indent:20px;">print( "Train control via Lua not possible!" )</div>
+
    if EEPVer < 11 then
                end<br />
+
        print( "Train control via Lua not possible!" )
 +
    end
 +
                </pre>
 +
 
 
             </td>
 
             </td>
 
         </tr>
 
         </tr>

Version vom 7. September 2018, 11:30 Uhr

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.