App - 14 App - 14
MELSEC-F
APPENDIX
Appendix 4.2 Program example of communication using MC protocol –2
This section explains an example of an external device program that reads/writs data
from the PLC.
A sample program, its execution environment and contents of data communication are
shown below.
(1) Execution environment of the program example
1) The settings of the PLC side are the same as those of the execution
environment described in Section 4.1 (1) (a) and (3) of Appendix.
2) The settings of the external device side are the same as those of the
execution environment described in Section 4.1 (1) (b) of Appendix,
except for the following including the software development:
• Software development environment: Microsoft
®
Corporation Visual
Basic .NET
• Arbitrary numbers are assigned for the IP address and port number.
3) The communication protocol is TCP/IP
(2) Outline of the program example
With the A-compatible 1E frame command (01: batch read in word units), this
program reads data from D0 to D4 (five points) of the FX
3U
-CPU of the station on
which the Ethernet block is mounted.
(3) Outline of the sample program
(a) Create a new project and form.
(b) Create the (example) window shown in (4) below using " Button" and "List
Box" in the toolbox.
(c) Create the program shown in (5).
Summary of Contents for FX3U-ENET
Page 1: ...USER S MANUAL FX3U ENET ...
Page 2: ......
Page 159: ...8 6 8 6 MELSEC F 8 COMMUNICATION USING MC PROTOCOL MEMO ...
Page 295: ...App 25 App 25 MELSEC F APPENDIX MEMO ...
Page 297: ......