andrej - 2024-03-02

Hello all,
when creating a POU, the Codesys IDE allows the setting "Enable System Call" (in the Settings, Property -> Build), see picture.

The name suggest, that runtime functionalities i.e. functions of codesyscontrol such as "stop plc" etc. can be directly called.
I tried various approches without success, the following does, unsurprisingly not work.

FUNCTION accessRTE: BOOL;
******************************
codesyscontrol.stop();

Can you please tell me how I can make a system call to codesyscontrol from a POU.

Or could you provide me with a use case for this setting.

Many thanks for your feedback and kind regards
Andrej

 

Last edit: andrej 2024-03-02