Access control

Access is controlled using the following variables:

Variable name

Description

xGetAccessControl

Data type: BOOL

  • TRUE: Request access
  • FALSE: Return access

xControlActive

Data type: BOOL

  • TRUE: Access has been granted
  • FALSE: Access denied

 

An instance requests access by setting xGetAccessControl to "TRUE".
If xControlActive returns a "TRUE” value, access has been granted.

Access authorization is prioritized to prevent a device from being controlled in several ways at the same time. If another function block in control mode wants to access the device interface at the same time as the user interface (UserInterface), the device interface decides which one receives write permission based on the priority of the function block. The user interface (UserInterface) always has the highest priority before the fieldbus interface. If the user interface (UserInterface) has control access,
xControlActive
therefore returns a "FALSE” value for all other function blocks.

In parallel operation (using MOVIKIT® ParallelMode), access via the MOVIKIT® ParallelMode has a lower priority than the user interface but a higher priority than the fieldbus interface. This means, for example, that the fieldbus interface of a device does not receive access control while the MOVIKIT® ParallelMode or the user interface of the device have access. The user interface also revokes the access authorization for the MOVIKIT® ParallelMode. You can check whether the MOVIKIT® ParallelMode has access to the lower-level devices in the user interface of ParallelMode (OUT).