|CODESYS - the IEC 61131-3 automation software
|Is there any way to get the name of the current action... pou...
|Page 1 of 1|
|Author:||Joan M [ Mon Mar 20, 2017 11:31 am ]|
|Post subject:||Is there any way to get the name of the current action... pou...|
The question is tricky as I've seen the "Attribute Instance-path" thing, but I would like to get the current action name inside a specific POU (program or fb).
I'm using extensively functions to get the programmer aware of what is going on while the program is running and given a customer requirement now I must change a lot of the program, and this means changing the messages too...
Now that I have to change them... it would be better to set them automatically (more work now but less work tomorrow).
i.e.: "Problem happened in MAIN.PRGAuto.ACTNiceAction: Code 304".
Can it be done? and if it is possible... how?
Thank you all!
|Page 1 of 1||All times are UTC+01:00|
|Powered by phpBB® Forum Software © phpBB Limited