GetReading / RntfReading

GetReading

GetReading / RntfReading 1:

The GetReading method is used to query the property of the OCA object. If the query was successful, the result is output in the properties stReading, stReadingMAX and stReadingMIN

GetReading / RntfReading 2:

Cyclic method call

Since several PLC cycles may pass between sending and the response from the device, this method should be executed cyclically.

GetReading / RntfReading 3: 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.

RntfReading

GetReading / RntfReading 4:

If the OCA object was prompted to notify changes (using the Subscription method), incoming notifications are read using the RNtfReading method.

GetReading / RntfReading 5:

Cyclic method call

Since several PLC cycles may pass between sending and the response from the device, this method should be executed cyclically.

GetReading / RntfReading 6: 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.

nSubscribtionNo

UDINT

Unique number for localizing the respective subscription.