App - 6 App - 6
MELSEC-F
APPENDIX
Appendix 4.1 Program example for communication using MC protocol –1
The following explains a program, its execution environment and the contents of data
communication .
(1) Execution environment of the program example
(a) PLC side
1) Base module of the Ethernet installed station : FX
3U
/FX
3U
C
2) Ethernet block No.
: No.1
3) Ethernet block IP address
: 172.16.56.99 (AC.10.38.63
H
)
4) Ethernet block port number
: 10000
5) FX Configurator-EN (GX Developer) setting
• Operational settings
: See "(3) FX Configurator-EN (GX
Developer) setting (a)" on the next
page
• Open settings
: See "(3) FX Configurator-EN (GX
Developer) setting (b)" on the next
page
(b) External device side
1) Operation environment
: Microsoft
®
Windows
®
2000
Operating system
2) Ethernet interface board model name : WINSOCK compatible board
3) Library
: WSOCK32.LIB
4) Software development environment
: Microsoft
®
Corporation Visual
C
++
.NET
5) Ethernet address
: Setting not required because
the ARP function is available
6) IP address
: Receive at Active open
7) Port number
: Receive at Active open
(c) Communication protocol
: TCP/IP
(2) Outline of the program example
(a) Sequence program on the PLC side
Parameters are set from FX Configurator-EN (GX Developer).
(Sequence program is not required)
(b) Program on the external device side
Executes the following read/write data communication with the PLC using
the library mentioned above.
• Write in word units (for 5 points from D0 to D4)
• Read in word units (for 5 points from D0 to D4)
Содержание FX3U-ENET
Страница 1: ...USER S MANUAL FX3U ENET ...
Страница 2: ......
Страница 159: ...8 6 8 6 MELSEC F 8 COMMUNICATION USING MC PROTOCOL MEMO ...
Страница 295: ...App 25 App 25 MELSEC F APPENDIX MEMO ...
Страница 297: ......