AdvancedHMI Software

General Category => Open Discussion => Topic started by: abdala on May 03, 2018, 11:20:22 AM

Title: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 11:20:22 AM
error modbus rtu and tcp
(http://a.up-00.com/2018/05/152536076752161.jpg)
Title: Re: error modbus rtu and tcp
Post by: Godra on May 03, 2018, 05:23:31 PM
What are those other errors you have in Immediate Window, prior to the error in your picture?

If you set this driver's DisableSubscriptions property to True and run the program, does the window show at all?
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 05:42:37 PM
When the value changes, the program does not run

This problem exists even in previous versions

You have tried changing the value and the program does not work
Title: Re: error modbus rtu and tcp
Post by: Godra on May 03, 2018, 05:50:15 PM
If your program doesn't run when you set this driver's DisableSubscriptions property to True, it means that something else is not working properly.

Can you take a picture of Immediate Window errors (extend its size to fit all the errors)?
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 06:08:33 PM
This error does not always come but it is present in all versions of the program
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 06:09:50 PM
What is your Facebook account to communicate with you
Title: Re: error modbus rtu and tcp
Post by: Godra on May 03, 2018, 06:15:16 PM
I don't have a Facebook account.

This forum communication should be sufficient to help resolve the errors.

If you remove the driver all together from your project and the program still doesn't run then that should indicate problems with something else.
Title: Re: error modbus rtu and tcp
Post by: Godra on May 03, 2018, 06:27:24 PM
Here is a picture of the form that I just deleted all drivers from.

It still runs and the controls show the error.
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 06:34:09 PM
Add ModbusRTUCom1 and you will see what song

DisableSubscriptions=true

Do not read
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 06:44:58 PM
How to read timer in modbus rtu
Title: Re: error modbus rtu and tcp
Post by: Archie on May 03, 2018, 06:45:19 PM
What controls do you have on your form? There is a control that is subscribing prior to OnCreateControl. You could begin deleting controls until the error goes away to see which one is the culprit.
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 06:51:44 PM
ok Thank

How to read timer in modbus rtu
Title: Re: error modbus rtu and tcp
Post by: Archie on May 03, 2018, 06:53:33 PM
Timers typically map to a 4000 series address
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 07:00:16 PM
It seems that the company PLC ls has improved communication 

modbus rtu and tcp


I am using now

Example:
TMR 1=4001

Try it now on PLC LS XGB  does not work   

read D0 NOT TIMR 0
Title: Re: error modbus rtu and tcp
Post by: abdala on May 03, 2018, 07:32:27 PM
Thanks for finding the solution to the problem of reading the Taimer