in log calculate unknown token

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bledad
Normal user
Posts: 88
Joined: 23 Nov 2020, 10:57
Location: France

in log calculate unknown token

#1 Post by bledad » 21 May 2024, 15:21

hello,
in log i've " calculate unknown token "
what's wrong with my script ?

Code: Select all

On System#Boot Do
  Let,1,0
Endon

On gr#Power_W Do
 If [gr#Power_W] > 100 and [Var#1]= 0 // si w > 100 pause 3s et var 1 = 0
   Timerset,3,3
   //Let,1,1
 	
 Elseif [gr#Power_W] => 400 and [Var#1]= 1 // si w > 400 et var 1 = 1 securite
    LongPulse_mS,14,1,600 // impulsion arret
   TimerSet,2,1
 
 Elseif [gr#Power_W] < 5 and [Var#1]= 1 // si w < 5 = arret var1 mis a 0
	Let,1,0
  resetenergy,0
 Endif

Endon

On piet#State Do
  If [piet#State]=0
    Let,1,0
    LongPulse_mS,14,1,600 // impulsion pieton 5s
    TimerSet,1,5
 Endif  
Endon

On Rules#Timer=3 Do
  Let,1,1
  TimerSet,3,0
Endon



On Rules#Timer=2 Do
   Let,1,0
   LongPulse_mS,14,1,600 // impulsion retour
   TimerSet,2,0
Endon



On Rules#Timer=1 Do
   LongPulse_mS,14,1,600 // impulsion pieton arret
   Let,1,0
   TimerSet,1,0
Endon

User avatar
Ath
Normal user
Posts: 3726
Joined: 10 Jun 2018, 12:06
Location: NL

Re: in log calculate unknown token

#2 Post by Ath » 21 May 2024, 16:03

bledad wrote: 21 May 2024, 15:21 in log i've " calculate unknown token "
what's wrong with my script ?
This:

Code: Select all

 Elseif [gr#Power_W] => 400 and [Var#1]= 1 // si w > 400 et var 1 = 1 securite
Should be:

Code: Select all

 Elseif [gr#Power_W] >= 400 and [Var#1]= 1 // si w > 400 et var 1 = 1 securite
/Ton (PayPal.me)

bledad
Normal user
Posts: 88
Joined: 23 Nov 2020, 10:57
Location: France

Re: in log calculate unknown token

#3 Post by bledad » 21 May 2024, 16:32

oups !!!
thank you

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests