8.2.11 Substitution Operations - Siemens SIMATIC S5-95F Manual

Table of Contents

Advertisement

S5-95F

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 7.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 follows.
Binary Logic Operations
Table 8-21 provides an overview of binary logic operations.
Operation
Operand
A
=
AN =
O
=
ON =
Formal operand
EWA 4NEB 812 6210-02
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, F
T , C
Data
Type
BI
8-57

Advertisement

Table of Contents
loading

Table of Contents