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-10 06:21 PM
Hi all,
Task configuration for EcoStruxure Machine Expert HVAC (v1.5.0) says the following;
It seems that 'init' category tasks do not run on download of application, rather just start as a second stage of 'boot'.
I checked this using the following setup;
'Init' program
IF NOT xBootRunsFirst THEN;
xInitRunsFirst := TRUE;
END_IF;
uiRet := sysWriteParINT(ADR(E2_iNumInits), E2_iNumInits + 1);
'Boot' program
IF NOT xInitRunsFirst THEN;
xBootRunsFirst := TRUE;
END_IF;
uiRet := sysWriteParINT(ADR(E2_iNumBoots), E2_iNumBoots + 1);
Where E2 are EEPROM vars, and other vars are in global scope.
On a 'Download All' including setting default values;
On a 'Download All' without downloading default parameter values (immediately after first test);
On a 'Download PLC Code';
Tested physically using TM172PDG18R.
Could this be resolved?
Thanks,
Jack
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-17 09:16 AM
Hello,
at boot the M172 executes boot and then Init once and then starts with Timed & Background.
When you download just the plc code from programming, M172 applies an hot swap whenever the plc changes does not require a plc restart. So in this case the boot&init are not executed and PLC will swap from old to new application.
In case a download requires a warm/cold restart, it will execute also the init task (a popup opens in case a warm/cold restart is applied).
A recompile all command force a cold restart after next download
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-06-08 08:29 PM
So whenever a 'boot' task is called, an 'init' task is also called? This is a little unclear in the documentation image I have above.
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.