=: Assignment (S7-1200, S7-1500) - STEP 7

FBD (S7-1200, S7-1500)

ft:publication_title
FBD (S7-1200, S7-1500)
Product
STEP 7
Version
V20
Publication date
11/2024
Language
en-US
=: Assignment

Description

You can use the instruction "Assignment" to set the bit of a specified operand. If the result of logic operation (RLO) at the box input has the signal state "1", the specified operand is set to signal state "1". If the signal state at the box input is "0", the bit of the specified operand is reset to "0".

The instruction does not influence the RLO. The RLO at the box input is assigned directly to the operand above the assignment box.

Parameters

The following table shows the parameters of the instruction "Assignment":

Parameters

Declaration

Data type

Memory area

Description

<Operand>

Output

BOOL

I, Q, M, D, L

Operand to which the RLO is assigned.

Example

The following example shows how the instruction works:

The operand "TagOut" is set at the output of the "Assignment" instruction when one of the following conditions is fulfilled:

  • The inputs "TagIn_1" and "TagIn_2" have the signal state "1".

  • The signal state at the input "TagIn_3" is "0".