Example
CP143
H1 / TCP/IP manual
6-20
Rev. 00/07
Function module:
FB2
BSTNAME #FB2
BIB
#19075
0000C
:
0000E
:SPA FB 123
Control module
NAME #CONTROL
SSNR =KY 0,0
Interface No. 0
A-NR =KY 0,12
Job No. 12
ANZW =MW 4
Indicator word MW4
PAFE =MB 199
0001A
:
0001C
:UN
M 5.0
If no data is available,
0001E
:BEB
end
00020
:
00028
:L
MW 12
Increment receive counter
0002A
:L
KB 1
0002C
:+F
0002E
:T
MW 12
00030
:
00032 REC
:
00034
:SPA FB 121
Receive module
NAME #RECEIVE
SSNR =KY 0,0
Interface No. 0
A-NR =KY 0,12
Job No. 12
ANZW =MW 4
Indicator word MW4
ZTYP =KC DB
Save data in data module
DBNR =KY 0,12
DB number 12
ZANF =KF +0
from DW0
ZLAE =KF +100
Length 100 elements
PAFE =MB 199
00048
:
0004A
:BE
FB2 is a simple receive module which checks the indicator word flags:
•
handshake required
•
completed with error
Data module:
DB12
MODULE#DB12
BIB
#9095
;
Receive data module (A-No. 12)
00000:
KH
= 0000
1st data
transmit message ctr.
00001:
100 (
100 further data words
00001:
KH
= 0000
00002:
)
Summary of Contents for CP143 TCP/IP
Page 2: ...Lerrzeichen ...
Page 10: ...Lerrzeichen ...
Page 16: ...Lerrzeichen ...
Page 24: ...TCP IP protocol CP143 H1 TCP IP manual 2 8 Rev 00 07 ...
Page 26: ...LerrzeicLerrzeichenhen ...
Page 46: ...Standards and specifications CP143 H1 TCP IP manual 3 20 Rev 00 07 ...
Page 48: ...Lerrzeichen ...
Page 80: ...Lerrzeichen ...
Page 158: ...Application in combination with TCP IP CP143 H1 TCP IP manual 5 78 Rev 00 07 ...
Page 160: ...LerrzLerrzeicheneichen ...
Page 194: ...Lerrzeichen ...
Page 196: ...Technical data CP143 H1 TCP IP manual A 2 Rev 00 07 ...
Page 202: ...List of abbreviations CP143 H1 TCP IP manual C 2 Rev 00 07 ...
Page 206: ...List of tables CP143 H1 TCP IP manual E 2 Rev 00 07 ...