3-27
■
Ethernet User Communication Sample Program
●
Communication Between MicroSmart Modules
System configuration
3_4_15_Between_Microsmart_E
Communication between MicroSmart modules
Ethernet
Web Server Unit B
IP address: 192.168.1.5
TCP protocol server mode
IP address: 192.168.1.5
(1) Data transmission
(2) Data reception
(3) Data transmission
(4) Data reception
The setting of Web Server Unit A
IP address: 192.168.1.2
TCP protocol client mode: "Always"
Target IP address: 192.168.1.5
Service: RAW
Connected Port No.: 2101
MicroSmart A
MicroSmart B
Web Server Unit A: TCP protocol (Client mode)
Web Server Unit B: TCP protocol (Server mode)
MicroSmart A
MicroSmart B
1)
MicroSmart A transmits data with the TXD command, and becomes ready to receive data with the RXD
command. Web Server Unit A transmits the data sent from MicroSmart A to Web Server Unit B (to which the
target IP address, the service and the target port number are registered).
2)
Web Server Unit B receives the data addressed to it, and transmits data to MicroSmart B. MicroSmart B
receives the data with the RXD command.
3)
MicroSmart B transmits data with the TXD command. Web Server Unit B transmits the data sent from
MicroSmart B to Web Server Unit A.
4)
Web Server Unit A receives the data addressed to it and transmits data to MicroSmart A. MicroSmart A receives
data with the RXD command.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]