SendStandardCommand, SendBinaryCommand, SendRequestCommand

Forum Home Forums Development and Integration SendStandardCommand, SendBinaryCommand, SendRequestCommand

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1642
    Jayan Mathew
    Participant

    What is the userID parameter in the following methods of ServerComm class:
    SendStandardCommand, SendBinaryCommand, SendRequestCommand

    Whether it is same as serverUser parameter in CommSettings constructor or something else?
    Also is userID mandatory (What is its significance)?

    #1643
    MikhailMikhail
    Moderator

    It is an ID of a user from the configuration database which you can see in Administrator. You can set it to 0 means undefined. User ID is just an information who send a command.

    #1644
    Jayan Mathew
    Participant

    Hi Mikhail, thanks for the clarification.

    One more related question:
    Is there some equivalent (for the above commands) for a non-TCP (or location independent) situation?

    #1645
    MikhailMikhail
    Moderator

    Hi,
    Could you provide more details or example of the situation?

    #1646
    Jayan Mathew
    Participant

    Using ScadaData.dll, I can get output channels from ctrlcnl.dat file.
    Suppose I want to send some commands to that channels.

    #1648
    MikhailMikhail
    Moderator

    In this case you can use SendStandardCommand, SendBinaryCommand and SendRequestCommand methods which establish TCP connection with SCADA-Server. Why you need non-TCP way of sending commands?

    #1650
    Jayan Mathew
    Participant

    Hi Mikhail,

    Because, I just wanted to avoid the connection settings (CommSettings), in the same way I can read current values. May be also because I am not fully aware of its architecture.
    Still, I agree that the TCP method is more generic and usable in a wide sense.
    Thanks.

    #1651
    MikhailMikhail
    Moderator

    Hi,
    You can create special files. Try to stop SCADA-Server then send commands using Communicator. You can see the files in C:\SCADA\ScadaComm\Cmd
    There is an example how to do it.

    • This reply was modified 4 years, 11 months ago by MikhailMikhail.
    #1655
    Jayan Mathew
    Participant

    That is a useful piece of information. Thanks for sharing.

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