S5-100U STEP 5 Operations
Set/Reset Operations
Table 8-23 provides an overview of the set/reset operations. An example follows the table.
Table 8-23. Overview of Set/Reset Operations
Data
type
Parameter
type
Operation MeaningOperand
Formal operand Actual operands permitted
Inputs, outputs, and flags
addressed in binary form
I, Q, F BI
S=
RB =
==
Set a formal operand (binary).
Reset a formal operand (binary).
Assign
The RLO is assigned to a formal operand.
Example: FB30 is assigned parameters in OB1.
Call in OB1 Executed ProgramProgram in FB30
: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
: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
:A I 0.0
:AN I 0.1
:O I 0.2
:S Q 1.2
:= Q 1.0
:A I 0.3
:A I 0.1
:ON I 0.2
:R Q 1.2
:= Q 1.1
:BE
EWA 4NEB 812 6120-02
8-59