Siemens SIMATIC S5-95F Manual page 238

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
:COMBINE
ON 1
:
I 0.0
ON 2
:
I 0.1
ON 3
:
I 0.2
VAL1
:
I 0.3
OFF1
:
Q 1.0
OFF2
:
Q 1.1
MOT5
:
Q 1.2
:
BE
8-58
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
=ON1
:AN
=ON2
:O
=ON3
:S
=MOT5
:=
=OFF1
:A
=VAL1
:A
=ON2
:ON
=ON3
:RB
=MOT5
:=
=OFF2
:BE
Meaning
Parameter
Type
I , Q, F
Executed Program
:A
:AN
:O
:S
:=
:A
:A
:ON
:R
:=
:BE
EWA 4NEB 812 6210-02
S5-95F
Data
Type
BI
I
0.0
I
0.1
I
0.2
Q
1.2
Q
1.0
I
0.3
I
0.1
I
0.2
Q
1.2
Q
1.1

Advertisement

Table of Contents
loading

Table of Contents