Siemens SIMATIC S5-115U User Manual page 260

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

STEP 5 Operations
Set/Reset Operations
Table 8-22 provides an overview of the set/reset operations. An example follows the table.
Operation
Operand
S
=
RB =
=
=
Formal operand
Example: FB30 is assigned parameters in OB1.
Call in OB1
:JU 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
8-60
Table 8-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 Permitted
Inputs, outputs, and flags
addressed in binary form
Program in FB30
: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
S5-115U Manual
Meaning
Parameter
Type
I , Q
Executed Program
:A
:AN
:O
:S
:=
:A
:A
:ON
:R
:=
:BE
EWA 4NEB 811 6130-02b
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

Table of Contents