Overview
Type:
|
Method
|
Available as of:
|
V1.1.0.0
|
Description
The method ActivateAccessControl is used to activate or deactivate the configured access rules in the function block. The status of the access control can be verified by the property IsAccessControlActive.
NOTE: By activating the access rules, existing connections are verified. Connections that do not match an access rule are closed.
NOTE: If you activate the access rules while no access rule is configured, the function block rejects all connected and incoming client connections.
Interface
Inputs
|
Data type
|
Description
|
i_xActivate
|
BOOL
|
If this input is set to TRUE, access control is activated.
If it is set to FALSE, access control is deactivated.
|
Return Value
Data type
|
Description
|
ET_Result
|
The return value indicates the result of the method.
If the value is ET_Result.Ok, the execution of the method was completed successfully.
|
Troubleshooting
Return value
|
Possible cause
|
Solution
|
ET_Result.NoRule
|
No rule is configured.
|
Verify the number of configured rules using the property NumberOfConfiguredAccessRules. Verify the return value of the method CreateAccessRule() when you create a rule.
|