Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

TM172 use of PLC variables in HMI expressions

HVAC and Pumping Forum

Support Forum for HVAC and pumping machines, Modicon M17x and EcoStruxure Machine Expert HVAC software for chillers, AHU, CRAC units for datacenters or process chillers applications - from design, implementation to troubleshooting and more, by Schneider Electric.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • HVAC and Pumping Forum
  • TM172 use of PLC variables in HMI expressions
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
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 Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
FedericoM
Commander FedericoM Commander
68
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
47
LeTomas
Lt. Commander LeTomas Lt. Commander
14
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to HVAC and Pumping Forum
Solved
otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2024-10-13 03:47 AM

0 Likes
3
666
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-10-13 03:47 AM

TM172 use of PLC variables in HMI expressions

According to the online help, expressions can make use of PLC variables:

 

  • You can use PLC variables, target variables, global variables. You can use simple variables, elements of array or structure field.

  • Define your expression in ST code, do not enter “=” at the beginning or “;” at the end of the expression.

 

I tried to define the expression the same way I would do it inside PLC programming and by using @LocalParameters."plcvariablename" format as used when defining edits on the HMI screens

 

Actually what I am trying to accomplish is to show a static test "Config.Err" or an enumerative corresponding to a USINT variable enumerative on the same place on the screen.

 

otrotabi_0-1728816315174.png

 

So, how do you do that ? Is it necessary to create a .parx file in the PLC and import it in the HMI ?

Labels
  • Labels:
  • HVAC
  • Tags:
  • ecostruxure
  • english
  • hvac
  • TM171
  • TM172
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2024-10-14 02:45 AM

0 Likes
1
640
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-10-14 02:45 AM

Hello,

 

@syntax is not supported by expressions.

My suggestion, also for data exchange optimization, is to pack boolean info into words (in the programming part), read them in the global script of the HMI and finally unpack them into global hmi variables.

These variables can be used in the expressions...you can find an example in the Parametric AHU template included with ESME HVAC setup

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 3
FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2024-10-14 02:45 AM

0 Likes
1
641
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-10-14 02:45 AM

Hello,

 

@syntax is not supported by expressions.

My suggestion, also for data exchange optimization, is to pack boolean info into words (in the programming part), read them in the global script of the HMI and finally unpack them into global hmi variables.

These variables can be used in the expressions...you can find an example in the Parametric AHU template included with ESME HVAC setup

Reply

Link copied. Please paste this link to share this article on your social media post.

otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2024-10-15 03:46 AM

In response to FedericoM
0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-10-15 03:46 AM

Thanks Federico. So the information is not completely accurate then - though it is not wrong -. You still need to use the Video_getParam to import the variables into local variables to use them in the local HMI.

 

I also tried another approach, by choosing a variable in the visibility field, and then adding "NOT" before the variable. It compiles fine but does not work as expected

 

otrotabi_0-1728989068047.png

 

Where can I have more information regarding .xml .parx files ? They are mentioned in the literature but since there are no examples I am not sure how to use them.

 

Regards

Reply

Link copied. Please paste this link to share this article on your social media post.

FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2024-10-15 11:50 PM

0 Likes
0
607
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-10-15 11:50 PM

@syntax is supported in the Visible field, but you can use just variable, you cannot write expressions directly in the field.

Parx file is automatically created inside each project and contains the description of Parameters and Status Variables (the tab LocalParameters shows the info of the related parx files).

I haven't documentation for it...but creating different type of parameters and status, the file structure will become quite clear

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of