0% found this document useful (0 votes)
193 views2 pages

Move Block - TIA Portal

The MOVE instruction transfers the contents of an operand at the IN input to the operand at the OUT1 output. It can transfer values between compatible data types like BYTE, WORD, DWORD, INT, DINT, and REAL. If the source data type is larger than the destination, the higher-order bits are lost. If the source is smaller, the destination is filled with zeros. MOVE can also transfer structures using BLKMOV and UBLKMOV. The instruction copies the value from the source to the destination when EN is true and sets ENO high.

Uploaded by

Kourosh52
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
193 views2 pages

Move Block - TIA Portal

The MOVE instruction transfers the contents of an operand at the IN input to the operand at the OUT1 output. It can transfer values between compatible data types like BYTE, WORD, DWORD, INT, DINT, and REAL. If the source data type is larger than the destination, the higher-order bits are lost. If the source is smaller, the destination is filled with zeros. MOVE can also transfer structures using BLKMOV and UBLKMOV. The instruction copies the value from the source to the destination when EN is true and sets ENO high.

Uploaded by

Kourosh52
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MOVE: Move value (S7-300, S7-400)

MOVE: Move value

Description
You use the "Move value" instruction to transfer the contents of the operand at the IN input
to the operand at the OUT1 output. The transfer is always made in the direction of the as-
cending address.
The following table shows the possible transfers:

Source (IN) Destination (OUT1)

With IEC check Without IEC check

BYTE, WORD, DWORD, INT, DINT, TIME,


BYTE BYTE, WORD, DWORD
DATE, TOD, CHAR
BYTE, WORD, DWORD, INT, DINT, TIME,
WORD WORD; DWORD
S5TIME, DATE, TOD, CHAR
BYTE, WORD, DWORD, INT, DINT, REAL,
DWORD DWORD
TIME, DATE, TOD, CHAR
BYTE, WORD, DWORD, INT, DINT, TIME,
INT INT
DATE, TOD
BYTE, WORD, DWORD, INT, DINT, TIME,
DINT DINT
DATE, TOD
REAL REAL DWORD, REAL
TIME TIME BYTE, WORD, DWORD, INT, DINT, TIME
S5TIME S5TIME WORD, S5TIME
DATE DATE BYTE, WORD, DWORD, INT, DINT, DATE
TOD TOD BYTE, WORD, DWORD, INT, DINT, TOD
CHAR CHAR BYTE, WORD, DWORD, CHAR
COUN-
INT, WORD, COUNTER WORD, DWORD, INT, UINT, DINT, UDINT
TER
TIMER INT, WORD, TIMER WORD, DWORD, INT, UINT, DINT, UDINT
If the bit length of the data type at input IN exceeds the bit length of the data type at output
OUT1, the higher-order bits of the source value are lost. If the bit length of the data type at
the IN input is less than the bit length of the data type at the OUT1 output, then the more
significant bits of the destination value will be filled with zeros.
You can also use the "Move block" (BLKMOV) and "Move block uninterruptible" (UBLK-
MOV) instructions to move fields and structures.

Parameters
The following table shows the parameters of the "Move value" instruction:

-1-
MOVE: Move value (S7-300, S7-400)

Parameter Declaration Data type Memory area Description

EN Input BOOL I, Q, M, D, L Enable input


ENO Output BOOL I, Q, M, D, L Enable output
Bit strings, inte-
gers, floating-
point numbers,
I, Q, M, D, L or
IN Input timers, DATE, Source value
constant
TOD, CHAR,
TIMER, COUN-
TER
Bit strings, inte-
gers, floating-
point numbers,
Destination ad-
OUT1 Output timers, DATE, I, Q, M, D, L
dress
TOD, CHAR,
TIMER, COUN-
TER
For additional information on valid data types, refer to "See also".

Example
The following example shows how the instruction works:

The following table shows how the instruction works using specific operand values:

Parameter Operand Value

IN TagIn_Value 0011 1111 1010 1111


OUT1 TagOut_Value 0011 1111 1010 1111
If operand "TagIn" has the signal state "1", the "Move value" instruction is executed. The
instruction copies the contents of operand "TagIn_Value" to operand "TagOut_Value" and
sets output "TagOut" to signal state "1".

See also
Overview of the valid data types
Basics of the EN/ENO mechanism
Basic information on LAD
Memory areas

-2-

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy