GetPosition

The GetPosition method is used to query the Position, PositionMAX, and PositionMIN properties of the OCA object. If the query was successful, the result is output in the stPosition, stPositionMAX and stPositionMIN properties.
![]() | Cyclic method call Since several PLC cycles may pass between sending and the response from the device, this method should be executed cyclically. |
Syntax
VAR_INPUT
pLink : POINTER TO ST_Link; //Pointer to address of the structure which links the OCA objects to the OCA device
bExecute : BOOL; //The Method is triggered by a rising edge at this input.
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
pLink | POINTER TO ST_Link | Pointer for establishing a connection between OCA objects and the OCA device |
bExecute | BOOL | The method is executed with a positive edge at the bExecute input. |
