MOVE moves a source value to a destination, while conversion instructions change how the data is interpreted between types such as integer, floating point and string. If you are not clear on the division of labour and the limits of each, the program will fail on type mismatches or numeric overflow. The sections below explain the usage and the common pitfalls.
MOVE copies the data at IN to OUT verbatim, without any type interpretation, as long as the destination is long enough. It is a bit-by-bit transfer: different source and destination types do not raise an error, but the result depends on the lengths and the way each side is interpreted. It moves once per scan, and if the enabling condition stays true the destination is overwritten continuously.
In LAD, MOVE is a box whose left-hand EN input is driven by contacts or a coil. In the one scan where the condition is true, a single move takes place. To make the destination track the source continuously, keep EN true; for a one-shot transfer, use a rising edge or pair it with a pulse timer so the move is not repeated within the same scan.
The rule for MOVE is that it transfers as long as the destination is long enough: a 2-byte source moved into a 4-byte destination has its upper bits filled according to the instruction's extension rule, while a source longer than the destination is truncated or raises an error. When moving strings and arrays, watch the length field. Moving bytes across word boundaries easily swaps high and low bytes, so handle it explicitly with a conversion or a shift.
Conversions fall into three groups: between integer and floating point (such as INT to REAL), between integer widths (INT and DINT), and between encodings (BCD and integer, string and numeric). You must call the matching instruction explicitly; MOVE does not convert for you. A failed conversion, for example one outside the destination range, sets an error bit that the program has to test and handle.
The S7-1500 provides a unified CONV instruction that converts according to a target-type parameter, and IEC arithmetic also performs implicit conversions, for example promoting an INT when it is mixed with a REAL. Implicit conversion is convenient but can hide loss of precision, so good practice is to convert explicitly and bound the values.
| Instruction or case | What it does | Input type | Output type and notes |
|---|---|---|---|
| MOVE | Copies one value verbatim | Any bit string | Destination long enough; no type interpretation |
| MOVE_BLK | Copies an array as a block | Array | Element count and length must match |
| FILL | Fills an array with one value | Scalar | Common for clearing and initialising |
| CONV | Converts to a target type | Any numeric | Sets an error bit when out of range |
| INT to DINT | Widens the integer | 16-bit integer | Sign bit must extend correctly |
| DINT to REAL | Integer to floating point | 32-bit integer | Large values lose precision |
| REAL to INT | Floating point to integer | 32-bit float | Rounds the fraction; out of range errors |
| BCD to INT | Encoding conversion | BCD word | Invalid BCD digits set an error |
| INT to STRING | Numeric to text | Integer | Make the destination long enough |
MOVE solves "moving", conversion solves "re-interpreting", and neither can replace the other: moving data of one type with MOVE just replicates the bytes, and the result is usually not the number you expect. When writing ladder, work out the data-type chain for each step first, then decide whether that step needs MOVE or a conversion instruction. This avoids most numeric anomalies.
Instruction semantics and data type definitions follow GB/T 15969.3, Programmable controllers, Part 3: Programming languages (equivalent to IEC 61131-3). The graphical symbols and contact designations of ladder logic follow the GB/T 4728 series, Graphical symbols for electrical diagrams. The exact instruction names and error bits are as stated in the manual of the CPU version in use.
For analog conversion, check the range before changing the type, and clamp the result so a bad value never reaches the closed loop or the display.