Siemens SIMATIC S5-115U User Manual page 261

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
Load and Transfer Operations
Table 8-23 provides an overview of the load and transfer operations. An example follows the
table.
Table 8-23. Overview of Load and Transfer Operations
Operation
Operand
L
=
LC
=
LW =
T
=
Formal operand
For L
=
For LC =
For LW =
For T
=
Example: FB34 is assigned parameters in PB1.
Call in PB1
:JU FB 34
NAME :LOAD/TRAN
I0
:
I 2.0
I1
:
I 2.1
L1
:
FW 10
LW1
:
KC 140
LC1
:
C 7
T1
:
QW 4
LW2
:
KC 160
:BE
1 Data word: DW, DR, DL
EWA 4NEB 811 6130-02b
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
1
Inputs, outputs and flags
timers and counters ad-
dressed in byte and word
form
Timers and counters
Bit pattern
1
Inputs, outputs and flags
addressed in byte and word
form
Program in FB34
:A
=I0
:L
=L1
:S
C
:A
=I1
:LW
=LW1
:S
C
:A
I
:CU
C
:CU
C
:LC
=LC1
:T
=T1
:A
I
:R
C
:R
C
:LW
=LW2
:LC
=LC1
:!=F
:R
C
:BE
Meaning
Parameter
Type
,
I , Q
T , C
T , C
D
I, Q
Executed Program
:
A
:L
6
:S
:A
:L
7
:S
2.2
:A
6
:CU
7
:CU
:LC
:T
2.7
:A
6
:R
7
:R
:L
: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
8-61

Advertisement

Table of Contents
loading

Table of Contents