sending only zero command by communicator

Forum Home Forums Understanding the Software sending only zero command by communicator

This topic contains 4 replies, has 2 voices, and was last updated by Mikhail Mikhail 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5826
    Avatar
    dineshkumargowd
    Participant

    Dear Mikhail,

    I have assigned some output coils in the commands, set them as multiple and element count as ” 1 “. When i am trying to send the command 1 to the commands it is just sending ” 0 ” every time.

    Please find the attached image for your reference and kindly do the needful how can i do this..

    Write Coil only zero

    https://drive.google.com/file/d/1CHlKXC_3DvNTu856SLkBpJXZ5wMjgf6M/view?usp=sharing

    #5829
    Mikhail
    Mikhail
    Moderator

    Hello,

    To assign multiple coils, you should send a command of binary type and specify a byte array as a command data.
    The command data array contains 00 and 01 as I remember.

    #5830
    Mikhail
    Mikhail
    Moderator

    If you send Standard command you can play with a formula of input channel:

    BitConverter.ToDouble(new byte[] { 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00})

    In the formula set the required byte to 1.

    #5832
    Avatar
    dineshkumargowd
    Participant

    Dear Mikhail,

    I didn’t understand about this formula. I have tried this in output channel, but the server is showing error.

    Trailing image for your reference.

    https://drive.google.com/file/d/11-B14xYAftoIb-XwzY10gW925Kxmp1Fz/view?usp=sharing

    Kindly help me how can i convert the standard command to byte.

    #5845
    Mikhail
    Mikhail
    Moderator

    Hello,

    Please try:
    BitConverter.ToDouble(new byte[] { 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00}, 0)

    I don’t test formulas on the forum, because this is a part of Extended Support.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.