A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-0912:10 AM
Help transmiting data from M241 to modbus device
Hello guys,
I have created some structures in somachine in order to be transmitted with modbus from a M241 PLC. The problem is that all these data are being transmitted but not correctly. For example I have the following data:
W:int:=50;
VA:int:=1000;
Varpower:int:=2000;
Hz:udint:=50;
TotWhInj:ulint:=100;
TotWhAbs:ulint:=100;
So these data are being transmitted with modbus and I am checking with modbus poll whether the transmission is okay or not. So when I check on modbus poll I found out this:
- When I change the value of Hz (That occupy 2 modbus registers) it doesn't change the registers of Hz but change one register of Hz (The second one) and the first register of the next variable.
I am not sure why that is happening. But what I know is that If change the types from udint and ulint to uint everything works fine.
If someone could help me I would appreciate a lot. Thanks in advance!