A - 6 A - 6
5 COMMUNICATION PROCEDURE 5- 1 to 5-46
5.1 Overview of the Communication Procedure .................................................................................. 5- 1
5.2 Initial Processing............................................................................................................................ 5- 3
5.2.1 Initial processing ...................................................................................................................... 5- 3
5.2.2 Initial settings ........................................................................................................................... 5- 4
5.2.3 Re-initialization......................................................................................................................... 5-10
5.3 Router Relay Parameter ................................................................................................................ 5-13
5.4 Confirming the Completion of the Initial Processing ...................................................................... 5-15
5.4.1 PING command (Personal computer Ethernet module) .................................................... 5-16
5.4.2 Loop back test (Communication using MC protocol) ............................................................... 5-17
5.5 Open Settings ................................................................................................................................ 5-18
5.5.1 Fixed buffer connection (connection No. 1 and connection No. 2) .......................................... 5-18
5.5.2 MELSOFT/MC protocol connections (connection No. 3 and connection No. 4) ...................... 5-24
5.6 Open Processing/Close Processing of the Connection ................................................................. 5-25
5.6.1 Active open processing/close processing ................................................................................ 5-27
5.6.2 Passive open processing/close processing ............................................................................. 5-33
5.6.3 UDP/IP open processing/close processing.............................................................................. 5-40
5.7 Pairing Open .................................................................................................................................. 5-43
5.7.1 Pairing open............................................................................................................................. 5-43
5.7.2 Example of pairing open settings............................................................................................. 5-44
5.8 Hub Connection Status Monitor Function ...................................................................................... 5-46
6 FIXED BUFFER COMMUNICATION
(WITH THE PROCEDURE EXIST CONTROL METHOD) 6- 1 to 6-18
6.1 Control Method .............................................................................................................................. 6- 1
6.2 Sending Control Method ................................................................................................................ 6- 3
6.3 Receiving Control Method.............................................................................................................. 6- 6
6.3.1 Receive processing with the main program ............................................................................. 6- 6
6.4 Data Format ................................................................................................................................... 6- 8
6.4.1 Header ..................................................................................................................................... 6- 8
6.4.2 Application data ....................................................................................................................... 6- 9
6.5 Programming ................................................................................................................................. 6-13
6.5.1 Precautions when creating programs ...................................................................................... 6-13
6.5.2 Fixed buffer communication program example (with the procedure exist control method)...... 6-14
7 FIXED BUFFER COMMUNICATION
(WITH THE NO PROCEDURE CONTROL METHOD) 7- 1 to 7-14
7.1 Control Method .............................................................................................................................. 7- 1
7.2 Sending Control Method ................................................................................................................ 7- 4
7.3 Receiving Control Method.............................................................................................................. 7- 6
7.3.1 Receive processing with the main program ............................................................................. 7- 6
7.4 Data Format ................................................................................................................................... 7- 8
7.5 Programming ................................................................................................................................. 7- 9
7.5.1 Precautions when creating programs ...................................................................................... 7- 9
7.5.2 Fixed buffer communication program example (with the no procedure control method) ......... 7-10