Ecostruxre Machine Expert-Program loaded-Exception

I created a while loop to intentionally extend the scan time and fault an M241 CPU, for testing and learning purposes.

So when I do that I get a flashing "Program loaded-Exception"
but no error messages or warnings. Is there a way to enable login of errors or something like that?


And when I correct the loop so that it would not cause CPU fault, then write the values to the CPU it would not change to start when I try to, it goes immediately into stop and the only way is to logout, do build>clean all and download the program again. Is that the only way?


This is a .gif of what I described.



Thanks
 
go online and in the Watch table put the object: PLC_R.
The variable PLC_R.i_wLastApplication Error show the last error.


Thanks rgua, that worked. .


kallilio, nothing show under controller>logs and I don't know when anything should, are these messages different from the ones on the bottom pane or a duplicate?
Please see attached picture.


Thanks Lare, that was very helpful.

messages.PNG
 
You have to log in into the PLC to see the log.




Sorry, that was dumb. The bottom message pane is compiler messages and the log is what is in Siemens lingo Diagnostic Buffer (messages), right?


Attached is, I think, a better comparison. Should controller log in this case show the same error as in i_wLastApplicationError? Or am I on the wrong track again?


Thanks

error.PNG
 
Another question if I may,


I can't find Task Configuration>System Events in machine expert. I tried the three controllers supported by this software and couldn't find it. Should it be there?
 

Similar Topics

Hello guys, Found a helpful thread for the first question **SOLVED** Also as I've just started and looking for good learning sources I have...
1
Replies
2,654
Views
Hi everyone! I’m an IT technician working on a project to monitor production machines. I’m comfortable with programming, but I have limited...
28
Replies
598
Views
Hello everyone, I have an industrial textile machine whose data acquisition device has failed, and I'm considering replacing it with a Waveshare...
57
Replies
997
Views
End user wants to modify what is visible when the block is instantiated. Simple enough with RA AOI, but the can't get to the parameters tab...
2
Replies
158
Views
Hello everyone! I don't have an active support contract with Emerson and I need a SIM for PME version 10.6; can anyone help me? Thanks, Marco
2
Replies
194
Views
Top