Académique Documents
Professionnel Documents
Culture Documents
Automation Platform
User Management (CDS-28943)
Important note for Automation Platform customers:
There is a behavioral change in the various ICommandManagerXX.ExecuteXX() methods for those cases
where the user is not authorized to execute the command by means of the User Management.
Previous behavior: The method returned without having done anything.
New behavior: A PermissionNotGrantedException is thrown.
If the called function had write access to the VAR_IN_OUT variable, then this could lead to serious errors.
Therefore, the construct "VAR_IN_OUT CONSTANT" has been available in version V3.5 SP2 and later
(CDS-27294).
A variable that is declared in this way is passed as reference and cannot be modified in the called
function.
Write access leads to a compiler error message. A string literal or constant variable can still be assigned
to a VAR_IN_OUT CONSTANT variable because the compiler checks that the value is not modified in the
function.
Automatically generated POU CDS-27155
We did not change the implementation of the “Project Information” functions because they are registered
in the runtime system and required to remain compatible. These functions are available only if the runtime
system supports WSTRING; there is no way around this fact.
A common use case for activating the auto-generated functions was to get version information for
libraries. To enable this functionality also for controllers that do not support WSTRINGs, we added a new
set of functions called 'Library Information', consisting of three functions:
- GetLibVersion: VERSION
- GetLibVersionNumber: DWORD
- IsLibReleased: BOOL
They are not registered in the runtime system, but available only from IEC application code.
Runtime System
ComponentManager: safe mode (CDS-41257)
Safe mode is a state of the runtime system that is set if a serious error occurred during startup.
Serious errors includes the following:
a) a required interface function could not be resolved
b) an init hook of a component returns an error
In safe mode, the IEC application is not loaded and not started. This avoids any possible damage to the
system.
ComponentManager (CDS-43828)
Return values of init hooks are checked and handled now (V3.5 SP8 and later):
Components that fail to initialize let the system go into safe mode (see CDS-41257).
Linking files to application needed to separate them from kernel files (CDS-35792)
There is a new setting to separate the application related files from the runtime system files:
[SysFile]
PlcLogicPrefix=1
This can also be predefined at compile time with:
#define SYSFILE_VALUE_INT_PLCLOGIC_PREFIX_DEFAULT 1
A new checkbox on the device editor options has been added to hide or show the "Access Rights" page.
A new target settings has been introduced to activate the "Access Rights" page from the device
description. This setting overrides the setting in the device editor options.
<ts:section name="device-user-management">
<ts:setting name="show-access-rights-page" type="boolean" access="visible">
<ts:value>1</ts:value>
</ts:setting>
</ts:section>