Communications
configuring
System- and communication configuring D7-SYS - SIMADYN D
3-159
Edition 12.2003
SIMATIC S7-CPU
(SL program)
FM 458
(CFC program)
CTS
@CPB
FM458
.P_B
NAME.11
R
CTS
CRR
AT
MOD
CRV
I X
Y I
NOP1I
R X
Y R
NOP1
BO I Q BO
NOP1B
!
TLG
!
TLG
.1
!
TLG
.2
!
TLG
.3
BO I Q BO
NOP1B
!
TLG
.4
FM458
.P_B
PBUS.11
R
CTS
CRT
AT
MOD
CTV
!AA
R X
Y R
NOP1
!
AA
.10
R X
Y R
NOP1
!
AA
.20
R X
Y R
NOP1
!
AA
.15
FM458
.P_B
XX.127
R
CTS
CRT
AT
MOD
CTV
!TTT
!
TTT
.5
!
TTT
.0
R X
Y R
NOP1
!
T
TT.8
BO I Q BO
NOP1B
I X
Y I
NOP1I
...
CALL
SFC 58
REQ :=TRUE
IOID :=B#16#54
LADDR
:=W#16#
200
RECNUM
:=B#16#
B
RECORD
:=P#L 0.0
BYTE 8
RET_VAL:=#RETVAL
BUSY :=#BUSY
L #RETVAL
L 0
<>I
SPB ENDE
...
CALL
SFC 59
REQ :=TRUE
IOID :=B#16#54
LADDR
:=W#16#
200
RECNUM
:=B#16#
B
RET_VAL:=#RETVAL
BUSY :=#BUSY
RECORD
:=P#L 8.0
BYTE 12
...
!
T
TT.100
!
T
TT.500
. . . . .
. . . . .
FM458
.P_B
...
CALL
SFC 59
...
LADDR
:=W#16#
200
RECNUM
:=B#16#
7F
RET_VAL:=#RETVAL
BUSY :=#BUSY
RECORD
:=P#L 20.0
BYTE 240
...
114688
Bytes
(1C000 Hex)
for data set
transfer with
SFC 58/59
P bus
memory
of the FM 458
I/O periphery addresses
according to the default
(512) or via the
"Edit/Properties" menu
512dez = 200hex
0: 12
1: 34
2: FF
3: 3F
4: 80
5: 00
6: 00
7:
. . .
. . .
1
1234
1.0
max. 240 Bytes
Values are saved in a
data set
(the example cannot
be recommended!)
Sampling time: 32...256ms!
Fig. 3-51
Transferring 3 data sets