📄️ Scope
📄️ Program
📄️ Function
A function is a reusable program unit that performs a specific operation and may return a single result. Functions are designed to encapsulate frequently used logic.
📄️ Function Block
- A function block is a type, and variables can be declared as an instance of the function block.
📄️ Method
A method can be defined for either a Program or Function Block. A method is 'attached' to the scope of an object. Methods can be used to :
📄️ Property
A property is a special kind of member available to Programs and Function Blocks that provides a flexible mechanism to access a local variable.
📄️ Interface
An interface is often considered a 'contract'. The interface declaration defines the signature of methods and properties, but does not define any implementation. Any function block can IMPLEMENT any number of interfaces by ensuring that they declare and provide an implementation for all members of the interface.
📄️ Structure
A STRUCT is a user-defined data type that groups together different types of variables under a single name. This enable the user to create more complex data types that can represent real world objects.
📄️ Enumeration
An enumeration consists of a set of named constants, typically representing options or states. Enumerations are strongly typed
📄️ Alias
An alias is another name for a type. A variable declared as an alias type is no different from a variable declared of the underlying type. It is possible to assign the alias variable to the variable of the underlying type. An alias could be used as a form of shorthand notation for a type but is otherwise not used frequently as it can mask or hide the variable's type.
📄️ Union
A union type is a type in which all members derive their values from a shared space in memory. A memory block of bytes is sized based on the largest item in the union type. When any member of the union is assigned, the memory block assumes the bytes of the assigned member. When any member of the union is accessed, the member assumes the value of the bytes of the memory block.