How to address Modbus TCP data within EcoStruxure Machine Expert Twin?
Motion Control Forum
Schneider Electric forum for Motion Control solutions, including Lexium MC12 & Cobot, Modicon PLC, PacDrive, Ecostruxure Machine, … from design, implementation to troubleshooting 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: 2024-03-2503:21 AM. Last Modified: 2024-11-2112:54 AM
How to address Modbus TCP data within EcoStruxure Machine Expert Twin?
The addressing of Modbus TCP data in Machine Expert Twin is word-wise. Therefore, the data in the holding register must be addressed according to their word address.
Hint: Make sure that the data format (Big / Little endian) matches when transmitting it
Example scenario:
Your application contains a variable (LREAL) with the speed reference for a servo belt in Machine Expert Twin and this is stored in the holding register %ML10.
Example Code in Machine Expert
In order for Machine Expert Twin to access the value correctly, the correct word address must first be determined in the holding register.
%ML10
%MD20
%MW40
%MW41
%MD21
%MW42
%MW43
For the example application it would mean that you have to use the word address %MW40 and enter it as the address in Machine Expert Twin.