Forum Home › Forums › Understanding the Software › modbus device communication error
Tagged: modbus device
- This topic has 13 replies, 3 voices, and was last updated 9 months, 3 weeks ago by
Mikhail.
-
AuthorPosts
-
December 16, 2024 at 10:55 am #15782
Hcinarli
ParticipantWhen 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.
December 16, 2024 at 11:29 am #15783manjey73
ParticipantIf 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
December 16, 2024 at 12:30 pm #15784Hcinarli
ParticipantIs 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?
December 16, 2024 at 1:39 pm #15786manjey73
ParticipantEach 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.
December 16, 2024 at 2:10 pm #15787Hcinarli
ParticipantAs 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?
December 16, 2024 at 2:37 pm #15796Mikhail
ModeratorHello,
Please provide screenshots the explain the issue.December 16, 2024 at 3:01 pm #15800Hcinarli
ParticipantI want to create a channel in this way and change the led colour according to its status, but I can’t do it.
December 16, 2024 at 3:03 pm #15801Hcinarli
ParticipantI want to create a channel in this way and change the led colour according to its status, but I can’t do it.
December 16, 2024 at 4:34 pm #15802manjey73
ParticipantTag code – Status (reserved name for driver)
Format channel – Normal-ErrorNormal = 0
Error = 1Need only one channel
Data Type – empty
December 16, 2024 at 5:36 pm #15808Hcinarli
ParticipantI 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.
December 16, 2024 at 5:52 pm #15810Hcinarli
ParticipantNow 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?
December 16, 2024 at 5:56 pm #15811Hcinarli
ParticipantFor example, as the next step, when I cannot access the device, I want to print the device is not accessed ?
December 16, 2024 at 8:21 pm #15812manjey73
ParticipantYou 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.
December 17, 2024 at 11:15 am #15818 -
This topic was modified 9 months, 3 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.