Jetter AG
243
JVM-407B
Programming
Client
A client is to send a data block with a given number of characters and to return
the data received from the server.
Programming a client for the user-programmable IP interface. The client
communicates via TCP/IP.
The sample program has been tested for compliance with the following
software versions:
JetSym version 5.1
HMI JVM-407B, OS version 4.01
For more information on programming by STX, please turn to the online help
in JetSym.
Const
TCP_ADDR =
IP#192.168.10.210
;
TCP_PORT =
52100
;
MSG_LEN =
4000
;
End_Const
;
Var
// Handle as return value of the function "Establishing
// a connection"
ConnHandle : Int;
// Transmit buffer
SendBuf :
Array
[MSG_LEN]
Of
Char;
// Receive buffer
RecvBuf :
Array
[MSG_LEN]
Of
Char;
ResConnInit : Int;
ResConnCreate : Int;
ResConnReceive : Int;
ResConnSend : Int;
ConnTimeOut : Int;
RecvTimeOut : Int;
// Amount of receive errors
RecvErrors : Int;
// Amount of transmit errors
SendErrors : Int;
// Counter of correct communication transmissions
CommCnt : Int;
AmountToReceive : Int;
SendDelay : Int;
// Dummy
NotUsed : Int;
End_Var
;
Task
Solution
Software versions
JetSym STX program
Содержание JVM-407B-HMI
Страница 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Страница 14: ......
Страница 26: ...26 Jetter AG 2 Product description and design Rear view...
Страница 34: ......
Страница 80: ......
Страница 98: ...98 Jetter AG 5 Initial commissioning Initial commissioning in JetViewSoft see page 86 Related topics...
Страница 106: ......
Страница 144: ......
Страница 168: ......
Страница 178: ......
Страница 182: ......
Страница 196: ...196 Jetter AG 10 Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 220: ...220 Jetter AG 10 Programming Topic Page Programming 221 Registers 233 Sample programs 238 Contents...
Страница 258: ......
Страница 268: ......
Страница 274: ......
Страница 294: ...294 Jetter AG Appendix Rear view...
Страница 299: ......