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!

M172* downloading application code faster

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
  • M172* downloading application code faster
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
Related Products
product field
Schneider Electric
EcoStruxure™ Machine Expert - HVAC

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
obscuresc
Lieutenant JG obscuresc
Lieutenant JG

Posted: ‎2025-03-20 08:46 PM

0 Likes
4
281
  • 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: ‎2025-03-20 08:46 PM

M172* downloading application code faster

Hi,

 

I am developing an application on a TM172PDG18R.

Updating only the main application (~500KB, using the 'Download PLC Code' button) takes over a minute on Modbus TCP with a direct connection from my laptop. Downloading via Modbus via the USB Mini B port takes a similar amount of time.

Occasionally the PLC throws a watchdog 0 during this process.

 

What are the ways I can reduce the time it takes to download?

 

I am using a TM172PDG18R on BIOS 668p15, developing using ESME HVAC v1.7.0 and Windows 10 Pro 10.0.19045.

 

Thanks.

Labels
  • Labels:
  • HVAC
  • Tags:
  • english
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
M_Cervati
M_Cervati Support
Support

Posted: ‎2025-03-21 12:28 AM

0 Likes
0
262
  • 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: ‎2025-03-21 12:28 AM

Hi,

this is the typical time to download. The strange event is watchdog 0 during application download.

Could you find a sequence of operation to reproduce sistematically this issue?

It could depend on the application (if target block sysWD_Background or sysWD_Timed are used under some condition), if you send me the project (by email marco.cervati@se.com) I can investigate about root cause.

Best regards

Marco Cervati   

See Answer In Context

Reply

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

obscuresc
Lieutenant JG obscuresc
Lieutenant JG

Posted: ‎2025-04-21 03:49 PM

0 Likes
1
139
  • 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: ‎2025-04-21 03:49 PM

WDT0 in this case occurred because an array of pointers to status variables was being cleared to 0 during a partial download. The array is cleared even if no code accessing the array is executed, though there must be code present that does.

 

For example, in a background executed program;

 

Spoiler
IF (xExec) THEN;
xRet := Foo();
xExec := FALSE;
END_IF;

Where Foo() is

 

Spoiler

FUNCTION Foo: BOOL

VAR
diFaultCapacity : DINT := 0;
diNumRegisters : DINT := 0;
diNumFaultsInRegister : DINT := 0;
diBitIndex : DINT := 0;
diRegisterIndex : DINT := 0;
xRet : BOOL;
wRet : WORD := 0;
END_VAR

VAR_EXTERNAL
g_FaultStatus : ARRAY[0..5] OF @WORD;
END_VAR

pwTemp := g_FaultStatus[UINT#1];

If I download while xExec is False, the array is still cleared. I'm not sure on avoiding this issue. Ideally defining g_FaultStatus as CONSTANT would be allowed.

As for speeding up the download time, I have tried via RS485-1 with increased baud and using FTP (FileZilla). Both methods appear comparable. Manually having the application halted does not seem to increase the download speed.

I am not sure if disabling BACnet, HTTP server, or Modbus writes improve the transfer.

 

See Answer In Context

Reply

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

Replies 4
M_Cervati
M_Cervati Support
Support

Posted: ‎2025-03-21 12:28 AM

0 Likes
0
263
  • 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: ‎2025-03-21 12:28 AM

Hi,

this is the typical time to download. The strange event is watchdog 0 during application download.

Could you find a sequence of operation to reproduce sistematically this issue?

It could depend on the application (if target block sysWD_Background or sysWD_Timed are used under some condition), if you send me the project (by email marco.cervati@se.com) I can investigate about root cause.

Best regards

Marco Cervati   

Reply

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

obscuresc
Lieutenant JG obscuresc
Lieutenant JG

Posted: ‎2025-03-23 02:57 PM

0 Likes
0
240
  • 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: ‎2025-03-23 02:57 PM

Is there a way to speed up the download time?

The WDT0:0 occurs even if I have halted execution of the application prior to download, occurring at the end of the download, such that the last build console messages are

 

Spoiler

Verifying target compatibility
Unable to get info from target
Loading target image ..

Log of image upload.
Failed to get target info
failed.

I'm not using either of the watchdog functions.

I'll try putting a reproducible example together and email you.

 

Thanks!

 

 

Reply

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

obscuresc
Lieutenant JG obscuresc
Lieutenant JG

Posted: ‎2025-04-21 03:49 PM

0 Likes
1
140
  • 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: ‎2025-04-21 03:49 PM

WDT0 in this case occurred because an array of pointers to status variables was being cleared to 0 during a partial download. The array is cleared even if no code accessing the array is executed, though there must be code present that does.

 

For example, in a background executed program;

 

Spoiler
IF (xExec) THEN;
xRet := Foo();
xExec := FALSE;
END_IF;

Where Foo() is

 

Spoiler

FUNCTION Foo: BOOL

VAR
diFaultCapacity : DINT := 0;
diNumRegisters : DINT := 0;
diNumFaultsInRegister : DINT := 0;
diBitIndex : DINT := 0;
diRegisterIndex : DINT := 0;
xRet : BOOL;
wRet : WORD := 0;
END_VAR

VAR_EXTERNAL
g_FaultStatus : ARRAY[0..5] OF @WORD;
END_VAR

pwTemp := g_FaultStatus[UINT#1];

If I download while xExec is False, the array is still cleared. I'm not sure on avoiding this issue. Ideally defining g_FaultStatus as CONSTANT would be allowed.

As for speeding up the download time, I have tried via RS485-1 with increased baud and using FTP (FileZilla). Both methods appear comparable. Manually having the application halted does not seem to increase the download speed.

I am not sure if disabling BACnet, HTTP server, or Modbus writes improve the transfer.

 

Reply

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

FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2025-04-22 01:31 AM

In response to obscuresc
0 Likes
0
122
  • 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: ‎2025-04-22 01:31 AM

Hello,

 

I guess the update you made caused a cold/warn restart just after the download.

Have you tried to initialize the pointers in the init task?

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