CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Is there any way to get the name of the current action... pou...
https://forum.codesys.com/viewtopic.php?f=11&t=7688
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...

Hello all,

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
https://www.phpbb.com/