System does not work without warm boot

Hello everyone,
I wrote a program with Mppackml. The program works.
If I make a small change to the program and load the program, Mppackml gives an error. When I hot-run the program, Mppackml gets rid of the error. Why does it do this?
Error code-1064239098



14

Hi,

Please try to call the mapp component with .enable = FALSE in the EXIT program.

Best regards.

2 Likes

Thanks.
Why do we enable false? I have a similar problem with servo drivers. Why do we pull false in PROGRAM _EXIT? Should we make the servos false in PROGRAM _EXIT?

Hi,

with servo drive I’m not completely sure if it’s needed or not.
In general, calling a mapp component with .enable = FALSE means that some ressources are freed internally, the component is deregistered from mapplink, a.s.o.

The _EXIT routine only called when a task is deleted from the PLC (depending on your download settings of course, you can configure the execution of _EXIT / _INIT in the download options).

So in general: whenever you want/need to free some ressources, close handles, interfaces, a.s.o. before a task is downloaded, you can do this via _EXIT.

Best regards.