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: 2022-07-19 01:56 PM
I would like to be able to quickly see several variables of a chiller on the display of a TM171, so I have defined a variable I call iDisplay which is type INT and has no units.
Then I define a local key to cycle through the different variables I need to see, basically input temperature, output temperature and low and high pressure.
In simulation, I am able to set SysLocalLeds[5] which is the thermometer icon and SysLocalLeds[3] which is the barometer icon and then something like this:
CASE usiDisplay OF
0: iDisplay := iInputtTemp;
SysLocalLeds[5] := 1;
SysLocalLeds[3] := 0;
. 1: iDisplay := iOutputtTemp;
SysLocalLeds[5] := 2;
SysLocalLeds[3] := 0;
. 2: iDisplay := iLowPressure;
SysLocalLeds[5] := 0;
SysLocalLeds[3] := 1;
. 3: iDisplay := iHighPressure;
SysLocalLeds[5] := 0;
SysLocalLeds[3] := 2;
END_CASE;
This code simulates fine, but will not show the icons on the real target.
The manual has a Note that reads: NOTE: Some of the LEDs (for example 0, 1, 3, 5, and 7) cannot be used in the IEC application when BIOS menu is active.
So the question is: Is it possible to drive these icons this way ? Is the BIOS menu active ?
On the other side, If I do set units for iDisplay for example °C the thermometer icon does show on display (but is misleading in case pressure is actually being shown).
An alternate approach would be being able to change the fundamental display state but I have not found anything saying this is possible.
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: 2022-07-19 11:03 PM
Hi,
try the attached example, it shows how to use OverwriteLocalDisplay(), main view is changed using up/down buttons
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: 2022-07-19 10:49 PM
In your case you need to design your own UI via the FC "OverwriteLocalDisplay"
The input dp means deciamal point
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: 2022-07-19 11:03 PM
Hi,
try the attached example, it shows how to use OverwriteLocalDisplay(), main view is changed using up/down buttons
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: 2022-07-20 04:05 AM
Thank you both and many thanks for the example. The comments helped me to understand how the overwriteLocalDisplay function works far better than the rather criptic help available.
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.