IEC-61131-3 provides language features to extend function blocks or implement interfaces. This is called inheritance and can result in a chain of inheritances. In theory, there is no limit for the inheritance depth, but nesting can become too complex to understand the inheritance tree of interfaces and function blocks.
For the application maintainability reasons, the inheritance depth limit can be verified and reported via convention violation rules.