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: 2024-12-01 06:19 PM
Hello, I am using Machine Expert 1.2.7 to program a TM241 PLC and Vijeo Designer Basic 1.2.1 to create an HMI.
I have encountered two issues related to HMI addressing:
I am using the Real data type for PID parameter settings (e.g., KP) via the HMI, with the address %MD107. However, when declaring variables in Vijeo Designer, I cannot find the same address for the Real data type. The available options are %MFi, %MWi, %KWi, %SWi. How can I map the Real data type to the PLC address %MD107 in Vijeo Designer?
In the PLC, I use the Word data type. However, in the HMI, the Word data type is unavailable, and only INT, REAL, BOOL, DINT, UINT, etc., are listed. Would it cause any issues if I use the Real data type in the HMI while the PLC still uses the Word data type, as the address %MWi is being used?
Are there any solutions to address these issues?
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: 2024-12-02 11:10 PM
Hi, The address type MF is for float/real values. The memory space of MD and MF is the same (32Bit). But with MF Vijeo Designer knows that the value is a real.
You have also the possibility to use the PACdrive driver if you use the the HMI and the PLC with ethernet. The PACdrive driver is more or less a Codesys/SOMACHINE driver for Netvar communication.
The data type WORD and UINT is more or less the same. WORD is mostly shown as HEX UINT mostly as decimal value.
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: 2024-12-05 03:24 AM
Hi,
Thank you for your detailed response. However, I am still encountering issues while using the %MFi address in the HMI.
I attempted your suggestion to map %MDi addresses in PLC TM241 to %MFi addresses in HMI ET6500 by multiplying the %MDi address by 2. For example, I mapped %MD100 to %MF200, but the value does not display correctly.
Here’s the specific setup:
- I am using chlorine sensors with a measuring range of 0.02 ppm to 2.00 ppm (4-20mA).
- I set the data range to 0–10000 then scaled it from 0–10000 to 0.02–2.00 ppm and stored the result in %MD503 as a float value.
- When I try to display this value in the HMI using %MFi, the numeric display shows (***.***)or occasionally blinks to 0.02 ppm, but the correct value never appears.
- I even forced the PLC value to 10000, but the HMI still doesn’t show the correct output.
Could you suggest an alternative way to read and display the real value (0.02 to 2.00 ppm) accurately on the HMI?
I appreciate your guidance
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: 2024-12-06 02:43 AM
Try to change the configuration of HMI in IO manager. Change the double word order from low word first to high word first or vice versa.
Or else
Move the entire data in MW and convert the values from MW to other data types in the PLC.
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.