Access Denied
Beckhoff · TwinCAT 2 Automation Interface
Was bedeutet E_ACCESSDENIED ?
The operation failed due to insufficient permissions or a locked resource. This occurs if the current document in the system manager instance is locked (e.g., when calling NewConfiguration() or OpenConfiguration()) because a reference to the system manager's object or a tree element is open. For DeleteChild(), it indicates that deleting the child item is not allowed due to protection or operational constraints.
Häufige Ursachen
- Attempted access to a protected function or parameter without proper credentials.
- User role or privilege level does not permit the requested operation.
- Security lockout due to repeated failed authentication attempts.
- Configuration error in access control lists (ACLs).
- Attempting to modify a read-only parameter (e.g., P3-0).
Reparaturschritte & Checkliste
Klicken Sie auf Schritte, um Ihren Fortschritt zu verfolgen.
- 1
Close any open references to the TwinCAT System Manager object or any of its tree elements.
- 2
Verify the TwinCAT configuration is in a modifiable state (e.g., Configuration Mode, not Runtime).
- 3
Check user permissions in the operating system and TwinCAT security settings to ensure write access.
- 4
Ensure the specific child item is not protected or actively in use by another TwinCAT process before attempting to delete it.