ns.fariz

Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • in reply to: String dynamic text change according input channel value #5770
    ns.fariz
    Participant

    Hi Mikhail,
    I try to input your given formula, but my server turn error.

    function double MyFunc()
    {
     switch ((int)Cnl)
     {
      case 3:
       return 1;
      case 4:
       return 2;
      case 5:
       return 3;
      default:
       return 0;
     }
    }

    Is there something wrong?

    in reply to: Read individual holding register #5743
    ns.fariz
    Participant

    Thanks, I will try it.
    But, could you explain what this code mean? I want to understand it, so I can use for another alarm.

    in reply to: Read individual holding register #5740
    ns.fariz
    Participant

    Hi Mikhail,

    I need to read alarm from register offset 2048. But manufacturer put it 4 alarm at one register 16 bit. So 1-4 bit is High Oil Temperature, 5-8 High Coolant Temperature, 9-12 Low Oil Pressure, 13-16 Emergency Stop. And modbus device will return value from 0-15 depending on alarm condition. So I need to read 1-4 bit of register offset 2048. what formula it is I can use?

Viewing 3 posts - 16 through 18 (of 18 total)