Siemens SIMATIC S5 Manual page 157

Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

S5-115F Manual
Load and transfer operations
Table 3-23 provides an overview of the load and transfer operations. An example follows the table.
Table 3-23. Overview of Load and Transfer Operations
Operation
Operand
L
=
LC
=
LW =
T
=
Formal operand
For L
=
For LC =
For LW =
For T
=
1 DW, DR, DL
Example: FB 34 is assigned parameters in PB 1.
Call in PB 1
:JU FB 34
NAME :LOAD/TRAN
I 0
:
I 2.0
I 1
:
I 2.1
L 1
:
FW 10
LW 1
:
KC 140
LC 1
:
C 7
T 1
:
QW 4
LW 2
:
KC 160
:BE
EWA 4NEB 811 6149-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 data
1
words
addressed in binary
form Timers and counters
Timers and counters
Bit pattern
Inputs, outputs, and data
1
words
addressed in binary
form
Program in FB 34
:A
=I
:L
=L
:S
C
:A
=I
:LW
=LW
:S
C
:A
I
:CU
C
:CU
C
:LC
=LC
:T
=T
:A
I
:R
C
:R
C
:LW
=LW
:LC
=LC
:!=F
:R
C
:BE
Meaning
Parameter
Type
I , Q
T , C
T , C
D
I, Q
Executed Program
:
0
A
1
:L
6
:S
1
:A
1
:L
7
:S
2.2
:A
6
:CU
7
:CU
1
:LC
1
:T
2.7
:A
6
:R
7
:R
2
:L
1
:LC
:!=F
7
:R
:BE
STEP 5 Operations
Data
Type
BY, W
KF, KH, KM,
KY, KS, KT, KC
BY, W
I
2.0
FW
10
C
6
I
2.1
KC
140
C
7
I
2.2
C
6
C
7
C
7
QW
4
I
2.7
C
6
C
7
KC
160
C
7
C
7
3-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5-115f

Table of Contents