GetSnapshotState

Each snapshot state can be determined by two related controls within the snapshot component. This method enables the encoding of a QRC frame that is used for querying multiple snapshot states.

Syntax

METHOD GetSnapshotState : I_Connect
VAR_INPUT
    sComponentName      : STRING;
    aSnapshotNr         : ARRAY[0..23] OF USINT;
END_VAR

sComponentName: Name of the snapshot component.

aSnapshotNr: Array of requested snapshot sequence number.

GetSnapshotState 1:

1. The name of the snapshot component is totally different to the name of a Snapshot Bank. How to find the name of the snapshot component is described in the section Easy way to find control name, component name and snapshot bank name.

2. Set the attribute bSavOldRes to TRUE of function block FB_QRC_RecExtract to save the past snapshot states at property aCtrlProp.