4
FX3U-ENET-ADP User's Manual Table of Contents
6. Introduction of Functions 34
6.1 Functions List................................................................................................................................ 34
6.2 Details of functions........................................................................................................................ 34
6.2.1 MELSOFT connections ................................................................................................................. 34
6.2.2 Communication Using MC Protocol............................................................................................... 34
6.2.3 MELSOFT Direct Connection (Simple Connection) ...................................................................... 35
6.2.4 Find CPU function ......................................................................................................................... 35
6.2.5 Time setting function ..................................................................................................................... 36
6.2.6 Parameter setting function............................................................................................................. 38
6.2.7 The diagnostics function from MELSOFT...................................................................................... 38
6.2.8 IP address change function........................................................................................................... 39
6.2.9 Data monitoring function................................................................................................................ 43
6.3 Setting Items List........................................................................................................................... 43
6.4 Settings and Procedures Prior to Starting the Operation.............................................................. 43
6.5 Ethernet Port Setting..................................................................................................................... 44
6.6 Operational Settings...................................................................................................................... 45
6.7 Overview of the Communication Procedure.................................................................................. 46
6.8 Initial Processing........................................................................................................................... 47
6.8.1 Initial processing............................................................................................................................ 47
6.8.2 Initial settings................................................................................................................................. 47
6.8.3 Re-initialization .............................................................................................................................. 47
6.9 Router Relay Parameter ............................................................................................................... 47
6.10 Confirming Completion of Initial Processing ...............................................................................47
6.10.1 PING command (Personal computer -> Ethernet adapter) ......................................................... 48
6.10.2 Loop back test (Communication using MC protocol)................................................................... 49
6.11 Open Settings ............................................................................................................................. 49
6.12 Open Processing/Close Processing of the Connection .............................................................. 50
7. Communication Using MC Protocol 53
7.1 Data Codes for Communication.................................................................................................... 53
7.2 Data Communication Function...................................................................................................... 53
7.2.1 Accessing the PLC using MC protocol .......................................................................................... 54
7.2.2 How to Read the Control Procedures of the MC Protocol............................................................. 54
7.2.3 Access Timing on the PLC Side.................................................................................................... 55
7.2.4 PLC setting for performing data communication ........................................................................... 55
7.2.5 Precautions on Data Communication ............................................................................................ 56
7.3 Message Formats and Control Procedures .................................................................................. 56
7.3.1 How to read the command reference section................................................................................56
7.3.2 Message format and control procedure......................................................................................... 57
7.3.3 Contents of data designation items ............................................................................................... 60
7.3.4 Character area transmission data ................................................................................................. 64
7.4 List of Commands and Functions for The MC protocol................................................................. 68
7.5 Device Memory Read/Write .......................................................................................................... 70
7.5.1 Commands and device range........................................................................................................ 70
7.5.2 Batch read in bit units (command: 00H) ........................................................................................ 72
7.5.3 Batch write in bit units (command: 02H)........................................................................................ 74
7.5.4 Test in bit units (random write) (command: 04H) ..........................................................................76
7.5.5 Batch read in word units (command: 01H) .................................................................................... 78
7.5.6 Batch write in word units (command: 03H).................................................................................... 82
7.5.7 Test in word units (random write) (command: 05H) ...................................................................... 86
7.6 Remote RUN/STOP, PLC model name code read ....................................................................... 88
7.6.1 Commands and control contents................................................................................................... 88
7.6.2 Remote RUN (command: 13H)/Remote STOP (Command: 14H) ................................................ 89
7.6.3 PLC model name read (command: 15H).......................................................................................90
7.7 Loopback Test............................................................................................................................... 92
7.7.1 Loopback test (command: 16H) .................................................................................................... 92