Converting WORD High and Low to separate UINT in EcoStruxure Operator Terminal Expert
Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
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: 2023-03-0608:44 AM. Last Modified: 2023-03-0608:46 AM
Converting WORD High and Low to separate UINT in EcoStruxure Operator Terminal Expert
I'm adding a HMI to an older control unit. It uses MODBUS RTU as communication.
The problem I'm facing is that the information from the control unit is mixed as USINT(8), WORD(16) and also some DWORD(32). I need to be able to read and write new data to the control unit.
I have tried to use the Converters and Expressions function but could not make it work.
As example:
%MW1000: High USINT(Var1), Low USINT(Var2).
%MW1001: High USINT(Var3), Low WORD(Var4)
%MW1002: High WORD(Var4), Low WORD(Var5).
%MW1003: High WORD(Var5) Low USINT(Var6).
%MW1004: High USINT(Var7), Low USINT(Var8).
I have made this work before, but I did the conversion on the PLC, (M241), but this time no PLC is used.