-

Protecting POUs in Projects

Note
The POU protection password provides only basic protection. It does not represent protection in the sense of valid security guidelines.

Note
Only standard POUs can be protected. Safety-related POUs cannot be protected.

This topic contains the following sections:

General information

This topic describes how to add password protection to POUs in your project, and how to change and remove the password. For each POU, the protection level (read access or write access) can be individually defined. This ensures that only authorized users get read or write access to a POU. There is one POU protection password associated with the PLCnext Engineer project.

If a POU is read-protected, the editor group of the POU cannot be opened. If a POU is write-protected, the editor group of the POU is opened in read-only mode, i.e., the user can view the POU data only but cannot edit the data. For each POU, the protection level is set in the 'Settings' editor of the POU in the 'POU Protection' group.

The sub-menu items of the 'Project > POU Protection' menu are used to set, change, and remove the POU protection password. After setting a password, the user must log in with the password to get full access to protected POUs (done with the 'Project > POU Protection > Log in' command). The 'Project > POU Protection > Log Off' command removes the permission to edit protected POUs.

The status bar (in the lower left corner) indicates whether you are logged in or logged off to the project for which a POU protection password is set.

/

Notes on protected POUs

Observe the following notes for POUs with activated protection level (read or write protected):

Setting, changing, and removing a password for POU protection in the project

OperationProcedure
Set password
  1. Select 'Project > POU Protection > Set Password'. The 'Set POU Protection Password' dialog opens.
  2. Enter the password in the fields 'Password' and 'Confirm Password' and confirm your entries with 'Ok'. The password must contain at least six characters

    The status bar (in the lower left corner) provides the information that a POU protection password is defined for the project (indicates whether you are logged in or logged off). (See the following section how to log in and log off from the project with set POU protection.)

Change password
  1. Log in to the project with activated POU protection by selecting the 'Project > POU Protection > Log in' command. In the appearing dialog, enter the POU protection password and confirm with 'Ok'.
  2. Select 'Project > POU Protection > Change Password'. The 'Change POU Protection Password' dialog opens.
  3. Enter the current password in the 'Old password' field and the new password in the fields 'New password' and 'Confirm Password'. Confirm your entries with 'Ok'.
Remove password
  1. Log in to the project with activated POU protection by selecting the 'Project > POU Protection > Log in' command. In the appearing dialog, enter the POU protection password and confirm with 'Ok'.
  2. Select 'Project > POU Protection > Remove Password'.

Log in / Log off to a project with activated POU protection

Once you have set a password for POU protection in the project, you must log in to the project with the password to get full access to protected POUs. To log in, select 'Project > POU Protection > Log In' and enter the POU protection password.

Once you have logged in, the status bar (in the lower left corner) indicates that you are logged in and have full access to the POUs.

To log off and reactivate the POU protection in the project, i.e., to remove the permission to edit protected POUs, select 'Project > POU Protection > Log Off' and enter the POU protection password. The status bar indicates the status.

Setting the protection level (read or write access) for a POU

To set the read or write protection for a POU, proceed as follows:

  1. Ensure that you are logged in to the project with activated POU protection (see the section above). You must be logged in to have full access to the POUs.
  2. In the COMPONENTS area, double-click the POU for which you want to set up read or write protection and open its 'Settings' editor in the editors area.
  3. In the 'POU Protection' group, select the desired protection level ('read protected', 'write protected', or 'none'). The 'Protection Level' field is inactive if no POU protection password is defined or if you are not logged in to the project with activated POU protection.
  4. Log off from the project with activated POU protection by selecting the 'Project > POU Protection > Log Off' command.