
14-2
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
14.1 Assign a Value
The Assign a Value instruction enables you to pre-assign a variable with a
specific value.
The value specified at the IN input is copied to the address specified at the
OUT output. ENO has the same signal state as EN.
With the MOVE box, the Assign a Value instruction can copy all data types
that are 8, 16, or 32 bits in length. User-defined data types such as arrays or
structures have to be copied with the Direct Word Move integrated system
function (see the Programming Manual /234/).
The Assign a Value instruction is affected by the Master Control Relay
(MCR). For more information on how the MCR functions, see Section 20.5.
Certain restrictions apply to the placement of the Assign a Value box (see
Section 6.1).
Table 14-1 Assign a Value Box and Parameters
LAD Box Parameter Data Type Memory Area Description
EN BOOL I, Q, M, D, L Enable input
MOVE
ENO BOOL I, Q, M, D, L Enable output
EN ENO
IN
All data types that
are 8, 16, and 32
bits in length
I, Q, M, D, L Source value
IN OUT
OUT
All data types that
are 8, 16, and 32
bits in length
I, Q, M, D, L Destination address
I 0.0
The instruction is executed if the signal
state of input I 0.0 is 1. The content of
memory word MW10 is copied to data
word 12 of the open DB.
Output Q 4.0 is 1 if the operation is
executed.
Q 4.0
MOVE
IN OUT
EN ENO
MW10 DBW12
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write 1 – – – – – 1 1 x
Function is executed (EN = 1):
Figure 14-1 Assign a Value
Description
Move and Conversion Instructions
Comentários a estes Manuais