Sending Int16 or Uint16 as command value

Forum Home Forums Understanding the Software Sending Int16 or Uint16 as command value

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #525
    MikhailMikhail
    Moderator

    My advice was inaccurate.
    You should create an output channel with standard command type.
    In the source of your formula create a byte array of 8 elements:

    byte[] arr = new byte[8];

    Fill it by the required values. Then convert back to double using BitConverter class:
    return BitConverter.ToDouble(arr)

    #536
    Avatardejan
    Participant

    Hi Mikhail,

    Thanks for the tip.

    But before I managed to try it, I bumped into a trivial problem – can’t make the output channel formula to work. I wrote a simple formula – Cmd*10, but when I check “Communicator” “Device data” for the command value, I always get the original command value, not the one calculated by the formula. For example, command value =10, value from the Communicator is also 10, but it should be 100 because of the formula.

    I defined the formula by checking the “Formula used” check box, and writing “Cmd*10” into “Formula” text box. Then clicked the “Pass to Scada server” and then clicked the “Restart Scada server service”.

    Any idea of what am I missing here?

    #547
    Avatardejan
    Participant

    Hi Mikhail,

    Trying to solve that command formula problem I have, I reverted Scada Server back to version 4.4 and now command formulas work.

    To be 100% sure, I have uninstalled 4.4 and installed 4.5 Server again. Command formulas don’t work. Then installed 4.4, formulas work.

    So definitely there is a bug in the new 4.5 Server.

    #548
    MikhailMikhail
    Moderator

    Hi Dejan,

    Thanks for the response. The bug was fixed. You can download the installation package again and reinstall SCADA-Server.

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