Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Dos variables en la misma linea #19496

    JeReC
    Member

      Toda la razon, es exactamente como queria
      Aparte del color, cambio tambien el atributo de la etiqueta de On y Off

      El codigo queda asi:
      # Asignacion de las variables internas.
      Color1_P1;STRING;INTERNAL;label=”Color1_P1″;value=”Green”;hidden=true;write_access=0
      Color2_P1;STRING;INTERNAL;label=”Color2_P1″;value=”DarkGray”;hidden=true;write_access=0
      Label1_P1;STRING;INTERNAL;label=”Label1_P1″;value=”Ences”;hidden=true;write_access=0
      Label2_P1;STRING;INTERNAL;label=”Label2_P1″;value=”Apagat”;hidden=true;write_access=0
      # Interruptor
      M1N14E03;BOOL;3203.14;label=”Interrutor_1″;style=”button”;color=M1N13S01 ? Color1_P1 : Color2_P1;on_label= M1N13S01 ? Label1_P1 : Label2_P1;write_access=3
      # Salida
      M1N13S01;BOOL;3503.00;label=”Salida_1″;hidden=true

      Merci Joan

    Viewing 1 post (of 1 total)
    Copyright © SweetWilliam, S.L 2009-2013. All rights reserved.
    Science and Technology Park of the University of Girona, Emili Grahit, 91 (NarcĂ­s Monturiol building, Office P3-B03) 17003-Girona. Phone +34972183244