6-12
<Toc> <Ind>
< 6. Modbus/TCP Communication Protocol>
IM 77C01E01-10E
6.5
Sample Program
6.5.1
Example of BASIC Program for Send and Receive
This section shows an example of a command sending and response receiving program
created with Visual-Basic*
2
for PC/AT*
1
(or compatible machines).
*1 PC/AT is the product of IBM Ltd.
*2 Visual-BASIC is a registered trademark of Microsoft Corporation in the United States.
HUB
PR300 as
Ethernet-serial
gateway function
RS-485 connection
Station number 02
(arbitrary)
(Example)
LAN
connection
LAN
connection
Station number 01 (fixed)
IP address [192.168.1.2]
(arbitrary)
Maximum distance between hub and module: 100 m
Maximum number of hubs connectable in cascade configuration:
4 levels for 10BASE-T
2 levels for 100BASE-TX
Higher-level device
IP address [192.168.1.1]
(arbitrary)
Summary of Contents for PR300
Page 141: ......