LED not working at output channel

Forum Home Forums Understanding the Software LED not working at output channel

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8559
    Avatarafzal
    Participant

    Hi,

    i would like to use output channel to blink the LED in .sch file.

    let’s say, to switch ON the motor, i send the command “1” on output channel 701 and i wrote in LED condition
    if output channel 701, values =1, LED blink Green.

    why LED is not working for output channel instead for input channel it’s working.

    do i have to set the formula somewhere to read that value of output channel by server ?

    Thanks

    #8561
    MikhailMikhail
    Moderator

    Hi,

    Led can blink if you bind it to input channel. You should create a formula that changes input channel value every second, for example.

    Something like

    public double Blink()
    {
      return DateTime.UtcNow.Second % 2 > 0 ? 1 : 0;
    }

    Then use this formula in the input channel row.

    #8563
    Avatarafzal
    Participant

    is it possible to use it for output channel ?

    in my case it is not working for output channel.
    i would like to use for output channel to show that switch is pressed/ON.

    #8567
    MikhailMikhail
    Moderator

    Output channel only declares a command. It doesn’t send command itself, and it doesn’t store any value.
    To display any kind of value, you need an input channel which stores a value.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.