Siemens S5-100U User Manual page 214

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

S5-100U
Set/Reset Operations
Table 8-23 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
EWA 4NEB 812 6120-02
Table 8-23. 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
STEP 5 Operations
Meaning
Parameter
type
I, Q, F
Executed Program
:A
:AN
:O
:S
:=
:A
:A
:ON
:R
:=
:BE
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
8-59

Advertisement

Table of Contents
loading

Table of Contents