Siemens SIMATIC S5-90U System Manual page 228

Table of Contents

Advertisement

STEP 5 Operations
Load and Transfer Operations
Table 8-23 provides an overview of the load operations and transfer operations. An example follows
the table.
Table 8-23. Overview of Load and Transfer Operations
Operation
Operand
L
=
LD
=
LW =
T
=
Formal operand
For L
=
For LD
=
For LW
=
For T
=
* Not for integrated function blocks
Example: FB 34 is assigned parameters in PB 1.
Call in PB 1
:JU FB 34
NAME
:LOAD/TRAN
I0
:
I 32.0
I1
:
I 32.1
L1
:
FW 10
LW1 :
KC 140
LC1
:
C 7
T1
:
QW 4
LW2 :
KC 160
:BE
8-60
Load a formal operand.
Load a formal operand in BCD code.
Load the bit pattern of a formal operand.
Transfer to a formal operand.
Actual operands permitted
Inputs, outputs, and flags
addressed in binary form
Timers and counters
Timers and counters
Bit pattern
Inputs, outputs, data (DW,
DR, DL) and flags
addressed in binary form
Program in FB 34
:A
=I0
:L
=L1
:S
C
:A
=I 1
:LW
=LW1
:S
C
:A
I
:CU
C
:CU
C
:LD
=LC1
:T
=T1
:A
I
:R
C
:R
C
:LW
=LW2
:LD
=LC1
:!=F
:R
C
:
BE
Meaning
Parameter
type
I , Q, F
PW*, PY*
DW, DR, DL
T, C
T , C
D
KY, KS, KT, KC
I, Q
DW, DR, DL
F, PW*, PY*
Executed Program
:A
:L
6
:S
:A
:L
7
:S
32.2
:A
6
:CU
7
:CU
:LD
:T
32.3
:A
6
:R
7
:R
:L
:LD
:!=F
7
:R
:BE
EWA 4NEB 812 6115-02b
S5-90U/S5-95U
Data
type
BY, W
KF, KH, KM,
BY, W
I
32.0
FW
10
C
6
I
32.1
KC
140
C
7
I
32.2
C
6
C
7
C
7
QW
4
I
32.3
C6
C7
KC
160
C7
C7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents