Siemens SIMATIC S5-95F Manual page 239

Table of Contents

Advertisement

S5-95F
Load and Transfer Operations
Table 8-23 lists the various load 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 integral function blocks
Example: FB34 is assigned parameters in PB1.
Call in PB1
:JU FB 34
NAME
:LOAD/TRAN
I0
:
I 0.0
I1
:
I 0.1
L1
:
FW 10
LW1 :
:
KC 140
LC1
:
C 7
T1
:
QW 4
LW2 :
:
KC 160
:BE
EWA 4NEB 812 6210-02
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
Data
Timers and counters
Timers and counters
Bit pattern
Inputs, outputs, data (DW,
DR, DL) and flags
addressed in binary form
Program in FB34
:A
=I 0
: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
I, Q
DW, DR, DL
F, PW*, PY*
Executed Program
:A
:L
6
:S
:A
:L
7
:S
0.2
:A
6
:CU
7
:CU
:LD
:T
0.3
:A
6
:R
7
:R
:L
:LD
:!=F
7
:R
:BE
STEP 5 Operations
Data
Type
BY, W
KF, KH, KM,
KY, KS, KT, KC
BY, W
I
0.0
FW
10
C
6
I
0.1
KC
140
C
7
I
0.2
C
6
C
7
C
7
QW
4
I
0.3
C
6
C
7
KC
160
C
7
C
7
8-59

Advertisement

Table of Contents
loading

Table of Contents