modbus device communication error

Forum Home Forums Understanding the Software modbus device communication error

Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #15782
    Hcinarli
    Participant

    When I disconnect from the Modbus device, I get a warning in the schema editor, for example to change the colour of the LED to red or to print a warning that the connection has been lost! When I write a script, I cannot log in to the interface, I get an error message like the application is not ready, if the connection is broken or I cannot access the device, I need to specify this in the schema editor if status:error. Can you help me thank you very much.

    • This topic was modified 9 months, 3 weeks ago by Mikhail.
    #15783
    manjey73
    Participant

    If you wrote a script with an error, the Server will not start, you can see the cause of the error in the Server log, which is likely to be in CalcEngine.cs

    #15784
    Hcinarli
    Participant

    Is there any way to get the warning of the device that I cannot access without writing a script in the schema editor? If I can only do it with script, can you share a script example?

    #15786
    manjey73
    Participant

    Each device has a service channel with the Status tag code-0=Normal, 1=Error

    Just add a channel to the created driver and specify the Status tag code for it, select the Normal-Error format to display in text or leave D to display 0 or 1 as desired.

    #15787
    Hcinarli
    Participant

    As you stated, I added a channel to my driver, I edited it as Tag Number 1 Tag Code Error, I entered the channel I added as input to the led object in the scheme editor and made conditions, but the led did not change colour, can you explain a little more descriptively with visuals if possible?

    #15796
    Mikhail
    Moderator

    Hello,
    Please provide screenshots the explain the issue.

    #15800
    Hcinarli
    Participant

    12

    I want to create a channel in this way and change the led colour according to its status, but I can’t do it.

    #15801
    Hcinarli
    Participant

    1

    2

    I want to create a channel in this way and change the led colour according to its status, but I can’t do it.

    #15802
    manjey73
    Participant

    Tag code – Status (reserved name for driver)
    Format channel – Normal-Error

    Normal = 0
    Error = 1

    Need only one channel

    Data Type – empty

    • This reply was modified 9 months, 3 weeks ago by manjey73.
    • This reply was modified 9 months, 3 weeks ago by manjey73.
    • This reply was modified 9 months, 3 weeks ago by manjey73.
    #15808
    Hcinarli
    Participant

    1

    I understand, I edited it as in the image, but where should I enter the status of normal or error, that is, the area specified as (reserved name for driver), that is, how will I detect the status through this channel? How should I proceed now, as in the image Thanks in advance.

    #15810
    Hcinarli
    Participant

    Now I understand and solved it, thanks for the help, I’m sorry if I had difficulty understanding, is there a resource you can recommend to learn rapidscada?

    #15811
    Hcinarli
    Participant

    For example, as the next step, when I cannot access the device, I want to print the device is not accessed ?

    #15812
    manjey73
    Participant

    You can probably create a calculated channel with the right length to accommodate your message. Specify it as Format = String.
    Specify that these channels are not saved in the database, so as not to waste space. And write a script that will write a line with your message into this channel when the signal = 1 is in the form of an ascii or unicode string.

    You can also add new enumeration text in auxiliary tables – formats. For example, for each device that you will have. It will most likely be

    it seems there are educational videos on youtube. There is also a Documentation section on the website.

    • This reply was modified 9 months, 3 weeks ago by manjey73.
    #15818
    Mikhail
    Moderator

    is there a resource you can recommend to learn rapidscada?

    Check this link.

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