The access level for a PLC is configured using the AccessProtection setting in the hardware declaration file.
The access level defines which operations are allowed without a password.
Setting the access level to NoAccess prevents all operations when no password is provided.
- For Fail-safe PLCs, it is mandatory to configure password for FullAccessWithSafety (if PLC is not configured as FullAccessWithSafety). If not, compile will throw an error.
- For non fail-safe PLCs, it is mandatory to configure password for FullAccess (if PLC is not configured as FullAccess). If not, compile will throw an error.
To any other level above the access level, it is optional, but it is not allowed to repeat passwords. A password for the access levels can be defined via the set-accessprotection-password command. To set 'n' access level passwords the command should be called 'n' times. These passwords must be unique.
{
"Devices": [
{
"Name": "Device1",
"Modules": [
{
"Name": "PLC_protected",
"TypeIdentifier": {
"OrderNumber": "6ES7 516-3AN01-0AB0",
"Version": "V2.9"
},
"AccessProtection": {
"AccessLevel": "NoAccess"
}
}
]
}
]
}