From Siemens Tia Portal to Phoenix Contact PLCnext Engineer

As stated in the title i try to translate an application from Tia Portal to PLCnext Engineer, i encountered a lot of problems on the way but the one I can’t find a solution to is how to initialize the global variables in PLCnext Engineer. In Tia Portal all the Data Blocks are called in the main function, what is the alternative for that in PLCnext Engineer?
image.png
The main cause I need to initialize those global variables is that the aplication i have it’s based on trigger events.

Hi Bogdan,
global variables can be defined and initialised in the Data List editor at the IEC 61131-3 node.
image.pngCheers
DivisionByZero

In your PLCnext Engineer project, if you only have one Cyclic Task and only one instance of one Progam running in that Task, then that would be the equivalent of OB1, and you can initialise global variables in that Program, if you want.

Thank you for the fast response,
I come up with another question. In Siemens TiaPortal, LDT (That is the LDate_And_Time alternative from PLCnext Engineer) auto takes the current timestamp, while in PLCnext Engineer LDate_And_Time seems to keep the initial value, is there any way to make it take the current time and date stamp all the time?

Hello!
Take a look at PLCnextBase library from the Store.
изображение.pngBest regards.