Mitsubishi Electronics MELSEC-F Universal Remote User Manual


 
App - 6
MELSEC-F
APPENDIX
App - 6
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
(b) External device side
(2) Outline of the program example
(a) Sequence program on the PLC side
Parameters are set from FX Configurator-EN.
(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)
1) Base module of the Ethernet installed station : FX
3U/FX3UC
2) Ethernet module No. : No.1
3) Ethernet module IP address : 172.16.56.99 (AC.10.38.63
H)
4) Ethernet module port number : 10000
5) FX Configurator-EN setting
Operational settings : See "(3) FX Configurator-EN setting
(a)" on the next page
Open settings : See "(3) FX Configurator-EN setting
(b)" on the next page
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