W
Dear all,
I have a problem with Modbus Register address,
Let i explain clearly which problem i have for you ,
As you said , the register address from : 0000-FFFFh ,
In our program PME , i used the Modicon (Schneider) program, They have
format is :
*0*xxxx, (coil)
*1*xxxx,(Input status)
*3*xxxx,(Input Register)
*4*xxxx,(Holding Register),
All of them is* 5 digits* ,
that mean if i have register address example is : 1005( 4 digits)
When i enter in my program , it will be :
1005 = 0xxxx + 1005
11005 =1xxxx + 1005
31005 =3xxxx + 1005
41005 =4xxxx + 1005,
As picture attached , it is OK .
But, if i have the register is : 50768 (5 digits).
if i enter this address in my program :
50768 = 0xxxx + 50768
60768 =1xxxx + 50768
80768 =3xxxx +50768
90768 =4xxxx +50768
*They will be not the same with the format address : 0xxxx, 1xxxx,
3xxxx,4xxxx, ? *
If i enter them as below :
050768
150768
350768
450768
They are *6 digi*ts, what will be happen? , is it Ok ?
If you have any info in this problem, please help me at [email protected]
Thanks
I have a problem with Modbus Register address,
Let i explain clearly which problem i have for you ,
As you said , the register address from : 0000-FFFFh ,
In our program PME , i used the Modicon (Schneider) program, They have
format is :
*0*xxxx, (coil)
*1*xxxx,(Input status)
*3*xxxx,(Input Register)
*4*xxxx,(Holding Register),
All of them is* 5 digits* ,
that mean if i have register address example is : 1005( 4 digits)
When i enter in my program , it will be :
1005 = 0xxxx + 1005
11005 =1xxxx + 1005
31005 =3xxxx + 1005
41005 =4xxxx + 1005,
As picture attached , it is OK .
But, if i have the register is : 50768 (5 digits).
if i enter this address in my program :
50768 = 0xxxx + 50768
60768 =1xxxx + 50768
80768 =3xxxx +50768
90768 =4xxxx +50768
*They will be not the same with the format address : 0xxxx, 1xxxx,
3xxxx,4xxxx, ? *
If i enter them as below :
050768
150768
350768
450768
They are *6 digi*ts, what will be happen? , is it Ok ?
If you have any info in this problem, please help me at [email protected]
Thanks