Siemens SIMATIC S5-100U System Manual page 218

Simatic s5 series cpu 100/102/103
Hide thumbs Also See for SIMATIC S5-100U:
Table of Contents

Advertisement

STEP 5 Operations
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
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
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
KY, KS, KT, KC
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
EWA 4NEB 812 6120-02b
S5-100U
Data
type
BY, W
KF, KH, KM,
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents