Technical data

Technology DBs
CPU 317T: Technology Functions
A5E00251798-03
7-21
7.6 "Measuring sensor" - Technology DB
The "Measuring sensor" technology DB contains information on the "Measuring
sensor" TO and command processing. The DB is described in the integrated
technology section and is read-only in the STEP 7 user program.
The DB is non-retentive, irrespective of the retentivity setting of the CPU.
Variable UpdateFlag/UpdateCounter
See: Technology DB updates
Variable ErrorID
Shows the ErrorID of the last error or warning detected of the measuring sensor.
An error message can be acknowledged by calling FB 402 "MC_RESET"
(with Axis = number of the technology DB).
Variable ErrorBuffer[0..2]
Buffer for the first three errors and warnings. The first error is written to ARRAY
element 0, the second to ARRAY element 1, etc.
This content of the buffer can be cleared by calling FB 402 "MC_RESET"
(with Axis = number of the technology DB).
Variable Status
Indicates the operational state of the measuring sensor. The following operating
states can be shown:
Value Function Comments
0 INIT Measuring sensor is idle
1 WaitForTrigger Waiting for edge(s) at the measuring input (measured value(s) not
recorded yet)
2 DataValid Measurement completed, value(s) logged and valid
3 Error Error detected; value(s) invalid
Variable MeasureValue1
Indicates measured value 1 of the measuring sensor. This value is valid in status
(operating state) 2.
Variable MeasureValue2
Indicates measured value 2 of the measuring sensor. This value is valid in status
(operating state) 2.
The measured value 2 is logged only in (Mode) 3 and 4 of FB 433.