MOVEEUMOVUSMOVEMOV Move (MOVE)
Also called: MOV (Move), copy, transfer, assign a value
Copies IN into OUT when the rung is 1.
What it does
The MOVE / MOV block copies a value (variable or constant) into a destination variable, on every scan where the rung is 1.The MOVE block copies a value (variable or constant) into a destination variable, on every scan where the rung is 1.The MOV block copies a value (variable or constant) into a destination variable, on every scan where the rung is 1.
When to use it
To initialise a value, choose a setpoint, change a timer's preset (into T1.PT or T1.PRE).
Operands
| European mnemonic | American mnemonic | Name | Data type | Direction | Required | Meaning |
|---|---|---|---|---|---|---|
| EN | EN | Enable | BOOL | Input | Yes | Rung condition: the computation runs only when power flow is 1. |
| IN | IN | Source | BOOL, INT, DINT, REAL, TIME / DINT | Input | Yes | Value to copy (variable or constant). |
| OUT | OUT | Destination | BOOL, INT, DINT, REAL, TIME / DINT | Output | No | Destination. Not changed while the rung is 0. |
| ENO | ENO | Enable out | BOOL | Output | No | 1 when the computation ran without error. |
| Mnemonic | Name | Data type | Direction | Required | Meaning |
|---|---|---|---|---|---|
| EN | Enable | BOOL | Input | Yes | Rung condition: the computation runs only when power flow is 1. |
| IN | Source | BOOL, INT, DINT, REAL, TIME | Input | Yes | Value to copy (variable or constant). |
| OUT | Destination | BOOL, INT, DINT, REAL, TIME | Output | No | Destination. Not changed while the rung is 0. |
| ENO | Enable out | BOOL | Output | No | 1 when the computation ran without error. |
| Mnemonic | Name | Data type | Direction | Required | Meaning |
|---|---|---|---|---|---|
| EN | Enable | BOOL | Input | Yes | Rung condition: the computation runs only when power flow is 1. |
| IN | Source | BOOL, INT, DINT, REAL | Input | Yes | Value to copy (variable or constant). |
| OUT | Destination | BOOL, INT, DINT, REAL | Output | No | Destination. Not changed while the rung is 0. |
| ENO | Enable out | BOOL | Output | No | 1 when the computation ran without error. |
Timing diagram
Timing diagram checked against the simulator (the same engine as the editor).
Example
When S1 is 1, V1 takes the value 100.
Try it in the simulatorThe example opens in the free simulator; your own program stays as it was.
Behaviour in detail
- Rung at 0: the destination keeps its value.
- With an edge contact before it, the copy happens only once.
- Types: BOOL, INT, DINT, REAL or TIME; source and destination of the same type.
European (IEC) and American styles
European: MOVE (IN → OUT).
American: MOV (Source → Dest). Same behaviour.