Function copies the value at the input x
to the output y
if the input enable
= True. Otherwise, the value of the outputs y
will not change.
Example in Python
if enable == True:
y = x
Function menu | Block diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
x |
float, int32, bool | Operand at input |
enable |
bool | Copying condition |
Name | Type | Description |
---|---|---|
y |
see note | Operand at output |
Type of the value at the output
y
corresponds to the type of the value at the inputx
.
Not available
It is convenient to use the function to get only verified results of any calculations. For example, the initial values of some sensor are stored in the rs_485_sensor_1
variable. And values greater than or equal to 65522
are invalid (for example, it's an error code). Then, in order to get only reliable data from the sensor, it is possible to use the MOVE_EN function to assign only verified values to the fuel_level
variable.