Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-05-26 01:30 AM
Hi,
I have a problem with how to show on HMI XBTGT4330 real value e.g. 123.553
I read the water flow from the water meter as 32-bit register on PLC I have a solution for how to show the property value of the meter but I don't find a solution for how to send it to HMI.
I try to convert them to DWORD and use a register like %MD but I don't know how to read that on HMI.
Thanks for your help.
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: 2023-05-26 04:14 AM
Hi @pawel_kowalski_ ,
I am not 100% sure which PLC you are using but if the variable in the PLC side is already a real variable you can use the %MW on the variables on Vijeo Designer to access to the information.
See example below using a Modiocn M172 with a simulated XBTGT4330:
Best regards,
LeTomas
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: 2023-05-26 05:04 AM
Also, you can define it on Numeric Display Settings
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: 2023-05-26 12:09 PM
Hi,
I have TM251MESE PLC, but starting at the beginning:
1. I have an analog sensor with 4-20mA output connected to TM3AI4 input
2. I scale the 4-20mA input on the physical sensor range using the scale function which gives me a real value some like 24.59954001123450 on max value has 119.99999999999999
3. Now I must send the value above to HMI connected to that PLC, send it to another PLC, and show it on HMI connected to a second PLC using Modbus TCP.
And the question is how to convert that value and send it.
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: 2023-05-29 11:18 PM
To see the Real value on the HMI you need only to define the value as REAL in the HMI software and to allocate the first of the two words. If a other PLC read the value from the PLC it is more or less the same. The other PLC need to read 2 16 values and merge them together into a real. Regarding to HMIs this function is normaly integrated in the driver. On PLC side you need to do this by your own. This works normaly in the easiest way with a pointer. You could find a solution bases on OSCAT DW_TO_REAL function.
Some PLCs use a different Byte/Word Order (Siemens in the past) then Modicon. In that case you need to switch these values.
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: 2023-05-30 03:05 AM
Hi Pawel. If the 2nd PLC is Schneider also, then perhaps the easiest would be to share vaiable over NVL.
https://www.youtube.com/watch?v=zWM-vxGcD1s
If not, and you have to use Modbus TCP, then I would use try to use Write_Var function block to write to in the multiple registeres (40001-49999 (%MW)). Send 245 over register and dev by 10 to get 24.5 in 2nd PLC.
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: 2023-05-31 12:26 PM
Hi
Thanks, @KJBER for the advice, I'll do it differently, but I'll try your suggestion in the future because it looks like a time saver.
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: 2023-05-31 12:29 PM
And yes both PLC is Schneider product, exactly TM251MESE.
Link copied. Please paste this link to share this article on your social media post.
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.