Siemens SIMATIC S5 Manual page 156

Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

STEP 5 Operations
Set/Reset Operations
Table 3-22 provides an overview of the set/reset operations. An example follows the table.
Operation
Operand
S
=
RB =
=
=
Formal operand
Example: FB 30 is assigned parameters in OB 1.
Call in OB 1
:SPA FB 30
NAME :LOGIC
ON 1
:
I 2.0
ON 2
:
I 2.1
ON 3
:
I 2.2
VAL1
:
I 2.3
OFF1 :
Q 7.1
OFF2 :
Q 7.2
MOT5 :
Q 7.3
:
BE
3-60
Table 3-22. Overview of Set/Reset Operations
Set a formal operand (binary).
Reset a formal operand (binary).
Assign
The RLO is assigned to a formal operand.
Actual operands permissed
Inputs, outputs, and flags
addressed in binary form
Program in FB 30
:A
=ON 1
:AN
=ON 2
:O
=ON 3
:S
=MOT 5
:=
=OFF 1
:A
=VAL 1
:A
=ON 2
:ON
=ON 3
:RB
=MOT 5
:=
=OFF 2
:BE
Meaning
Parameter
Type
I, Q
Executed Program
:A
:AN
:O
:S
:=
:A
:A
:ON
:R
:=
:BE
EWA 4NEB 811 6149-02
S5-115F Manual
Data
Type
BI
I
2.0
I
2.1
I
2.2
Q
7.3
Q
7.1
I
2.3
I
2.1
I
2.2
Q
7.3
Q
7.2

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5-115f

Table of Contents