6.4 Clipping Function
■
Analog_4OUT I/O Mapping
Channel
Ch*_ClippingFunctionExe
cutionRequest
Ch*_ClippingUpperLimitSt
atus
Ch*_ClippingLowerLimitSt
atus
● The upper limit and lower limit clip the output at the original output range resolution regardless
of whether scale conversion is executed or not.
■
Sample program
The following program executes the clipping function of the ch0. Specify a desired operation
when the upper limit is detected or when the lower limit is detected.
Declaration section
PROGRAM PRG_DAO1
VAR
bCh0_ClippingFunctionExecutionRequest: BOOL;
bCh0_ClippingUpperLimitStatus: BOOL;
bCh0_ClippingLowerLimitStatus: BOOL;
END_VAR
Implementation section
bCh0_ClippingFunctionExecutionRequest := TRUE;
IF bCh0_ClippingUpperLimitStatus = TRUE THEN //Exceeded the upper limit
;
END_IF
IF bCh0_ClippingLowerLimitStatus = TRUE THEN //Below the lower limit
;
END_IF
(Note 1)
Separately link corresponding channels in "Analog_4OUT I/O Mapping".
REFERENCE
4.2 Setting Parameters and Performing I/O Mapping
6-8
Description
Ch* clipping function
execution request
Ch* clipping function
upper limit status
Ch* clipping function lower
limit status
Remarks
ON: The clipping function is executed.
OFF: "Ch* clipping function upper limit" and "Ch*
clipping function lower limit" are turned OFF.
Validity condition: Level
Turns ON when the value exceeds the output clipping
upper limit while the clipping function is executed.
Turns ON when the value falls below the output
clipping lower limit while the clipping function is
executed.
// Start detection
WUME-GM1AIO-01