Definition of function blocks as extensions of other function blocks 将功能块定义为其他功能块的扩展
help.codesys.com/api-content/2/codesys/3.5.14.0/en/_cds_f_object_oriented_programming/#cd69b36a931eb47c0a8640e01dc4fc9-id-8938ae329606a7abc0a8640e00eabd77
TwinCAT 3 支持面向对象编程(OOP),并为此提供了以下功能和对象:
Function blocks (Object Function block)
Methods (Method object)
Properties (Property object)
Interfaces (Object Interface, Implementation of an interface)
Inheritance
Definition of function blocks as Extensions of other function blocks 将功能块定义为其他功能块的扩展
Definition of structures as Extensions of other structures 将结构定义为其他结构的扩展
Definition of interface as Extensions of other interfaces 将接口定义为其他接口的扩展