Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tuto Script LUA
#15
J'avance sur ce script...

J'ai coché dans ma variable :
save + rw + visible + enable

J'ai modifié le script comme ca :


Code:
local Variable_Activation_Inter = calaos:getInputValue("intern_7")

if Variable_Activation_Inter == false then
  Variable_Activation_Inter = true
  calaos:setOutputValue("output_78", true)
  calaos:setOutputValue("output_54", true)
  calaos:setOutputValue("output_14", true)

elseif Variable_Activation_Inter == true then
  calaos:setOutputValue("output_78", false)
  calaos:setOutputValue("output_54", false)
  calaos:setOutputValue("output_14", false)
  Variable_Activation_Inter = false

end
return true


J'ai ajouté ma variable dans mes condition d'allumage et d'éteinte lumière avec le Détecteur mouvement.

Lorsque j'appui sur le BP les lumières s'allument, mais si je rappui ca ne s'éteint pas. En fait en faisant des test je pense que la variable reste a False...

Comment arriver a modifier son état ?
CALAOS V3 | WAGO 750-849 | NUC NUC5PPYH | Ecran tactile ELO 1537L avec Ampli VGA et adaptateur USB/RS232 Grillé Angry  |
Sondes PT1000 | DMX RGBW pour Rubans Leds 24v | Caméras POE Weisky
Reply


Messages In This Thread
Tuto Script LUA - by tom - 01-08-2014, 12:27 AM
RE: Tuto Script LUA - by raoulh - 01-08-2014, 10:29 AM
RE: Tuto Script LUA - by tom - 01-08-2014, 02:14 PM
RE: Tuto Script LUA - by raoulh - 01-08-2014, 02:22 PM
RE: Tuto Script LUA - by captainigloo - 01-08-2014, 02:59 PM
RE: Tuto Script LUA - by tom - 01-09-2014, 12:06 AM
RE: Tuto Script LUA - by raoulh - 01-09-2014, 10:10 AM
RE: Tuto Script LUA - by tom - 01-09-2014, 10:36 AM
RE: Tuto Script LUA - by raoulh - 01-09-2014, 10:40 AM
RE: Tuto Script LUA - by tom - 01-09-2014, 07:00 PM
RE: Tuto Script LUA - by Cyridle - 02-01-2015, 12:29 AM
RE: Tuto Script LUA - by Eric64 - 12-22-2015, 04:42 PM
RE: Tuto Script LUA - by raoulh - 12-22-2015, 05:58 PM
RE: Tuto Script LUA - by Eric64 - 12-22-2015, 06:15 PM
RE: Tuto Script LUA - by Eric64 - 12-22-2015, 06:44 PM
RE: Tuto Script LUA - by captainigloo - 12-23-2015, 03:50 PM
RE: Tuto Script LUA - by Eric64 - 12-23-2015, 07:20 PM
RE: Tuto Script LUA - by Eric64 - 12-23-2015, 07:47 PM
RE: Tuto Script LUA - by captainigloo - 12-23-2015, 08:36 PM
RE: Tuto Script LUA - by Eric64 - 02-15-2016, 09:46 AM
RE: Tuto Script LUA - by raoulh - 02-15-2016, 10:25 AM
RE: Tuto Script LUA - by Eric64 - 02-16-2016, 12:15 PM
RE: Tuto Script LUA - by raoulh - 02-16-2016, 12:29 PM
RE: Tuto Script LUA - by Eric64 - 02-16-2016, 03:12 PM
RE: Tuto Script LUA - by eh3an2010 - 12-15-2017, 07:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)