Substitution Operations - Siemens SIMATIC S5-115U User Manual

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

S5-115U Manual

8.2.11 Substitution Operations

If you plan to process a program with various operands and without a lot of changes, it is
advisable to assign parameters to individual operands (see Section 6.3.4). If you have to change
the operands, you only need to reassign the parameters in the function block call.
These parameters are processed in the program as "formal operands".
Special operations are necessary for this processing. However, these special operations are no
different in their effect than operations without substitution. A brief description of these
operations and examples follow.
Binary Logic Operations
Table 8-21 provides an overview of binary logic operations.
Operation
Operand
A
=
AN =
O
=
ON =
Formal operand
EWA 4NEB 811 6130-02b
Table 8-21. Overview of Binary Logic Operations
AND operation
Scan a formal operand for "1".
AND operation
Scan a formal operand for "0".
OR operation
Scan a formal operand for "1 ".
OR operation
Scan a formal operand for "0".
Actual Operands Permitted
Inputs, outputs, and flags
addressed in binary form
Timers and counters
STEP 5 Operations
Meaning
Parameter
Type
I , Q
T , C
Data
Type
BI
8-59

Advertisement

Table of Contents
loading

Table of Contents