Ask our Experts
Didn't find what you are looking for? Ask our experts!
Share Your Feedback – Help Us Improve Search on Community! Please take a few minutes to participate in our Search Feedback Survey. Your insights will help us deliver the results you need faster and more accurately. Click here to take the survey
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-06 08:44 AM . Last Modified: 2023-03-06 08:46 AM
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.
Any Ideas to do it in the HMI? (HMIST6400)
Can a script be used?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-01-29 09:00 AM
You can read bytes in OTE/BLUE by creating a Variable with array size 2 of type USINT or any BYTE type. It will assign the correct address to the low and high bytes.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-03-18 11:37 AM . Last Modified: 2025-03-18 12:03 PM
Hi,
HMI can swap all of high and low section of register while it is reading or writing. It is enough what is base of variables? as attached file. If HMI uses internal variables without plc, in this case we can use attached script.
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.