Technical data
Technology functions
CPU 317T: Technology Functions
6-204 A5E00251798-03
Input parameters
Parameter Data type Start value Description
MeasureInput INT 0 Number of the technology DB
Execute BOOL FALSE Start of the operating mode at the positive edge
Mode INT 1 Operating mode:
Value = 1: Measurement at positive edge
Value = 2: Measurement at negative edge
Value = 3: Measurement at both edges, starting
at the positive edge
(two separate measured values)
Value = 4: Measurement at both edges, starting
the negative edge
(two separate measured values)
Value = 5: Cancel current measurement
StartPosition REAL 0.0 Start position of the measurement range
EndPosition REAL 0.0 End position of the measurement range
DoneFlag INT 0 DoneFlag generated in the MCDevice DB
The DoneFlags value is inverted when a new
measured value has been returned
Output parameters
Parameter Data type Start value Description
Done BOOL FALSE TRUE: Measurement completed, measured value is
valid
Busy BOOL FALSE TRUE: Command is busy
CommandAborted BOOL FALSE TRUE: Measurement command canceled
(no edge signal in measuring range)
Error BOOL FALSE
TRUE: Command initiation
with error.
The command is not executed; the cause is
found in the ErrorID.
FALSE: Command initiation
without error
ErrorID WORD 0
ErrorID of the Error output parameter.
MeasuringValue1 REAL 0.0 Measured value 1
MeasuringValue2 REAL 0.0 Measured value 2 (only with measurement trigger at
both edges)