FB_OcaSwitch

The function block FB_OcaSwitch extends the function block FB_OcaActuator with properties and methods and for handling OCA switch objects. These objects can have multiple switch positions. Individual positions can be enabled or disabled and given names.
![]() | No explicit call Since there is no code in the body of the function block, it should not be called explicitly. Instead, use the corresponding methods of the function block. |
Inheritance hierarchy
FB_OcaRoot
FB_OcaWorker
FB_OcaActuator
FB_OcaSwitch
Methods
Name | Definition location | Description |
---|---|---|
Local | This method is used to query the Position, PositionMAX, and PositionMIN properties of the OCA object. | |
Local | Use this method to set the switch position of an OCA object. | |
Local | This method reads incoming notifications | |
Local | Method for querying a switch position | |
Local | Method for enabling or disabling a switch position | |
GetPositionName | Local | Method for querying the name of a switch position |
SetPositionName | Local | Use this method to assign a name to a switch position. |
Properties
Name | Type | Access | Definition location | Description |
---|---|---|---|---|
stPosition | Get | Local | Indicates the switch position of the OCA object. | |
stPositionMAX | Get | Local | Indicates the lowest switch position of the OCA object. | |
stPositionMIN | Get | Local | Indicates the highest switch position of the OCA object. | |
stPositionEnabled | Get | Local | Indicates whether a particular switch position is enabled or disabled. | |
stPositionName | Get | Local | Indicates the position name of a particular switch position. |
![]() | AES70 standard The names of variables and function blocks have been adapted to the AES70 standard where possible. Information about this communication protocol can be found at www.aes.org and www.ocaalliance.com. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.2 or higher | PC or CX (x64, x86, ARM) | Tc3_AES70 |