Redundant instruction
This is a redundant instruction. It is replaced by: FP_COMBINE
The function combines the two values at inputs s1 and s2 with the value at input s3_Mask by bit-unit processing. The result of the function is returned at output d.
Input
16-bit area or 16-bit equivalent constant to be compared
16-bit area that stores master data for combination or 16-bit equivalent constant data
Output
16-bit area for storing calculated result
Instead of using this F instruction, we recommend using the corresponding FP7 instruction: FP_COMBINE
The data-unite is calculated as follows:
[d] = ([s1] AND [s3_Mask]) OR ([s2] AND (NOT[s3_Mask]))
When the value at input s3_Mask = 16#0, the value at input s2 is returned at output d.
When the value at input s3_Mask = 16#FFFF, the value at input s1 is returned at output d.
The variables s1, s2, s3_Mask and d have to be of the same data type.
if the calculated result is 0.