CP143
H1 / TCP/IP manual
Software
Rev. 00/07
5-77
5.11.7 Accessing the PLC from the PC
The following flowcharts are intended as a guideline for programming WRITE and FETCH jobs.
Entries in [] refer to function calls to the TCP/IP stack provided by FTP.
WRITE job
FETCH job
WRITE under TCP/IP
Start
Allocate network descriptor
[
net_getdesc
]
Define socket
(IP-address, ports)
Start active connection
[
net_connect
]
PLC header for
WRITE message
Write to data area
Transmit PLC header (16 bytes) +
data
[
net_write
]
Receive WRITE acknowledgement
message (16 bytes)
[
net_read
]
PLC header
error No. = 0 ?
N
Y
Error analysis
continue WRITE ?
Y
N
WRITE under TCP/IP
End
The declarations with [ ] are related
to function calls of the FTP software
Company.
FETCH under TCP/IP
Start
Allocate network descriptor
[
net_getdesc
]
Define socket
(IP-Adresse, Ports)
Start the connection
[
net_connect
]
PLC header for
FETCH request message
Transmit PLC header
(16 bytes)
[
net_write
]
Receive FETCH acknowledgement
message (16 bytes)
[
net_read
]
PLC header
error No. = 0 ?
N
Y
Error analysis
Data reception
(length from PLC header FETCH req.)
[
net_read
]
Analysis of data received
another FETCH ?
J
N
FETCH under TCP/IP
End
Entries in [ ] refer to function
calls of the TCP/IP
stack of the software company FTP
Содержание CP143 TCP/IP
Страница 2: ...Lerrzeichen ...
Страница 10: ...Lerrzeichen ...
Страница 16: ...Lerrzeichen ...
Страница 24: ...TCP IP protocol CP143 H1 TCP IP manual 2 8 Rev 00 07 ...
Страница 26: ...LerrzeicLerrzeichenhen ...
Страница 35: ...CP143 H1 TCP IP manual Network planning Rev 00 07 3 9 Fig 3 4 thick ethernet network hardware CP 143 H1 TCP IP ...
Страница 46: ...Standards and specifications CP143 H1 TCP IP manual 3 20 Rev 00 07 ...
Страница 48: ...Lerrzeichen ...
Страница 80: ...Lerrzeichen ...
Страница 158: ...Application in combination with TCP IP CP143 H1 TCP IP manual 5 78 Rev 00 07 ...
Страница 160: ...LerrzLerrzeicheneichen ...
Страница 194: ...Lerrzeichen ...
Страница 196: ...Technical data CP143 H1 TCP IP manual A 2 Rev 00 07 ...
Страница 202: ...List of abbreviations CP143 H1 TCP IP manual C 2 Rev 00 07 ...
Страница 206: ...List of tables CP143 H1 TCP IP manual E 2 Rev 00 07 ...
Страница 210: ...Index CP143 H1 TCP IP manual F 4 Rev 00 07 ...