background image

 
 

 

2 - 1                                                                                                                                                       2 - 1 

MELSEC-F

2   SYSTEM CONFIGURATIONS 

 

 

 

 2 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2 SYSTEM CONFIGURATIONS 

This section explains the system configurations that may be combined with the 
Ethernet modules. 

 

2.1 Applicable Systems 

Ethernet modules can be used with the following systems: 

 

(1)   Applicable PLC and number of modules that can be mounted 

The following table lists the PLC where the Ethernet module can be mounted and 
the number of modules that can be mounted. 

 

Series name 

Compatible version 

Number of I/O points 

occupied 

Number of modules that can 

be mounted 

FX

3U

 

System version V2.21 or 
more 

8 points for input or output 

FX

3UC

 

(An FX

2NC

-CNV-IF or  

FX

3UC

-1PS-5V is necessary)

System version V2.21 or 
more 

8 points for input or output 

 

 

(2)   Applicable software packages 

When using the Ethernet module, the FX configurator-EN (GX Developer) for 
software packages applicable to the Ethernet module can be used. 
Refer to the manual of FX configurator-EN for the details. 

 

1)   The Ethernet module is set with FX configurator-EN (GX 

Developer) [Configurable by BFM]. 

2)   To use FX configurator-EN, either of the following software 

should be installed. 

•  GX Developer (V 8.25B or later) 
•  IEC Developer (V 7.00A or later) 

3)   For starting FX configurator-EN, the following shows two 

kinds of methods. 

•  Independently starting FX configurator-EN 
•  Starting from [Tools] menu of GX Developer 

4)   The installation form of FX configurator-EN differs 

depending on sales territory or country of this product. 

Consult with the dealer of this product for details. 

 

 

Содержание FX3U-ENET

Страница 1: ...USER S MANUAL FX3U ENET ...

Страница 2: ......

Страница 3: ...e severe injury It is important to follow all precautions for personal safety Store this manual in a safe place so that it can be taken out and read whenever necessary Always forward it to the end user Design Precautions DANGER To prevent malfunctions of the PLC system that may be caused by illegal e mail take proper countermeasures such as virus detection so that illegal e mail is not received by...

Страница 4: ...munication line cannot be reopened on the PLC side after that and the remote RUN from the external device cannot start Installation Precautions CAUTION Use the product within the generic environment specifications described in chapter 3 of this manual Never use the product in areas with excessive dust oily smoke conductive dusts corrosive gas salt air Cl2 H2S SO2 or NO2 flammable gas vibration or ...

Страница 5: ...onnecting the communication cables and the power cables do not pull the cables When disconnecting a cable with a connector hold the connector to the module by hand and pull it out to remove the cable When disconnecting a cable connected to a terminal block loosen the screws on the terminal block before removing the cable If a cable is pulled while being connected it may cause the module malfunctio...

Страница 6: ...AUTION Do not disassemble or modify the PLC Doing so may cause fire equipment failures or malfunctions For repair contact your local Mitsubishi Electric distributor Cut off all phases of the power supply externally before installation or wiring work in order to avoid damage to the product or electric shock Precautions When Disposing of This Product CAUTION Dispose of this product as an industrial ...

Страница 7: ...r Each Communication Function 3 5 3 4 Ethernet Module Function List 3 6 3 5 List of Setting Items for Ethernet Modules 3 7 3 6 List of Applications and Assignments of the Buffer Memory 3 8 4 SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 1 to 4 18 4 1 Loading and Installation 4 1 4 1 1 Handling precautions 4 1 4 1 2 Installation environment 4 3 4 2 Settings and Procedures Prior to Starting the Opera...

Страница 8: ...of pairing open settings 5 47 5 8 Hub Connection Status Monitor Function 5 49 6 FIXED BUFFER COMMUNICATION WITH THE PROCEDURE EXIST CONTROL METHOD 6 1 to 6 17 6 1 Control Method 6 1 6 2 Sending Control Method 6 3 6 3 Receiving Control Method 6 5 6 3 1 Receive processing with the main program 6 5 6 4 Data Format 6 7 6 4 1 Header 6 7 6 4 2 Application data 6 8 6 5 Programming 6 12 6 5 1 Precautions ...

Страница 9: ...ndom write command 04 9 23 9 3 5 Batch read in word units command 01 9 25 9 3 6 Batch write in word units command 03 9 29 9 3 7 Test in word units random write command 05 9 33 9 4 Remote RUN STOP PLC model name code read 9 35 9 4 1 Commands and control contents 9 35 9 4 2 Remote RUN command 13 Remote STOP Command 14 9 36 9 4 3 PLC model name read command 15 9 37 9 5 Loopback Test 9 39 9 5 1 Loopba...

Страница 10: ... Error codes stored in the buffer memory 11 21 11 5 Troubleshooting Flowchart 11 34 11 5 1 Sending errors during fixed buffer communication common to procedure exist and no procedure 11 37 11 5 2 Receiving errors during fixed buffer communication common to procedure exist and no procedure 11 39 11 5 3 Errors in communication using MC protocol 11 42 11 5 4 Sending errors during e mail communication...

Страница 11: ...L JY997D28601 Extracts the I O specifications wiring and installation of FX3UC D DSS Series PLC from FX3UC Series User s Manual Hardware Edition FX3UC 32MT LT 2 HARDWARE MANUAL JY997D31601 Extracts the I O specifications wiring and installation of FX3UC 32MT LT 2 from FX3UC Series User s Manual Hardware Edition FX3UC Series User s Manual Hardware Edition JY997D28701 MODEL CODE 09R519 Explains FX3U...

Страница 12: ...ntified standards below and design analysis through the creation of a technical construction file to the European Directive for Electromagnetic Compatibility 89 336 EEC when used as directed by the appropriate documentation Type Programmable Controller Open Type Equipment Models MELSEC FX3U series manufactured from August 1st 2005 FX3U ENET Standard Remark EN61131 2 2003 Programmable controllers E...

Страница 13: ...starting the operation of the Ethernet module a Startup procedure Section 4 2 describes an outline of the procedures to do before starting the operation of the Ethernet module b Connection to the Ethernet network system Section 2 2 describes the devices required to connect to the Ethernet network system Section 4 4 describes the connection methods for each type of interface c Parameter settings re...

Страница 14: ...cedures 4 Details on the data communication functions a Communication functions Section 1 2 describes an overview of the Ethernet module communication functions and related section numbers that can be referenced for more detailed explanations 5 Data communication functions and programming a Reading from and writing to the PLC Data is read from and written to the PLC with communication functions us...

Страница 15: ...odes b Error code storase area in the buffer memory of the Ethernet module Section 11 3 describes the error code storage areas in the buffer memory FX Configurator EN Using FX Configurator EN to set parameters the sequence programs for communicating with external devices can be simplified For details on the parameter settings from FX Configurator EN refer to the FX Configurator EN operation manual...

Страница 16: ...ck Described as the Ethernet module or FX3U ENET in the figures Ethernet network Abbreviation for 10BASE T and 100BASE TX networks GX Developer Abbreviation for GX Developer SWnD5C GPPW E n in the model name is 4 or later External device Generic term for personal computers computers workstations WS and Ethernet module etc that are connected by Ethernet for data communication Personal computer Gene...

Страница 17: ...intenance inspection and troubleshooting 1 1 Overview of the Ethernet Module The Ethernet module is an interface module on the PLC side for connecting the FX3U FX3UC series PLC with the host system such as a personal computer work station and other PLCs using the TCP IP or UDP IP communication protocol via Ethernet 100BASE TX 10BASE T Router Router Local station External device GX Developer Extern...

Страница 18: ...below as the MC Protocol 2 Transmission and reception of arbitrary data to from external devices Communication using fixed buffers 3 Data transmission reception by e mail When using the e mail function By using the FX Configurator EN GX Developer to set each parameter the sequence programs for communication can be significantly simplified ...

Страница 19: ...xed buffers Details are explained in Chapters 6 and 7 With communication using fixed buffers a maximum of 1023 words of arbitrary data can be sent or received between PLCs or between the PLC and an arbitrary device An Ethernet module is provided with 8 fixed buffer data areas each with 1023 word storage space and each is assigned as either a sending or receiving buffer for an arbitrary device Sinc...

Страница 20: ... receiving data as attached files Up to 2K words of data can be sent to or received from a personal computer or other Ethernet module with mail function as a file attached to an e mail 2 Sending data as main text Up to 256 words of data can be sent to a personal computer or portable terminal in the main text of an e mail Internet Public dial up line Router Router Local station External device Inte...

Страница 21: ...the following parameters with FX Configurator EN GX Developer access is enabled from the external device to the PLC It can also simplify sequence programs used to perform communication by Ethernet modules IP address setting E mail settings Port number setting Each timer setting Protocol type setting For more information on setting up the Ethernet module see Section 3 5 List of Setting Items for Et...

Страница 22: ...th GX Developer If a MELSOFT product is to be connected the settings of buffer memory for the MELSOFT connection or the following settings using FX Configurator EN GX Developer are required For FX Configurator EN GX Developer on the Open settings screen set TCP in the protocol field of the connection number to be used and MELSOFT connection in the open method field See Section 5 5 Connection via T...

Страница 23: ...nsport layer 4 Network layer 3 Data link layer 2 Physical layer 1 Socket From To instruction 1 TCP Transmission Control Protocol This protocol guarantees data credibility and reliability in communication between a personal computer work station and PLC that are connected via network and provides the following functions Creates a logical connection by establishing a connection logical line as if a ...

Страница 24: ...ur on an IP network and various information related to the network Provides a function to transmit IP error messages See Appendix for information regarding the types of ICMP supported 6 DNS Domain Name System This system translates IP addresses to names that are easy to remember by the user 7 SMTP Simple Mail Transfer Protocol This protocol transfers mail 8 POP3 Post Office Protocol Ver 3 This pro...

Страница 25: ...cates that there is no more data to be sent from the segment source and that the send source wants to disconnect However data can be received from the external device The connection is on until the segment whose FIN bit is ON is received from the external device 5 RST Reset Bit When this bit is ON 1 the host from which the segment has sent disconnects unilaterally forcibly Disconnection by this me...

Страница 26: ...ry System version V2 21 or more 8 points for input or output 1 2 Applicable software packages When using the Ethernet module the FX configurator EN GX Developer for software packages applicable to the Ethernet module can be used Refer to the manual of FX configurator EN for the details 1 The Ethernet module is set with FX configurator EN GX Developer Configurable by BFM 2 To use FX configurator EN...

Страница 27: ...hub For connection to the hub without the auto detection function set the half duplex mode on the hub side 1 Connection using the 100BASE TX External device Twisted pair cable Hub Up to 2 levels are allowed for cascade connection Ethernet module Use devices that satisfy the standards of IEEE802 3 and 100BASE TX Shielded twisted pair cable STP cable category 5 Straight cables can be used Correct op...

Страница 28: ...a communication error may occur due to the effect of high frequency noise from devices other than PLC in a given installation environment The following describes countermeasures on the FX3U ENET side to prevent the effect of high frequency noise for construction of a network system 1 Wiring connection Do not bundle the twisted pair cables with the main circuit and power wires and do not install th...

Страница 29: ...l dimensions 90 3 55 H 55 2 17 W 87 3 43 D mm inches Weight 0 3 kg 0 66 lbs Attached file 2048 words x 1 Data size Main text 256 words x 1 Data transfer method When sending Sends either a file as attachment or main text select one When receiving Receives a file as attachment Subject US ASCII format or ISO 2022 JP Base64 Attached file format MIME format MIME Version 1 0 Data of attached file format...

Страница 30: ... following explains each of the transmission specification items Connecting using the 10BASE T Connecting using the 100BASE TX Hub Maxmum 100m Maxmum 100m Up to 4 levels Up to 2 levels are allowed for cascade connection Hub Maxmum 5m Maxmum 100m ...

Страница 31: ...changeover refer to Section 4 6 Communication Settings Communication data code Data communication function Binary code ASCII code Reference chapter Communication using MC protocol Chapter 8 9 Procedure exist Chapter 6 Communication using fixed buffer No procedure 1 Chapter 7 Selectable Cannot be communicated 1 Communication is performed in binary code regardless of the communication code setting N...

Страница 32: ...a that can be communicated at one time between the Ethernet module and an external device is determined by the function used and the selected data code binary ASCII settings The following shows the maximum sizes of communication data that can be sent and received at a time with each data communication function Data communication function Exchangeable data size Communication using MC protocol The m...

Страница 33: ...otocol Communication using the fixed buffer Sending receiving e mail Mail server is required separately Can communicate Cannot communicate FX3U ENET FX Series Ethernet interface module QJ71E71 Q Series Ethernet interface module 2 Relationship with additional functions The following table lists the correspondence between functions and their additional functions that can be used Additional function ...

Страница 34: ...unction is not a function by which the Ethernet module works as a router Section 5 3 Existence check of external device Existence check function Checks whether or not the external device is working normally after a connection is established open processing Sections 5 2 2 and 5 5 Communication via pairing open Pairs and then opens a reception connection and a transmission connection for fixed buffe...

Страница 35: ...s Set the DNS server s IP address Section 10 6 Open settings Set up the open processing for connection in order to perform data communication with the external device Section 5 5 Router relay parameter Set the router relay of Ethernet Section 5 3 E mail settings Perform settings for sending receiving e mail Send mail address setting Set the destination mail address Section 10 6 Must be set when th...

Страница 36: ...r areas 1 The areas where the user writes reads data 2 A user area consists of a parameter area for initial processing and data communication an area for data communication and an area for storing communication status and communication error data 3 Reading writing data to the user area should be performed according to the instructions in the corresponding detailed explanation section Data communic...

Страница 37: ...ms 60 3CH 5 5H R W TCP zero window timer value Setting time setting value 500 ms 20 14H 6 6H R W TCP resend timer value Setting time setting value 500 ms 20 14H 7 7H R W TCP end timer value Setting time setting value 500 ms 40 28H 8 8H R W IP assembly timer value Setting time setting value 500 ms 10 AH 9 9H R W Response monitoring timer value Setting time setting value 500 ms 60 30H 10 AH R W Dest...

Страница 38: ...t for OPEN communication possible at STOP time Bits other than above are reserved for system use 0 0H Section 4 6 25 19H R W Flash ROM writing control area Flash ROM writing control 0000H Normal status 9872H Write command for configuration data to a flash ROM Automatically returns to 0000H after writing to a flash ROM 9981H Write command for configuration data to a flash ROM return to the status a...

Страница 39: ...ing abnormally completed 0 b6 1 Open processing abnormally completed b7 1 Link signal ON 0 Link signal OFF b8 Connection No 1 1 Open 0 Closed b9 Connection No 2 1 Open 0 Closed b10 Connection No 3 1 Open 0 Closed b11 Connection No 4 1 Open 0 Closed b12 Connection No 5 1 Open 0 Closed b13 Connection No 6 1 Open 0 Closed b14 Connection No 7 1 Open 0 Closed b15 Connection No 8 1 Open 0 Closed b0 and ...

Страница 40: ...passive open A002 When MELSOFT communication in use Bits other than above are reserved for system use 0 0H Section 5 5 33 21H R W Connection No 2 bit configuration is the same as connection No 1 Same as connection No 1 34 22H R W Connection No 3 bit configuration is the same as connection No 1 Same as connection No 1 35 23H R W Connection No 4 bit configuration is the same as connection No 1 Same ...

Страница 41: ...FH 47 to 53 2F to 35H R W Connection No 2 Same as connection No 1 54 to 60 36 to 3CH R W Connection No 3 Same as connection No 1 61 to 67 3D to 43H R W Connection No 4 Same as connection No 1 68 to 74 44 to 4AH R W Connection No 5 Same as connection No 1 75 to 81 4B to 51H R W Connection No 6 Same as connection No 1 82 to 88 52 to 58H R W Connection No 7 Same as connection No 1 89 to 95 59 to 5FH ...

Страница 42: ...ion No 1 Fixed buffer communication time unit 10ms Current value 0 0H 130 to 139 82 to 8BH R Connection No 2 Same as connection No 1 140 to 149 8C to 95H R Connection No 3 Same as connection No 1 150 to 159 96 to 9FH R Connection No 4 Same as connection No 1 160 to 169 A0 to A9H R Connection No 5 Same as connection No 1 170 to 179 AA to B3H R Connection No 6 Same as connection No 1 180 to 189 B4 t...

Страница 43: ...e 1 Communication in ASCII code TCP Existence confirmation setting b4 0 Use the Ping 1 Use the KeepAlive Send frame setting b5 0 Ethernet frame 1 IEEE802 3 frame Initial timing setting b8 0 Do not wait for OPEN Communications impossible at STOP time 1 Always wait for OPEN Communication possible at STOP time Bits other than above are reserved for system use 4 04H Section 4 7 204 tos 226 E0 to E2H C...

Страница 44: ...r log block 1 265 to 273 109 to 111H R Error log block 5 Same as error log block 1 274 to 282 112 to 11AH R Error log block 6 Same as error log block 1 283 to 291 11B to 123H R Error log block 7 Same as error log block 1 292 to 300 124 to 12CH R Error log block 8 Same as error log block 1 301 to 309 12D to 135H R Error log block 9 Same as error log block 1 310 to 318 136 to 13EH R Error log block ...

Страница 45: ...uest total count of received ICMP packets 416 to 417 1A0 to 1A1H R Echo reply total count of sent ICMP packets 418 to 419 1A2 to 1A3H R Echo request total count of sent ICMP packets 420 to 421 1A4 to 1A5H R Echo reply total count of received ICMP packets 0 0H 422 to 439 1A6 to 1B7H ICMP System area 440 to 441 1B8 to 1B9H R Received TCP packet count 442 to 443 1BA to 1BBH R Received TCP packet coun...

Страница 46: ...on 1600 640H R W Re initialization Write value Re initialization request 0001H Re initialization COM ERR LED OFF 0002H Re initialization after reading data in Flash ROM COM ERR LED OFF 0005H Re initialization COM ERR LED retains status 0006H Re initialization after reading data in Flash ROM COM ERR LED retains status Read value 0008H During re initialization 8000H At re initialization completion C...

Страница 47: ...ssed b3 b0 ON 0010H Open error Closed status b4 ON 0015H Open error Open status b5 ON 0001H During open standby 8000H During close standby 0 0000H Chapter 5 1603 644H R W Connection No 2 Open Close command Same as connection No 1 1604 645H R W Connection No 3 Open Close command Same as connection No 1 1605 646H R W Connection No 4 Open Close command Same as connection No 1 1606 647H R W Connection...

Страница 48: ... only when procedure exists 0004H Stored when transmission complete If instantly receiving the next data depending on the timing of FROM instruction 0001H is stored without reading 0004H 0008H Stored when transmission error 0000H Stored when the open processing or close processing is completed For receiving 1 Write value Write value Procedure No procedure 0002H Response transmission to an external...

Страница 49: ...mplete confirmation signal of connection No 8 Same as connection No 1 1618 to 1663 659 to 67FH System area g Fixed buffer area BFM 1664 to 9855 BFM number Decimal Hexadecimal Attribute Application Name Initial value Decimal Hexadecimal Flash ROM save Reference section 1664 680H R W Data length 1665 to 2687 681 to A7FH R W Fixed buffer No 1 Fixed buffer data 0 0H Chapter 6 Chapter 7 2688 A80 R W Da...

Страница 50: ...ximum 64 characters or IP address 1 0 0 0 0 Chapter 10 9954 26E2H R W Shared area for e mail buffers Method for designating POP3 server 0 Domain name designation 1 IP address designation Decimal 2 IP address designation Hexadecimal 1 Chapter 10 9955 to 9986 26E3H to 2702 R W Domain name of the POP3 server maximum 64 words or IP address 1 0 0 0 0 Chapter 10 9987 to10018 2703H to 2722 R W Send desti...

Страница 51: ...ailure b0 OFF to Send destination address 10 Success b9 ON Failure b9 OFF 0 0000H Chapter 10 10337 2861H R W Sending designation of e mail Turns on the bit of the mail address that sends an e mail Sending destination address 1 Enable b0 ON Disable b0 OFF to Sending destination address 10 Enable b9 ON Disable b9 OFF Initialized into 0000H by mail sending instruction and the bit is updated sequentia...

Страница 52: ...534 38A7 to 38C6H R Message ID Stores a message ID of received mail maximum 64 characters 0 Chapter 10 14535 38C7H R Character string length of message header Stores the character string length of the message header 0 0000H Chapter 10 14536 to 14727 38C8 to 3987H R Message header Stores the message header maximum 384 characters 0 Chapter 10 14728 to 14759 3988 to 39A7H R Send source mail address S...

Страница 53: ...0 0H Section 5 6 20483 to 20484 5003 to 5004H Connection status information area System area 20485 5005H R Connection status storage area Fixed buffer information area Fixed buffer reception status signal 0 Data not received 1 Data being received Connection No 1 b0 Connection No 2 b1 to Connection No 8 b7 0 0H Chapter 7 20486 to 20504 5006 to 5018H System area 20505 to 20506 5019 to 501AH R W DNS ...

Страница 54: ...CH R Error log block 3 Same as error log block 1 22781 to 22824 58FD to 5928H R Error log block 4 Same as error log block 1 22825 to 22868 5929 to 5954H R Error log block 5 Same as error log block 1 22869 to 22912 5955 to 5980H R Error log block 6 Same as error log block 1 22913 to 22956 5981 to 59ACH R Error log block 7 Same as error log block 1 22957 to 23000 59AD to 59D8H R Error log block 8 Sa...

Страница 55: ...449 to 23492 5B99 to 5BC4H R Error log block 3 Same as error log block 1 23493 to 23536 5BC5 to 5BF0H R Error log block 4 Same as error log block 1 23537 to 23580 5BF1 to 5C1CH R Error log block 5 Same as error log block 1 23581 to 23624 5C1D to 5C48H R Error log block 6 Same as error log block 1 23625 to 23668 5C49 to 5C74H R Error log block 7 Same as error log block 1 23669 to 23712 5C75 to 5CA0...

Страница 56: ...ck area BFM 227 to 372 to 0 0101H Clears communication status status for each protocol BFM 376 to 511 0102H Clears communication status E mail receive status BFM 22641 to 23352 0103H Clears communication status E mail receive status BFM 23353 to 23712 FFFFH Clears all of the above 0 0000H 31801 7C39H R W COM ERR Off Designates the function to be cleared 0000H COM ERR LED Off error code clear FFFFH...

Страница 57: ...e dropped or subjected to any shock 2 Tighten the module terminal and fixing screws within the following specified clamping torque range Screw location Tightening torque range External power supply terminal screw M3 screw 0 5 to 0 8 N m Unit affixing screw M4 screw 0 78 to 1 08 N m DANGER Do not touch the terminals and connectors while the power is on Doing so may result in electric shocks and mal...

Страница 58: ...alfunction or fall off Do not directly touch the conducting parts and electronic parts of the module This may cause the module to malfunction or fail When disposing of this product treat it as industrial waste A protective sheet is pasted on the upper part of the module in order to prevent foreign matter such as wire chips to get inside the module while wiring Do not remove this protective sheet d...

Страница 59: ...e Locations where there are corrosive or flammable gases Locations exposed to considerable amounts of conductive powdery substances such as dust and iron filing oil mist salt or organic solvents Locations exposed to direct sunlight Locations exposed to strong electric or magnetic fields Locations where vibrations or impacts are directly applied to the main unit CAUTION Use the PLC in the operating...

Страница 60: ...l processing Setting the Ethernet module network parameters POINT 1 When the parameter settings are added or modified using the FX Configurator EN GX Developer the settings differs depending on the connection condition to the Ethernet module as shown below When directly connected to the PLC After the parameter settings are added or modified re initialization processing can be automatically perform...

Страница 61: ...ot wait for OPEN is selected the communication line will be closed during remote STOP After that communication cannot be reopened from the PLC side and remote run from the external device will not work 3 When the Ethernet module is replaced reset the parameters 4 When the Ethernet module is replaced reboot the external device as well If the external device retains the Ethernet address it may be im...

Страница 62: ... cover removed Name Description 1 LED display Refer to the contents of the LED displays 1 2 10BASE T 100BASE TX connector RJ45 Connector for connecting the Ethernet module to the 10BASE T 100BASE TX Ethernet module chooses between 10BASE T and 100BASE TX according to the hub 3 Extension cable Cables to connect to the PLC 4 External 24VDC terminal Power supply terminal for 24VDC ...

Страница 63: ...received Data not being received ERR Setting abnormal display Abnormal 2 Normal setting COM ERR Communication abnormal display Communication abnormal occurrence 3 Normal communication in progress POWER Module power status Power is on Power is off C1 to C8 TCP IP UDP status of the connections TCP IP Connection Established UDP Open TCP IP Connection not Established UDP Closed 1 Refer to Section 11 1...

Страница 64: ...to be connected to the module in a duct or fasten them using a clamp If the cables are not placed in a duct or fastened with a clamp their positions may be unstable or moved and they may be pulled inadvertently This may damage the module and the cables or cause the module to malfunction because of faulty cable connections When disconnecting the communication and power cables from the module do not...

Страница 65: ...ir cable Category 3 5 5e Operating procedure Step 1 Connect the twisted pair cable to the hub Step 2 Connect the twisted pair cable to the Ethernet module POINT 1 The Ethernet module detects whether it is 10BASE T or 100BASE TX and in full duplex or half duplex transmission mode automatically according to the hub For connection to the hub without the auto detection function set the half duplex mod...

Страница 66: ...ecessary to set the timer values when communicating using the default timer values 3 Open settings Details are explained in Section 5 5 This screen is for setting connection open processing buffer memory for fixed buffer communication and MC protocol to communicate data with an external device 4 Router relay parameter Routing information Details are explained in Section 5 3 The following setting f...

Страница 67: ...V2 0 ON IEEE 802 3 Initial Timing 24 b8 Open setting OFF Do not wait for OPEN ON Always wait for OPEN IP Address 0 to 1 IP address of the local station Initial processing parameter setting area For re initialization b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 1 Communication data code setting 2 TCP Existence confirmation setting 3 Send frame setting 4 Initial timing setting 1 Communicati...

Страница 68: ...e of an error perform re initialization using a sequence program NOTE When adjusting settings with FX Configurator EN GX Developer select Operating Settings at the initial screen and adjust the settings at the Ethernet Operating Settings screen 3 Send frame setting BFM 24 b5 a Select the frame of the Ethernet header for the data link layer to be sent by the Ethernet module Setting item Description...

Страница 69: ...connections always wait for open according to the parameter settings a sequence program for open close processing is not required 2 Communication can be performed while the PLC is in the STOP status 2 If the sequence program of the local station s PLC executes the close processing the station is not placed in the OPEN request wait status after the connection is shut off b In the following cases op...

Страница 70: ...Values bits 31 to 24 to BFM 1 BFM 0 U G0 DMOV H0C0A801FE Example Program for 192 168 1 254 C0 A8 01 FEH corresponds to the module number U G25 MOV H9872 IP adress 192 168 1 254 C0 A8 01 FEH is stored in BFM 0 1 Write command for configuration data to a flash ROM b It is necessary to use the router relay function in order to communicate with an external device on another Ethernet network different ...

Страница 71: ...mately five seconds to complete The test result can be determined from the LED displays on the front of the Ethernet module Status of LED Step Description of operation RUN C1 ERR 1 Perform a self loopback test in operation mode 0002H is written to BFM 202 2 The contents of BFM 202 are written to the flash ROM 9872H is written to BFM 25 3 Turn off the PLC Set the RUN STOP switch to the STOP side Re...

Страница 72: ...ritten to BFM 202 2 The contents of BFM 202 are written to the flash ROM 9872H is written to BFM 25 3 Turn off the PLC Set the RUN STOP switch to the STOP side Reboot the PLC s and the Ethernet module s power 4 The test is in execution Normal 5 The test results are shown on the LED after approximately 5 seconds Error 6 Turn off the PLC and the Ethernet module Lit Off The following are probable cau...

Страница 73: ...ns DANGER Do not touch the terminals and connectors while the power is on Doing so may cause in electric shocks and malfunctions Make sure to turn off all phases of the external power supply before cleaning or re tightening the screws Failure to do so may cause damages or malfunctions of the module If the screws are loose it may cause the module to short circuit malfunction or fall off Tightening ...

Страница 74: ...ion procedure when replacing the FX base module Step 1 Turn off the power supply to the FX base module and the Ethernet module Step 2 Replace the FX base module See the Manual of FX PLC Step 3 Turn off the power 1 It is recommended to record and save parameters not only when the Ethernet module is replaced but also when parameters for the Ethernet module are created or modified 2 When FX Configura...

Страница 75: ...ernal devices via the Ethernet module Start data communication by establishing connections with external devices via the initial or open processing End data communication by closing the connection and as a result terminating all communication processing The following diagram illustrates the communication procedure There is no connection since UDP IP does not have a notion of connection Open proces...

Страница 76: ...st send Header Ethernet IP TCP Sub header Application data Ethernet module PLC Subheader code When receiving communication request data from an external device Store data received Fixed buffer communication Procedure exists communication Communication using the MC protocol read write Device memory etc Data 00H to 05H 13 to 16H 80H to 85H 93 to 96H OS Confirm the request contents with the subheader...

Страница 77: ...ethods Select re initialization Re initialization request write 0001H to BFM 1600 Power ON the Ethernet module again 1 Parameters required for initial processing Operational settings See Section 4 6 Initial settings See Section 5 2 2 2 Confirmation of initial processing result Ethernet module Initial processing INIT LED Initial normal completion signal BFM 28 b0 Initial abnormal completion signal ...

Страница 78: ...nse wait time 2 to 32767 Destination existence confirmation starting interval 10 Set the time to start confirming existence of an external device after communication with it has terminated 1 to 32767 Destination existence confirmation interval timer 11 Set the time interval between reconfirming existence 1 to 32767 Timer setting Destination existence confirmation resend timer 12 Set the number of ...

Страница 79: ... 500 ms 3 Timer setting TCP resend timer BFM 6 a Set the resend time if ACK is not returned during TCP opening or data transmission This timer is also used for the existence time of the ARP function ARP is resent in TCP resend timer value 2 if a response is not returned after the sent ARP request It also serves as the minimum setting time for the data link instruction arrival monitoring time b Set...

Страница 80: ... side when an open connection for which existence confirmation is required does not respond b Set the value in the range from 1 to 32767 c Timer setting setting value 500 ms 8 Timer setting Destination existence confirmation interval timer BFM 11 a This timer sets the time interval before reconfirming the existence of an external device on an open connection for which existence confirmation is req...

Страница 81: ...are 1 1 n is the number of TCP segment transmissions and can be obtained via the following calculation n fractions below decimal point are rounded up Size of the message transmitted by the Ethernet module Maximum segment size TCP ULP timer value on the Ethernet module side n Example1 Number of TCP segment transmissions when communicating via the same line The maximum segment size is 1460 bytes via...

Страница 82: ...to eliminate the retries explained in 3 i e to set the number of retries to 0 TCP ULP timer value TCP end timer value TCP resend timer value Each timer value should be identical 5 The target existence check is a function whereby the Ethernet module checks whether or not a remote device is functioning normally by sending an existence check message and then waiting to see whether a response message ...

Страница 83: ...et when it receives a PING echo request command It sends a response to the received PING command even if the connection used in the data communication with the remote device is closed b The following actions are taken if a response message cannot be received an error is detected from the remote device The corresponding connection will be forcibly closed the line is disconnected 3 3 It is possible ...

Страница 84: ... it has been communicating and the corresponding Ethernet address MAC address This is done in order to prevent other devices from accessing the PLC illegally using the IP address of an external device with which communication was performed normally 1 For this reason it is necessary to re initialize in order to clear the address information of the external device maintained by the Ethernet module i...

Страница 85: ... Open completion signal BFM 20480 Re initialization request TO BFM 1600 Re initialization status FROM BFM 1600 1 2 3 4 8000H Normal completion C000H Abnormal completion 0001H 0002H 0000H Module initialization R Read W Write Normal Abnormal 1 It is confirmed whether the initial processing has been completed normally 2 All data communication currently being performed with external devices is termina...

Страница 86: ...t data communication with external devices and close all connections before re initializing 2 Be sure to reset external devices if the IP address of the Ethernet module has been changed If an external device maintains the Ethernet address of a device with which it communicates the communication may not work after the IP address of the Ethernet module has been changed NOTE It is possible to change ...

Страница 87: ...king settings with the FX Configurator EN GX Developer select Router Relay Parameters from the initial screen and adjust the settings at the Ethernet Router Relay Parameter Settings screen 1 Router relay function BFM 2 b4 b5 a Set whether the router relay function will be used or not The router relay function is not needed when the FX3U ENET communicates with the target device on the same Ethernet...

Страница 88: ...all scaled networks are connected by routers etc The subnet mask logically divides one network where many devices are connected into multiple sub networks to facilitate administration 1 0 0 0 0 0 0 1 81H 0 0 0 0 0 1 0 1 05H 0 0 1 0 1 1 1 1 2FH 0 0 0 0 0 0 0 1 01H FFH 00H FFH FCH 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 1 0 ...

Страница 89: ... all 0 or all 1 4 Sub net mask pattern and router IP address a Select the input format decimal or hexadecimal for each setting item 5 Setting examples Class B IP address 81052F01H 129 5 47 1 Subnet mask FFFFFC00H 255 255 252 0 Class B IP address 81044001H 129 4 64 1 Class B IP address 129 5 41 2 Class A IP address 71044001H 113 4 64 1 Ethernet1 Ethernet2 Ethernet3 Router 1 Router 3 Router 2 Ethern...

Страница 90: ...1 81H 0 0 0 0 0 1 0 0 04H 0 0 0 0 00H 0 0 0 0 Network address Set the network address of the target device 1 0 0 0 0 00H 0 0 0 0 Setting example 2 When the classes of the local station Ethernet module and target device differ Local station Ethernet module IP address Class B 1 0 0 0 0 0 0 1 81H 0 0 0 0 0 1 0 1 05H 0 0 1 0 1 1 1 1 2FH 0 0 0 0 0 0 0 1 01H Network address Target device 2 IP address Cl...

Страница 91: ... 0 1 81H 0 0 0 0 0 1 0 1 05H 0 0 1 0 1 1 1 1 2FH 0 0 0 0 0 0 0 1 01H Network address Target device 3 1 0 0 0 0 0 0 1 81H 0 0 0 0 0 1 0 1 05H 0 0 1 0 29H 0 0 0 0 0 0 2 0 02H 1 0 0 1 Subnet address set value 1 0 0 0 0 0 0 1 81H Subnet address Set the subnet address of the target device 3 0 0 0 0 00H 0 0 0 0 1 1 FFH Subnet mask 1 1 1 1 1 1 1 1 FFH 1 1 1 1 1 1 1 0 FCH 1 1 1 1 1 0 0 0 0 0 00H 0 0 0 0 0...

Страница 92: ...ings parameter This section explains how to check the completion of the initial processing POINT The status of the Ethernet module becomes communication enabled when the initial processing is completed normally See reference sections for each communication function to perform communication When the initial processing has not been completed normally do the following to check the error contents take...

Страница 93: ...ime 10ms TTL 128 Ping statistics for 192 0 1 254 Packets Sent 4 Received 4 Lost 0 0 loss Approximate round trip times in milli seconds Minimum 0ms Maximum 1ms Average 0ms C _ Example of screen at normal completion C ping 192 0 1 254 Execute the ping command Pinging 192 0 1 254 with 32 bytes of data Request timed out Request timed out Request timed out Request timed out Ping statistics for 192 0 1 ...

Страница 94: ...roperly connected to the test target Ethernet module Whether the parameters for the Ethernet module have been correctly set Whether the initial processing for the Ethernet module has been completed normally Whether the program for the external device is running correctly 2 It is necessary to connect lines when performing communication using MC protocol with the user port on the Ethernet module sid...

Страница 95: ...elect the connection open system 00 Active open 10 Unpassive open 11 Fullpassive open A002 MELSOFT connection 1 Fixed buffer 32 to 39 b0 Select the usage of the fixed buffer OFF Send ON Receive Fixed buffer communication 32 to 39 b10 b9 Select which protocol is used for fixed buffer communication 00 Procedure exist 10 MC App 01 No procedure Pairing open 32 to 39 b7 Select whether paring open is us...

Страница 96: ...ation set in 8 Destination IP address MELSOFT connection 1 2 3 Used to connect MELSOFT products via TCP IP communication Perform passive open processing on the TCP connection addressing all the MELSOFT products connected to a network The local station is placed in the wait status for an Active open request to be sent 1 Regardless of the initial timing setting in the operation setting refer to Sect...

Страница 97: ...ffer communication connection numbers 1 to 8 BFM 32 to 39 b9 to b10 a For this item select the communication method when communicating using the fixed buffers Name of setting Description of setting Procedure exist In fixed buffer communication data is communicated in 1 1 by handshaking with the external device Procedure exist MC In fixed buffer communication 1 1 data communication is performed by ...

Страница 98: ...tion with the external device must have been completed Name of setting Description of setting No confirm Do not confirm the existence of the external device Confirm Confirm the existence of the external device For details on the settings of the existence confirmation time and others see Section 5 2 Initial Settings b When an error occurs in the existence confirmation the Ethernet module performs t...

Страница 99: ...mbers that are not already used by other ports c Set the port numbers for the Ethernet module upon consulting a network administrator 8 Destination IP address connection numbers 1 to 8 BFM 41 to 42 48 to 49 55 to 56 62 to 63 69 to 70 76 to 77 83 to 84 90 to 91 a Set the IP addresses two words for external devices in the chosen input format decimal hexadecimal b The IP addresses of external devices...

Страница 100: ...is necessary to open a connection for each external device This cannot be chosen when the local station is Unpassive Ethernet module External device When connecting to multiple ports of an external device set multiple port numbers for the Ethernet module Ethernet module External device When connecting to multiple ports of an external device set a single port number for the Ethernet module However ...

Страница 101: ...ive UDP ARP function of external device ARP function of external device Parameter Yes No Un passive Full passive Yes No Local station Port No Destination IP address Destination Port No Communication address Destination Ethernet address 2 1 1 1 Use the default value FFFFFFFFFFFFH or 0 2 When using the Open settings of FX Configurator EN GX Developer the default value is used ...

Страница 102: ...ing the initial processing must be complete BFM 28b0 ON and the hub communication status BFM 28b7 ON must be on d A connection with an external device must be established open processing when communicating using either the MC protocol fixed buffers 1 Two types of data communication mentioned above can also be performed with an external device opened by the user 1 Since the Ethernet module recogniz...

Страница 103: ... number 1 TCP IP Active open See 5 6 1 Active open processing close processing TCP IP Passive open See 5 6 2 Passive open processing close processing UDP IP Open See 5 6 3 UDP IP open processing close processing POINT Except when the close processing is requested the open completion signal applicable bit of BFM 20480 automatically turns off and the communication line is closed in the following cas...

Страница 104: ...elf holding Status Status read Open request self holding M0 Initial completion status MOVP H1 U1 G1602 OPEN instruction status Reading value of 1602 Reading value of 1602 Reading value of 1602 Open completed Open normal completion processing Open abnormal completion processing Normal open processing Open abnormal processing Open request Closed self holding OPEN instruction status Closed self holdi...

Страница 105: ... completion signal BFM 27 0001H 2 Confirm that the Ethernet module and hub are connected BFM 28 b7 ON 3 Start the open processing writing with pulse execution instruction 0001H to BFM 1602 4 The Ethernet module executes the open processing Sends the open request SYN 5 When the open processing completes normally Open completion signal BFM 20480 b0 ON BFM 1602 0005H Data communication is enabled Whe...

Страница 106: ...nection open abnormal code area of the communication status storage area Connection numbers 1 to 8 BFM 120 to 199 Error log area BFM 227 to 372 Error codes stored in the open error code area are cleared when writing 0001H to the BFM 1602 to 1609 to perform the open operation 3 Processing when the close processing is abnormally completed TCP When closing normally from the Ethernet module the Ethern...

Страница 107: ...ls on how to set it see Section 5 2 Initial Settings If the ACK and FIN messages are received at this point it returns an ACK as in the normal processing 6 If an ACK and a FIN are not received within the time designated by the TCP end timer an RST message is sent to the external device 7 The Ethernet module determines that the close procedure is completed and turns off the open completion signal r...

Страница 108: ...in the following manner Protocol TCP BFM 32 b8 OFF Open system Active BFM 32 b14 b15 00H Fixed buffer Send BFM 32 b0 OFF Fixed buffer communication procedure Procedure exist BFM 32 b9 OFF Pairing open Disable BFM 32 b7 OFF Existence confirmation No confirm BFM 32 b1 OFF Host station Port No 4096 BFM 40 Transmission target device IP address 10 97 85 223 0A 61 55 DFH BFM 41 to 42 Transmission target...

Страница 109: ... END 98 12 MOVP H1 MOVP H8000 H0A6155DF DMOVP U1 G1602 Open request M0 Initial completion status M117 Link status Cancel of self holding at close U1 G32 U1 G40 U1 G43 U1 G41 U1 G1602 U1 G1602 Open request Self holding Reading value of 1602 Reading value of 1602 H15 D100 Reading value of 1602 Reading value of 1602 Reading value of 1602 OPEN instruction transmission completed Closed Self holding Clo...

Страница 110: ...ion Possible at STOP In this case sequence programs for open processing and close processing are not required because the Ethernet module keeps the connection in the always wait for the OPEN status according to the Open settings parameter setting For detail on the Open settings parameter see Section 5 5 Open Settings Open status Open allowed status Active open acknowledge enabled Close status Init...

Страница 111: ...cessing is completed BFM 1602 0000H the open completion signal BFM 20480 b0 turns off and data communication is disabled 4 After the Ethernet module s internal processing is Rissn completed the connection returns to the open acknowledge enabled status NOTE For Passive open connections for which Always wait for OPEN Communication possible at STOP time is selected in Operational settings the connect...

Страница 112: ...1 INCP D2 END 79 12 MOVP H8000 U1 G1602 Open request Cancel of self holding at close Open request Self holding Open request Self holding Open request Reading value of 1602 Reading value of 1602 Reading value of 1602 Reading value of 1602 Closed Self holding Closed Self holding Reading value of 1602 OPEN instruction status Reading value of 1602 OPEN instruction status OPEN instruction status Rissn ...

Страница 113: ...ignal BFM 20482 b0 ON 3 OPEN possible Listen status from external device Open close status BFM 1602 0003H 4 The Ethernet module starts the open processing upon receiving the open request SYN from the external device At normal completion Open completion signal BFM20480 b0 ON BFM 1602 0005H Data communication is enabled At abnormal completion Open completion signal OFF The open error code is stored ...

Страница 114: ...is generated and the Ethernet module sends a connection forced close RST NOTE 1 If the settings of the connection need modifying the modifications should be done before writing the open instruction to the buffer memory 2 Once open processing is executed an open request cannot be canceled before the open processing is completed Write the close instruction to the buffer memory after the open process...

Страница 115: ...y code BFM 24 b1 OFF Initial timing Do not wait for OPEN Communications impossible at STOP time BFM 24 b8 OFF IP address 10 97 85 223 0A 61 55 DFH BFM 106 to 107 d Make open settings in the following manner Protocol TCP BFM 32 b8 OFF Open system Unpassive BFM 32 b14 b15 10H Fixed buffer Send BFM 32 b0 ON Fixed buffer communication procedure Procedure exist BFM 32 b9 OFF Pairing open Disable BFM 32...

Страница 116: ...H8000 U1 G1602 Open request Cancel of self holding at close Open request Self holding Open request Self holding Open request Reading value of 1602 Reading value of 1602 Reading value of 1602 Reading value of 1602 Closed Self holding Closed Self holding Reading value of 1602 OPEN instruction status Reading value of 1602 OPEN instruction status OPEN instruction status Rissn Open completed Number of ...

Страница 117: ...or details on the Open settings parameter see Section 5 5 Open Settings NOTE When performing the open and close processing by writing to the buffer memory from the Ethernet module side even if Always wait for OPEN Communications impossible at STOP time is selected at Operational settings it is required to use the sequence program to process all that follows the processing for the applicable connec...

Страница 118: ...us M8000 MOV K4M110 0 U1 G28 Status Status read value M0 Initial completion status U1 G27 H1 Initial completion signal Open processing for connection No 1 MOVP H1 OPEN instruction status U1 G1602 INCP D2 END 62 Close request Closel normal processing X001 MOVP 48 H8000 U1 G1602 H0 OPEN instruction status Close processing for connection No 1 OPEN instruction status U1 G1602 User applications are des...

Страница 119: ...rt the open processing by writing 0001H to the BFM 1602 Open request signal BFM 20482 b0 ON 3 The Ethernet module executes the open processing Internal processing only 4 When the open processing completes normally Open completion signal BFM 20482 b0 ON Reading value of BFM 1602 0005H Data communication is enabled When the open processing completes abnormally Open status BFM 1602 Value other than 0...

Страница 120: ...d below Example Ethernet module Connection No 1 fixed buffer for receiving Connection No 2 fixed buffer for sending TCP IP or UDP IP communication Send data Port Receive data External device POINT 1 When setting the pairing open method the fixed buffer of the applicable connection number for receiving only and the fixed buffer of the next consecutive connection number for sending only are paired i...

Страница 121: ...xed buffer BFM 32 b0 In the open pairing the applicable connection No and the subsequent connection No are paired Set the applicable connection No to Receive and the next connection number to Send 2 Existence confirmation BFM 32 b1 If existence confirmation is going to be executed set the receiving connection to Confirm and the sending connection to No confirm If existence confirmation is not goin...

Страница 122: ...ing b If the setting is required Set for the receiving connection only upon consulting a network administrator Open system At Active and Fullpassive setting Protocol At UDP IP setting 9 Destination Port No BFM 43 50 a If the setting is not required Open system At Unpassive setting b If the setting is required Open system At Active and Fullpassive setting Protocol At UDP IP setting NOTE When making...

Страница 123: ...ll duplex 2 Hub connection status 0 Hub not connected disconnected 1 Hub connected 3 Data transmission speed 0 Operating at 10BASE T 1 Operating at 100BASE TX 1 2 3 Bits other than above are reserved for system use 1 When a switching hub is used it may not be displayed correctly 1 2 Disconnection detection count storage area BFM 20995 a Stores the number of disconnection detection times after init...

Страница 124: ... which the Ethernet module is connected Devices connected with the router relay function see Section 5 3 As shown in the diagram below when using each fixed buffer No 1 to 8 the destination devices and usage conditions for sending receiving procedure exist no procedure etc should be set when the connection via the Ethernet module is opened to fix the external device for each buffer a At TCP IP com...

Страница 125: ...hen sending data In response to the fixed buffer communication transmission request write 0001H to BFM 1610 to 1617 the Ethernet module sends the data of the fixed buffer stored in the fixed buffer area BFM 1664 to 9855 to the the specified external device BFM 40 to 95 1 b When receiving data The Ethernet module processes the received data if the data is received from an external device set in the...

Страница 126: ... Send instruction Self holding Send instruction Self holding Number of send words in the fixed buffer No 1 U1 G1664 U1 G1665 U1 G1610 Value of BFM 1610 Value of BFM 1610 Head of send data Fixed buffer No 1 U1 G1610 Transmission request status Value of BFM 1610 Transmission request status Transmission normally completed Transmission abnormally completed R 0002H Initial processing normally completed...

Страница 127: ...et module the external device returns a Response to the Ethernet module 7 Upon receiving the Response from the external device the Ethernet module ends the data transmission If the Response is not returned within the response monitoring time values see Section 5 2 a data send error occurs At normal completion Fixed buffer transmission result BFM 1610 0004H At abnormal completion Fixed buffer trans...

Страница 128: ...oring the data received from the external device to the fixed buffer No 2 in D1000 and later Receiving status Obtaining received word count Read of received data Write of receiving completion Receiving failed U1 G1611 U1 G2688 U1 G1611 U1 G2689 Receive abnormal processing User applications are described at the area enclosed with ACK only TCP 5 7 Response ACK only TCP 2 Data receiving W 0002H Initi...

Страница 129: ...munication destination 6 The receive processing is performed At normal completion Fixed buffer transmission results BFM 1611 0004H At abnormal completion Fixed buffer transmission results BFM 1611 0008H POINT 1 The destination setting see Section 5 5 for a connection whose parameters are set with FX Configurator EN GX Developer becomes valid when the open completion signal BFM 20480 corresponding ...

Страница 130: ... consists of a header and application data as follows Header Application data Maximum of 2040 bytes 6 4 1 Header The header for TCP IP or UDP IP is used In case of the Ethernet module the Ethernet module adds and deletes the header Thus the user does not need to set it Details of the size of the header section 1 In case of TCP IP Ethernet 14 bytes IP 20 bytes TCP 20 bytes 2 In case of UDP IP Ether...

Страница 131: ...al Settings screen For more details see Section 4 6 Operational Settings 1 Format a Communication using binary code Subheader L H 2 bytes L H 2 bytes Text command Maximum 2 bytes Subheader End code 1 byte 1 byte Application data section response Communication request source side Communication request destination side Data length setting Application data section command message b Communication usin...

Страница 132: ... b3 b2 b1 b0 Command response flag 1 1 0 0 0 0 0 Command response type The bit status indicated in the figure shows that communication using fixed buffers is being performed At command 0 At response 1 00H 60H Subheader Communication using binary code 30H 30H 30H Subheader Communication using ASCII code 36H 6 6H 0 0H E0 H Subheader 45H Subheader 30H E EH 0 0H Command to b7 b0 1 0 1 0 0 0 0 0 Respon...

Страница 133: ... words 1 1 Since data is sent received as ASCII data the communication data size is approximately half of the data size when using binary code 4 Text command The format of the command response when communicating using fixed buffers is configured as follows a Communication using binary code L 00H H 60H L H L H L H L H Maximum of 1017 words Subheader L H L H L H L H Data length setting 1 word 2 byte...

Страница 134: ...ons Command format n 1 n 2 n data length setting 30H 30H 30H H to L H to L H to L H to L ASCII BIN conversion Maximum of 508 words n H L H L Example Data length n 1 n 2 Subheader 34H 12H 78H 56H H to L H L to 36H 30H 30H 30H 30H 30H 32H 31H 32H 33H 34H 35H 37H 38H 36H 30H 5 End codes For more details on the end codes added to a response when communicating using fixed buffers see Section 11 4 1 End...

Страница 135: ...the data is not sent 4 Reading or writing to the buffer memory using fixed buffer communication Data sending Write the send data in the buffer memory BFM 1664 to 9855 Write 0001H in BFM 1610 to 1617 to send the data Data receiving Check the data received BFM 1610 to 1617 0001H and read the received data to the PLC BFM 1664 to 9855 After reading out write 0002H in BFM 1610 to 1617 to send the respo...

Страница 136: ...2 station side 1 Connection No 1 is used to process the fixed buffer receiving in the main program 2 Connection No 2 is used to process the fixed buffer receiving in the interrupt program 3 The Ethernet module is mounted as the second special module 4 The unit number specified at the sequence program and FX Configurator EN GX Developer is 1 5 Make Operational Settings in the following manner Commu...

Страница 137: ...mplete device M500 10 Fixed buffer No 1 receive instruction abnormal complete device M501 11 Fixed buffer No 1 send instruction complete status D5001 12 Fixed buffer No 1 receive status signal M40 POINT Make sure to have sufficient device memory according to the maximum data length sent in order to prevent device areas used for other purposes from being overwritten by the received data ...

Страница 138: ... connection No 1 1 1 Use the program example described in Section 5 6 1 Active open processing close processing for the sequence program that executes the open processing close processing b Receive program Ethernet module 2nd station side 1 After setting each parameter with FX Configurator EN GX Developer or a sequence program and writing to the Ethernet module select re initial power ON the modul...

Страница 139: ...n Initial completed HUB connection completed OPEN instruction status Transmission normally completed Transmission abnormally completed U1 G1664 U1 G1665 U1 G1610 U1 G1610 U1 G28 Transmission abnormally completed Transmission normally completed Send instruction Self holding Send instruction Self holding Initial completed Head of send data Fixed buffer No 1 Send request status Send request status Va...

Страница 140: ... BMOV D1000 D101 MOV U1 G2688 D101 D100 H1 D100 H8 END 0 38 Storing the data received from the external device to the fixed buffer No 2 in D1000 and later Receiving status Obtaining received word count Read of received data Write of receiving completion Receiving failed U1 G2689 U1 G1611 User applications are described at the area enclosed with ...

Страница 141: ... performed using binary code regardless of the communication data code settings see Section 4 6 Operational Settings 4 The maximum application data area is 2046 bytes per communication 5 The applicable connection is dedicated to the no procedure fixed buffer communication As with the procedure fixed buffer communication and communication using MC protocol cannot be performed at the same time as th...

Страница 142: ... open completion signal of the applicable connection is off b At UDP IP communication External devices can be changed regardless of the status of the applicable connection Destination IP address and Destination Port No in the communication address setting area can be changed However Local station Port No cannot be changed When changing external devices do not use the Pairing open and Existence con...

Страница 143: ... if it is received from an external device set in the communication setting area that corresponds to fixed buffer No n 1 Also when the Ethernet module stores the received data in the corresponding fixed buffer in the receive processing it updates the destination IP address and destination port No in the corresponding fixed buffer connection information area BFM 120 to 199 If data is received from ...

Страница 144: ...2 M201 M200 67 73 118 Reading the status of Ethernet module Sending 32 words from D1000 to the external device U1 G28 Send instruction Initial completed HUB connection completed OPEN instruction status Transmission normally completed Transmission abnormally completed Initial completed Send instruction Self holding U1 G1665 U1 G1610 U1 G1602 Number of send words in the fixed buffer No 1 Head of sen...

Страница 145: ...data area BFM 1664 to 2687 by TO instruction 5 Write 0001H in the fixed buffer transmission request BFM 1610 6 Only the size of the send data in the fixed buffer No 1 designated by the send data length is sent to the designated external device The value of BFM 1610 becomes 0002H 7 The Ethernet module terminates the data transmission At normal completion Fixed buffer transmission results BFM 1610 0...

Страница 146: ...ND 0 52 Storing the data received from the external device to the fixed buffer No 2 in D1000 and after U1 G1611 Receiving instruction status U1 G2688 MOV D101 Received data count U1 G2688 Received data count D101 Received data count BMOV D1000 Receive data storage head D103 Received word count U1 G2689 Fixed buffer No 2 DIV H2 D103 Received word count D101 Received data count U1 G1611 Receiving in...

Страница 147: ...ge area The higher byte becomes a non constant value 2 Execute the FROM instruction to read out the receive data length and receive data to the PLC 3 Execute the TO instruction to write 0002H in the fixed buffer communication receive results BFM 1611 4 Result of the receiving processing is indicated POINT 1 The destination setting see Section 5 5 for a connection whose parameters are set in FX Con...

Страница 148: ...user does not need to set it Details of the size of the header section 1 In case of TCP IP Ethernet 14 bytes IP 20 bytes TCP 20 bytes 2 In case of UDP IP Ethernet 14 bytes IP 20 bytes UDP 8 bytes 2 Application Data The data code in the application data is expressed in binary code Communication is performed using binary code regardless of the set communication data see Section 4 6 Text command Maxi...

Страница 149: ... data BFM 1664 to 9855 to the PLC 5 The following should be observed when using a connection opened by UDP External devices can be switched by modifying the setting values in the communication address setting area of the communication parameter setting area before sending receiving data Thus data can be sent to multiple external devices sequentially When sending receiving make sure to switch betwe...

Страница 150: ...r communication parameter The Fixed buffer communication setting should be changed from Procedure exist to No procedure 3 Fixed buffer No 1 send data Stored in D1000 to D1015 4 Fixed buffer No 1 send Send instruction complete device M201 5 Fixed buffer No 1 send Send instruction abnormal complete device M202 6 Fixed buffer No 1 send Send instruction complete status D101 b Receive program FX3U 2nd ...

Страница 151: ...used for other purposes from being overwritten by the received data 2 Outline of the program example a Send program Ethernet 1st station side 1 After setting each parameter with FX Configurator EN GX Developer or a sequence program and writing to the Ethernet module power ON the module again or confirm that the initial processing is completed via buffer memory operations 2 Perform open processing ...

Страница 152: ...esponding fixed buffer data area in the Ethernet module is read to the PLC Send program M8000 X002 M300 M307 M201 D101 2 D101 3 M202 M200 D1000 BMOVP K16 MOVP K32 MOV K4M300 MOVP H1 MOV U1 G1664 D101 H5 END M202 M201 M200 67 73 118 Reading the status of Ethernet module Sending 32 words from D1000 to the external device U1 G28 Send instruction Initial completed HUB connection completed OPEN instruc...

Страница 153: ...al device to the fixed buffer No 2 in D1000 and after U1 G1611 Receiving instruction status U1 G2688 MOV D101 Received data count U1 G2688 Received data count D101 Received data count BMOV D1000 Receive data storage head D103 Received word count U1 G2689 Fixed buffer No 2 DIV H2 D103 Received word count D101 Received data count U1 G1611 Receiving instruction status Adjustment when an odd number of...

Страница 154: ...Cs Using this protocol the external devices can read or write device data from to the PLC via the Ethernet module Any external devices on which application programs can be installed and which can send and receive data in accordance with the MELSEC PLC protocol can access the PLC using MC Protocol 8 1 1 Accessing the PLC using MC protocol This section explains the main functions for accessing the P...

Страница 155: ...cation using A compatible 1E frames Communication using ASCII code Communication using binary code 1 Device memory read write Batch read write in bit word units Communication using MC protocol Status control of the PLC remote RUN STOP etc 1 Time required for communication in binary code is shorter because the amount of the communication data is approximately a half of what is required for communic...

Страница 156: ...iving a response message from the PLC side for the previous command message transmission External device side PLC side Command message Command message Response message Response message 2 When a normal completion response message to a command message cannot be received 1 If an abnormal completion response message is received Handle the case according to the error code in the response message 2 If t...

Страница 157: ... Upon receiving the processing result from the PLC the Ethernet module sends a response message including the processing result to the external device that originated the request 1 The ACK response shown in the diagram is sent received between the Ethernet module and the external device respectively when the access via the Ethernet module is performed by TCP IP communication It is different from t...

Страница 158: ...n is used BFM 20480 corresponding bit If the buffer memory status is the above it is possible to communicate from an external device using MC protocol regardless of whether or not a sequence program is used b Use the automatic open UDP port Alternatively use the passive open connection set to Always wait for OPEN BFM 24 b8 ON in the initial timing setting in the operation settings c When not selec...

Страница 159: ...8 6 8 6 MELSEC F 8 COMMUNICATION USING MC PROTOCOL MEMO ...

Страница 160: ... be used as lower layer protocol and support both ASCII code and binary code 9 1 1 How to read the command reference section The following explains how to read the message explanation diagrams shown in each of the command description Sections 9 3 through 9 5 1 When an external device reads data from the PLC Command message External device side Header Subheader PC No Monitoring timer PLC side Heade...

Страница 161: ... C indicates transmission from the external device to the PLC 2 The program of the external device is generated so that the data is transmitted sequentially from left to right For example in case of area C data should be sequentially sent from Header to the right POINT When the PLC receives a command message from an external device it completes processing of the data in area A C then sends a respo...

Страница 162: ...text contains the request data command and response data response for each function and this data is determined by the prescribed format for a more detailed description see sections 9 3 and later c Format in the application data field Communication in ASCII code Application data External device side PLC side Subheader Text command 2 bytes Differs depending on function 2 bytes Differs depending on ...

Страница 163: ...cal station PLC at the external device side External device side PLC side Command message Data name Example Header O O F F A Subheader PC No Monitoring timer Character area A The contents and arrangement of the data items in the text differs according to the function to use See the sections explaining functions found in Section 9 3 2 and after for details PLC side Text Command External device side...

Страница 164: ...ode is 5B Example H H L L F F A O O O O 2 30H 30H 30H 30H 32H 46H 46H 41H H L 8 2 O O 30H 30H 32H 38H 32H 32H 38H 30H 30H 31H 35H 42H H H L L 8 5 2 1 2 O O B b Communication in binary code 1 When reading data from the local station PLC at the external device side External device side PLC side Command message Data name Example Header Subheader PC No Monitoring timer Text Command Character area A Th...

Страница 165: ...d Data name Example Header Subheader PC No Monitoring timer L H 02H FFH 0AH 00H The contents and arrangement of the data items in the text differs according to the function to use See the sections explaining functions found in Section 9 3 2 and after for details Text Response Header Subheader Complete code When complete code 5BH is returned Text Response Header Subheader Complete code Abnormal cod...

Страница 166: ...ing in binary code the PC number is expressed in binary value b When communicating in ASCII code the PC number is expressed in hexadecimal ASCII code 4 Monitoring timer This is a timer for setting the period of time that the Ethernet module should wait after outputting a read write request to the PLC until the result is returned a Specify the value as shown below 0000H 0 Waits infinitely 1 0001 to...

Страница 167: ...he processing result of reading writing data from to the target PLC station by an external device is faulty and the complete code is 5BH 5B Abnormal code 10H to 18H a When communicating in binary code the abnormal code is expressed in binary values b When communicating in ASCII code the abnormal code is expressed in hexadecimal ASCII code c Check the content and take an action according to the tro...

Страница 168: ...when communicating in binary code a The order when sending a command external device Ethernet module Application data 00 FF 0AH 00H 64H 00H 00H 00H 20H 4DH 08H 00H H H Header M H L H L H L Subheader PC number Monitoring timer Text command Head device number Device name Number of device points Local station 2500 ms 8 points 100 b The order when receiving a response external device Ethernet module 8...

Страница 169: ...6 H L H L H L 100 Header Application data Subheader PC number Monitoring timer Local station 2500 ms Application data Text command Device name Head device number Number of device points M 8 points b The order when receiving a response external device Ethernet module 31H 30H 31H 30H M100 ON M107 OFF M101 OFF M102 ON M105 ON M103 OFF M104 OFF 30H 30H 30H 38H 30H 31H 31H 30H 8 M106 ON 0 0 H 0 L 1 H 0...

Страница 170: ... device is on or 0 30H if the device is off Example Indicating the ON OFF status of five points from M10 Indicates that M14 is ON Indicates that M13 is OFF Indicates that M12 is ON Indicates that M11 is OFF Indicates that M10 is ON 0 30H 0 30H A 41H 0 30H 5 35H 1 31H 0 30H 1 31H 0 30H 1 31H 0 30H 0 30H 0 30H 0 30H 44H D 34H 4 L L H H 2 32H 0 30H 0 30H Head device Device point Data 2 Word units 16 ...

Страница 171: ...0 1 1 1 0 0 0 0 1 1 1 1 B15B14B13B12 B11B10B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 5 6 A B 1 7 0 F Head device Device point Data Data 1 Indicates ON 0 Indicates OFF The content of D350 indicates 56ABH 22187 in decimal The content of D351 indicates 170FH 5903 in decimal POINT 1 When designating alphabet letters in the character area use upper case code 2 When data other than an integer value real number char...

Страница 172: ...that M14 is ON Indicates that M13 is OFF Indicates that M12 is ON Indicates that M11 is OFF Indicates that M10 is ON Device point 2 Word units 16 points In case of word units one bit designates one point and the bit device memory is handled from the designated head device for the number of designated device points sequentially from the left They are expressed in 16 point units in the order low byt...

Страница 173: ... B8 A B 5 6 0 F 1 7 L H B15 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 B14 B13 B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 0 1 1 1 0 0 0 0 1 1 1 1 B15 B14B13 B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 5 6 A B 1 7 0 F Data 1 Indicates ON 0 Indicates OFF 170FH L H Data 56ABH Device point The content of D350 indicates 56ABH 22187 in decimal The content of D351 indicates 170FH 5903 in decimal L H L H POINT 1 ...

Страница 174: ...rd units 03H Writes to word devices D R T C in 1 point units 64 points Bit units 04H Sets resets bit devices X Y M S T C in 1 point units by arbitrarily designating the devices and device number 80 points Sets resets bit devices X Y M S T C in 16 point units by arbitrarily designating the devices and device number 10 words 160 points Device memory Test Random write Word units 05H Sets resets word ...

Страница 175: ...rd units 01H Reads word devices D R T C in 1 point units 64 points Bit units 02H Writes to bit devices X Y M S T C in 1 point units 160 points Writes to bit devices X Y M S T C in 16 point units 10 words 160 points Batch write Word units 03H Writes to word devices D R T C in 1 point units 64 points Bit units 04H Sets resets bit devices X Y M S T C in 1 point units by arbitrarily designating the de...

Страница 176: ...Device code Device range Device number D0 to D7999 0000H to 1F3FH Data register D 44H 20H D8000 to D8511 1F40H to 213FH Extension register R 52H 20H R0 to R32767 0000H to 7FFFH Current value TN 54H 4EH T0 to T511 0000H to 01FFH Timer Contact TS 54H 53H T0 to T511 0000H to 01FFH C0 to C199 0000H to 00C7H Current value CN 43H 4EH C200 to C255 00C8H to 00FFH C0 to C199 0000H to 00C7H Counter Contact ...

Страница 177: ...6 0 16 in decimal representation For X and Y is expressed in octadecimal the device numbers that can be designated are X00 X20 X40 or Y00 Y20 Y40 Also special M relays M8000 or later can be specified 8000 multiples of 16 3 The special relays M8000 to M8511 and special registers D8000 to D8511 are divided into read only write only and system use registers If writing takes place outside the writing ...

Страница 178: ... loaded 1 Communication in binary code 0AH 64H 00H Subheader PC No Number of device points Head device Data name External device side Example Data name PLC side Example 00H FFH 00H 00H 00H 20H 4DH 0CH 00H 80H Subheader Complete code 00H 10H 10H 10H 10H 10H 10H Data for the number of designed device points Characters for the number of device points 0 1 0 1 0 1 0 1 0 1 0 1 Status of M100 Status of M...

Страница 179: ...s of M102 OFF Status of M103 OFF Status of M104 ON Status of M105 OFF Status of M106 ON Status of M107 ON Status of M108 OFF Status of M109 OFF Status of M110 OFF Status of M111 OFF Subheader PC No Number of device points Head device Data name External device side Example Data name PLC side Example Monitoring timer Subheader Complete code Data for the number of designed device points Characters fo...

Страница 180: ...riting the on off status of M50 to M61 of the PLC on which the Ethernet module is loaded 1 Communication in binary code 0AH 32H 00H Data name External device side Example Data name PLC side Example 02H FFH 00H 00H 00H 20H 0CH 00H 82H 00H H L L 4DH 01H 11H 01H 00H 00H 01H H L H L H L H 1 0 1 1 1 0 0 0 0 0 1 0 M50 OFF M51 ON M52 M53 ON M54 OFF M56 OFF M55 ON M58 OFF M59 OFF M60 OFF M61 ON ON M57 OFF...

Страница 181: ...30H 1 31H 1 31H 1 31H 0 30H 0 30H F 46H30H 0 30H 0 30H 0 30H A F 46H H L H L 32H 2 2 32H H 32H 2 44H D 34H 4 33H 3 30H 0 30H 0 30H 0 30H 0 30H 0 30H 0 30H 0 L 0 0 Subheader Complete code Subheader PC No Number of device points Head device Monitoring timer Data for the number of designed device points Characters for the number of device points NOTE If the number of device points to be set is an odd...

Страница 182: ...M60 to OFF and S38 to ON at the PLC on which the Ethernet module is loaded 1 Communication in binary code H FFH 0AH 00H 01H 3CH Data name External device side Example Data name PLC side Example 4DH 04H Designated device Designated device 03H 00H 00H 00H 00H 20H 59H 00H 00H 00H 20H 00H 26H 00H 00H 20H 01H 53H ON OFF designation L 00H 25H L H L H H Designated device 84H 00H Y45 Octadecimal M60 S38 D...

Страница 183: ...0 30H 0 30H H 5 35H 2 32H 0 30H 0 30H 0 30H 0 30H 0 30H 0 30H 0 30H 2 39H L 5 34H H 0 30H L 1 31H H 4 34H D 44H 2 32H 0 30H 0 30H 0 30H 0 30H 0 30H 0 30H 0 30H 3 33H L C 43H H 0 30H L 1 30H 5 H 35H 2 32H 2 32H 0 30H 0 30H 0 30H 0 30H 0 30H 0 30H 0 30H 2 32H L 6 36H H 0 30H L 1 31H 4 34H 0 30H 0 30H 38H 8 L H Subheader PC No Number of device points Monitoring timer ON OFF designation ON OFF designa...

Страница 184: ...ng the on off status of Y100 to 137 32 points of the PLC on which the Ethernet module is loaded 1 Communication in binary code H 0AH 00H 00H 40H 00H 00H 20H 59H 02H 00H L L H 0 1 1 1 0 1 0 0 0 0 0 1 0 0 1 1 1 1 0 1 1 0 1 0 1 0 1 0 Y130 Y137 Y120 Y127 Y110 Y117 Y100 00H 9DH 82H 3EH 55H L H L H 1 0 1 0 01H FFH 81H Y107 Data name External device side Example Data name PLC side Example Subheader PC No...

Страница 185: ... H 1 0 30H L 0 30H H L 8 38H 2 32H 9 39H D 44H 5 35H 3 33H E 45H H L 5 35H 8 2 9 D 5 5 3 E 1 0 0 0 0 0 1 0 1 0 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 1 0 Y120 Y127 Y110 Y117 Y130 Y137 Y100 Y107 Data name External device side Example Data name PLC side Example Subheader PC No Number of device points Head device Monitoring timer Subheader Complete code Data for the number of designed device points ...

Страница 186: ... will be stored Example When 32 devices are read at one access from C220 to 251 in the PLC on which the Ethernet module is mounted 1 When communicating in binary code 01H FFH L 0AH H 00H 81H 00H 43H 4EH DC H 00H 00H 00H 40H 00H 4E H 61H BCH 00 H 40H 01H B9H 02 H 12345678 00BC614EH 45678912 02B90140H CN220 Low 16bit High 16bit Low 16bit High 16bit L H L H L H L H L H Data name External device side ...

Страница 187: ...C614EH 45678912 02B90140H 36H 31 H 34 H 45 H 30 H 30 H 42 H 43 H 30H 31 H 34 H 30 H 30 H 32 H 42 H 39 H 4 0 H L 34H 30 H 0 0 30H 30 H 4 3 4 E 0 0 0 0 0 0 D C H L 6 1 4 E 0 0 B C H L H L 0 1 4 0 0 2 B 9 H L H L Data name External device side Example Data name PLC side Example Last data 4 bytes x 2 x 32 256bytes Monitoring timer Sub header PC No Head device Number of device points Sub header Complet...

Страница 188: ...m see Section 9 1 2 Control procedure Writing data to D100 to 102 of the PLC on which the Ethernet module is loaded 1 Communication in binary code 03H FFH 0AH L 00H H 64H 00H 20H 44H 03H 00H 34H 12H 76H 98H 09H 01H L H 00H 00H H L H L H L 83H 00H Data to be written to D100 Data to be written to D101 Data to be written to D102 D100 Data name External device side Example Data name PLC side Example S...

Страница 189: ... 1 32H 2 33H 3 34H 4 39H 9 38H 8 37H 7 36H 6 30H 0 31H 1 30H 0 39H 9 F H L H L H L H L 8 33H 3 30H 0 30H 0 Data to be written to D100 Data to be written to D101 Data to be written to D102 H L H L H L H L Data name External device side Example Data name PLC side Example Subheader PC No Number of device points Head device Monitoring timer Data for the number of designed device points Characters for ...

Страница 190: ...stored Example When 32 points are written at one access from C220 to 251 in the PLC on which the Ethernet module is mounted 1 When communicating in binary code 03H FF H L 0AH H 00H 83H 00H 43H 4EH DC H 00H 00H 00H 40H 00H 40 H 01 H B9 H 02 H 12345678 00BC614EH 45678912 02B90140H CN220 4EH 61 H BCH 00 H L H L H L H L H L H 2 bites x 2 x 32 128 bytes Data name External device side Example Data name ...

Страница 191: ...678912 02B90140H 36H 31H 34 H 45 H 30 H 30H 42 H 43 H 30H 31H 34H 30 H 30 H 32 H 42 H 39 H H L 4 0 34H 30 H 0 0 30H 30 H H L 4 3 4 E 0 0 0 0 0 0 D C 6 1 4 E 0 0 B C 0 1 4 0 0 2 B 9 H L H L H L H L High16bit Low16bit High16bit Low16bit 32 points x 2 64word Data name External device side Example Data name PLC side Example Complete code Sub header PC No Monitoring timer Head device Number of device p...

Страница 192: ... loaded 1 Communication in binary code ON OFF designation Current value of CN18 50H 1234H Y30 Y37 Y20 Y27 0 0 1 0 1 0 0 1 0 1 1 1 1 0 1 1 Y20 R26 1 ON 0 OFF 05H FFH 0AH 03H 00H 80H 00H 00H 00H 20H 59H 29H 7BH 1AH 00H 00H 00H 20H 52H 34H 12H 12H 00H 00H 00H 4EH 43H 50H 00H 00H 85H 00H L L H L H H L H L H L H L H Data name External device side Example Data name PLC side Example Subheader PC No Numbe...

Страница 193: ...ce points Characters for the number of device points 1234H 50H 31H32H33H34H 35H30H 0 1 1 1 1 0 1 1 0 0 1 0 1 0 0 1 Y20 Y27 Y30 Y37 H L H L 30H 30H 30H 30H 30H 30H 30H30H30H30H30H30H 0 5 F F 0 0 0 A 0 3 0 0 5 9 2 0 1 0 7 B 2 9 5 2 2 0 1 A 1 2 3 4 0 0 0 0 0 0 0 0 0 0 0 0 H L H L H L H L H L H L H L 4 3 4 E 0 0 0 0 0 0 1 2 0 0 5 0 H L 8 5 0 0 Data name External device side Example Subheader PC No Num...

Страница 194: ...scribes the commands and control contents of the control procedure when controlling the status of the PLC 1 Commands Function Command Response type Processing Remote RUN 13H Requests remote RUN execute operation Executes a forced RUN regardless of the RUN STOP switch status of PLC Remote STOP 14H Requests remote STOP stop operation Executes a forced STOP regardless of the RUN STOP switch status of...

Страница 195: ... No Monitoring timer Complete code Subcommand For remote STOP 14H For remote RUN 13H For remote STOP 94H For remote RUN 93H 2 Executing remote RUN while communicating in ASCII code F 31 H 1 33 H 3 46 H 46 H 30 H 0 30 H 0 30 H 0 41H A F H L H L 39H 9 33 H 3 30H 0 30H 0 H L Data name External device side Example Data name Example PLC side Subcommand PC No Monitoring timer Complete code Subcommand Fo...

Страница 196: ...s marked by shown in the control procedure diagram differ depending on the module used as well as the frame and format used for communication See the detailed information described in Section 9 1 2 Control procedure 1 Data communication in binary code Data name External device side Example Data name Example PLC side Subcommand PC No Monitoring timer Complete code Subcommand FFH 0AH 00H L H 95 H 15...

Страница 197: ... 41H A F H L H L 39 H 9 35 H 5 30 H 0 30 H 0 46 H F 33 H 3 30 H 0 30 H 0 H L External device side Example Data name Example PLC side Subcommand PC No Monitoring timer Complete code Subcommand PLC model name Model name of FX3U FX3UC POINT Distinguish the PLC model name by the model name code F3H which is the model code of FX3U is read as the PLC model name ...

Страница 198: ...aximum of 254 single byte characters 0 to 9 A to F 9 5 1 Loopback test command 16 The examples shown in this section explain the control procedure for an external device performing a loopback test with the Ethernet unit The order and content of data items of the areas marked by shown in the control procedure diagram differ depending on the module used as well as the frame and format used for commu...

Страница 199: ...L H Data name External device side Example Data name Example PLC side Subcommand PC No Monitoring timer Complete code Subcommand Data length 1 to 254 bytes Head send data Second send data Last send data Data length 1 to 254 bytes Head send data Second send data Last send data Designated byte length 5bytes Designated byte length 3bytes POINT The number of the loopback data transmitted by an externa...

Страница 200: ...t from other Ethernet modules and PCs can also be received External device Sending e mail by the PLC Ethernet module PC Portable terminal device that cannot handle attached files Remark Subject 1 Binary format Binary to ASCII conversion Attached file Binary to CSV conversion Maximum 2k words Main text Designating using ASCII data Maximum 256 words 1 The Ethernet module receives the Subject without...

Страница 201: ...ores receive mail 3 4 Confirms information of receive mail Stores information receive mail Request to receive mail No mail received Mails received Mail server PLC Ethernet module FROM TO instruction Mail send FROM TO instruction Reads receive mail 1 Send an e mail to the mail server of the local station s Ethernet module 2 The mail server of the local station s Ethernet module sends the e mail to ...

Страница 202: ...y server DNS server SMTP POP3 Mail server Proxy server DNS server SMTP POP3 Mail server Ethernet Ethernet External device Ethernet module External device Ethernet module Ethernet 1 E mails can be sent and received in an environment where the Internet service is available as shown above 2 Set each Internet mail setting value for the Ethernet module and PC following the directions from the system ad...

Страница 203: ...le of the attached files 3 Common precautions a The Ethernet module stores the data of attached files received from the external device in the device specified by the FROM TO instruction without converting it from ASCII to binary b The maximum sizes of data that can be sent received by the Ethernet module are as follows Data size of attached files Up to 2048 words Data size of main text Up to 256 ...

Страница 204: ...ng mails remaining on the mail server Can be checked with BFM 22640 h When the receive data of an e mail sent is abnormal garbled characters etc review the transmission data format binary ASCII CSV designated with BFM 10338 The Subject should be in ASCII code data format It is not converted to ASCII format i Confirm with a system administrator regarding the minimum time intervals for accessing the...

Страница 205: ...e first file will be received and the remaining files will be discarded When sending encode Subject Base 64 7 bits Main text 7 bits Attached file Base 64 When receiving decode Subject Does not decode Main text Cannot be received Attached file Base 64 7 bits Quoted Printable If e mail is sent from the external device to the PLC side specify the encoding method Base 64 7 bits Quoted Printable of the...

Страница 206: ...e mail address of the local station s Ethernet module Register the mail address of the external device See Section 10 6 3 Send receive data as an attached file of an e mail Send data as main text of e mail See Section 10 7 See Section 10 8 The open and close processing of the communication line for sending receiving e mails is automatically executed by the Ethernet module 1 1 1 Download the email ...

Страница 207: ... Set IP address of DNS server 4 a DNS settings Designate the IP addresses of the domain name servers DNS used by the local station s Ethernet module or designated by a system administrator 1 Designate the IP addresses of the DNS servers 1 to 4 POINT 1 The DNS servers manage networks DNS settings are required to allow search for the SMTP server or POP3 server from a domain name 2 Adjust the DNS set...

Страница 208: ...address of send mail server or send mail server name 00000001H to FFFFFFFEH Specification method 9954 Select receive mail server specification method 0 Domain name specification 1 Decimal 2 Hexadecimal Mail server name Mail receive setting POP server name IP address 9955 to 9986 Set the IP address of the receive mail server or receive mail server name 00000001H to FFFFFFFEH a General settings Desi...

Страница 209: ... the system administrator used by the local station s Ethernet module 1 Designate the domain name of the mail server 2 Select the input format decimal hexadecimal of the IP addresses 3 Set the IP address of the outgoing mail server SMTP 4 Set the IP address of the incoming mail server POP3 POINT The SMTP server delivers transfers e mails between mail servers The POP3 server transfers received e ma...

Страница 210: ...l address of the transmission destination 1 to 10 a Send mail address 1 Designate the mail addresses of a maximum of 10 external devices to which mail is being sent from the local station s Ethernet module Only one e mail address can be specified for each area 2 When sending e mail by the Ethernet module specify the send e mail address by the bit of BFM 10337 NOTE To adjust the settings in FX Conf...

Страница 211: ...il sending 0001H Ignore 0000H 10334 285EH Mail sending status Initial status 0000H Mail sending normally completed 0001H Mail sending abnormally completed 0002H Mail being sent 8000H 10336 2860H Result of sending e mail Sending destination address 1 Success b0 ON Failure b0 OFF to Sending destination address 10 Success b9 ON Failure b9 OFF 10337 2861H Designation Address of e mail Turns the bit of...

Страница 212: ...34 U1 G10336 U1 G10337 U1 G10339 U1 G10338 Mail sending instru ction Mail normally completed Mail abnormally completed Mail sending request Self holding Mail sending request Self holding Individual success and failure Individual success and failure Mail sending Self holding Mail sending status Write of attached data completed Mail sending Self holding Mail sending status Mail sending status Mail s...

Страница 213: ...n Writing the necessary data for sending a mail to BFM Mail sending request BFM 10333 Mail sending status BFM 10334 Writing the mail data to BFM 0001H Normally completed 0002H Abnormally completed Communication with a SMTP server 1 Check whether the initial processing has been completed normally 2 Write mail data to the buffer memory Mail sending destination BFM 10337 b0 to b9 Subject BFM 10339 to...

Страница 214: ...h Hour ss minute b Designate either binary format ASCII format or CSV format when a PC UNIX receives e mail sent from an Ethernet module 1 When binary format is designated The name of the attached file is mmddhhss bin system date bin mm month dd day hh hour ss minute 2 When ASCII format is designated The name of the attached file is mmddhhss asc system date asc mm month dd day hh hour ss minute 3 ...

Страница 215: ...for attached files Mail address of external device a a From Displays the mail address of the Ethernet module NOTE By entering the mail addresses of the send destination devices in the address book the registered names display names can be displayed and makes management easier b Subject This indicates the transmission destination No 1 and the Subject written by a sequence program 1 The Ethernet mod...

Страница 216: ...ommand Start mail receiving 0001H Ignore 0000H 14501 38A5H Mail receiving status Initial status 0000H Mail receiving normally completed 0001H Mail receiving abnormally completed 0002H Mail being received 8000H 14502 38A6H Error status while receiving mail Stores the error code while receiving mail 14503 to 14534 38A7 to 38C6H Message ID Stores the message ID of the received mail 14535 38C7H Charac...

Страница 217: ...ry The number of received mail on the mail server is stored in the received mail count storage area BFM 22640 2 When there is mail stored on the mail server execute the FROM TO instruction to receive them Received mail accumulate on the mail server if the mail is not received 3 E mails that have been read from the mail server are deleted 4 If the Ethernet module has received e mail longer than 2k ...

Страница 218: ...M8029 U1 G22640 U1 G14501 U1 G14500 Number of mails on the POP server Mail recei vable Mail abnormally completed Mail normally completed Mail receiving flag Mail receiving status Mail receiving status Mail receiving status Mail receiving status Mail receivable Mail receiving flag Receiving failure count Mail abnormally completed Mail receiving success count Head of attached data Attached data norm...

Страница 219: ...l read from the server do not remain on the server 4 The received mail data is written in the buffer memory address Mail receiving status BFM 14501 becomes 8000H mail receiving 5 The received mail is deleted from the server and the number of receivable mail is stored in BFM 22640 again 6 When there is receivable mail on the server read them by writing 0001H in BFM 14500 POINT 1 Reading receive mai...

Страница 220: ...address of the Ethernet module b Subject Subject of the e mail to be sent to the Ethernet module in ASCII format c Main text Do not assign data the Ethernet module ignores it d Attach file Data can be sent as an attached file Send the attached file data as binary data The Ethernet module does not convert the received attached file data from ASCII to binary e Attached file name Designate the name o...

Страница 221: ...e Ethernet module sends the data register value as an attached file 1 When sending from the Ethernet module D9 D1 D0 C B A 9 8 7 6 5 4 3 2 1 D9 D1 D0 BFM 10404 10405 10413 1234H 5678H 9ABCH 9AH BCH 56H 78H 12H 34H D9 D1 D0 C B A 9 8 7 6 5 4 3 2 1 External device In case of binary In case of ASCII In case of CSV Ethernet module BIN ASCII conversion BIN CSV conversion 2 When receiving by the Etherne...

Страница 222: ...II code when expressed as a hexadecimal 4 bytes of ASCII code When handling multiple word data insert comma data between each word 4 bytes of ASCII code Data is sent in the following arrangement Arrangement of data 1 In addition to the data conversion and insertion described above CR code 0DH and LF code 0AH are inserted for each 8 words of data 2 The arrangement of data sent in CSV format is show...

Страница 223: ...1 Check whether mail can be sent or not BFM 10334 b15 OFF 2 Destination of the mail Turn the bit corresponding to the e mail destination address to ON in BFM 10337 To send to all of the mail addresses registered maximum 10 addresses write 3FFH 3 Write the mail data to the following buffer memory addresses Subject BFM 10339 to 10403 Attached file format Set 0004H in BFM 10338 Mail text word count o...

Страница 224: ...4H for sending the attached file as main text 10339 to 10402 2863 to 28A2H Subject Stores a subject maximum 128 characters Subject consists of the send destination number and the character data designated by the sequence program It is not converted to ASCII format The Subject should be designated in ASCII characters in the sequence program When the subject consists of less than 128 characters writ...

Страница 225: ...wing shows an example of a received e mail The screen display shows Microsoft Corporation s Outlook Express 6 Mail address of Ethernet module b c Mail address of external device a a From Displays the e mail address of the Ethernet module NOTE By entering the mail addresses of the send destination devices in the address book the registered names display names can be displayed and makes management e...

Страница 226: ...X Developer FX Configurator EN GX Developer can be used to check various conditions of the Ethernet module as well as the error code corresponding to the contents of the error occurring and to perform tests a Ethernet diagnostics using the dedicated screen 1 PING test See Section 5 4 1 2 COM ERR off See Sections 11 1 2 and 11 2 1 3 Check through GX Developer a Buffer memory batch monitor The error...

Страница 227: ...itial processing Replace with 100Mbps HUB 2 Does not turn on using 100Mbps HUB Check the connection of the connectors on the Ethernet side and the HUB side Replace the cable 4 ERR Turns on after powering on the Ethernet module 1 Module parameter setting error Check correct the parameter setting values for the Ethernet modules using the sequence program or the FX Configurator EN GX Developer and re...

Страница 228: ... Program reviewing is required Review the sequence program for sending 8 C1 to C8 Does not turn on 1 Poor cable connection Check the connection of the cable 2 Program or parameter reviewing is required Check the program or parameter Check error contents with the diagnosis function of FX Configurator EN GX Developer 1 Confirm the completion for the initial processing and check whether or not there ...

Страница 229: ...iting 0001H to BFM 1601 c The error information in the error log area of the buffer memory is not cleared deleted even if 0001H is written to BFM 1601 2 How to turn off COM ERR LED on the Ethernet diagnostics screen of FX Configurator EN See Section 11 2 2 a Clicking on the COM ERR off button turns the COM ERR LED off b The error information in the error log area of the buffer memory is not cleare...

Страница 230: ... and turning off COM ERR MOV SET HFFFF U G31800 U G31802 MOV H0000 U G31801 MOV H0001 M100 U G31802 Set error information to clear Error log and LED off instruction Error clear execution processing Set a flag that indicates that the error is being cleared Reset a flag that indicates that the error is being cleared after the error has been cleared RST M100 H0002 M100 ...

Страница 231: ...the Ethernet module See Section 5 2 See Section 5 4 Checks the error stored in the error log area See Section 11 4 Checks the status of each connection after the connection to the external device is established with the open processing See Section 5 6 Checks the communication status of each protocol supported by the Ethernet module Checks the on off status of the LED on the front of the Ethernet m...

Страница 232: ...C8 LED b8 to b15 C1 toC8 ERR LED b3 ERR 200 C8H LED on off status COM ERR LED b4 LED status LED display status COM ERR 227 E3H Number of error occurrence Number of error occurrences 229 E5H Error code End code Error code End code 230 E6H Subheader Subheader 231 E7H Command code Command code 232 E8H Connection No Connection No 233 E9H Local station Port No Decimal Local station Port No 234 to 235 E...

Страница 233: ...errors Number of server transfer errors 22647 5877H Number of error log writes Number of error log writes 22649 5879H Error code Error code 22650 587AH Command code Command code 22651 to 22658 587BH to 5882H From From 22659 to 22662 5883H to 5886H Receive data Date 22663 to 22692 5887H to 58A4H Error log block 1 Subject Latest error log Subject 22693 to 23352 58A5H to 5B38H Receive Error log block...

Страница 234: ...en decimal and hexadecimal Decimal hexadecimal 2 Selection from the various information monitors Various types of information for the Ethernet module can be monitored See Section 11 2 1 for the buffer memory corresponding to the display contents 3 PING test Performs the PING test on the external device See Section 5 4 1 Section 5 4 2 4 COM ERR off Clicking this button turns the COM ERR LED off See...

Страница 235: ...special module will be assigned with No 1 Step 3 Enter Buffer memory start address Enter the buffer memory address to be monitored using the selected input format decimal hexadecimal For a list of the buffer memory addresses where error codes are stored see Section 11 4 Error Code List Example When monitoring the initial abnormal code BFM 105 Enter 105 decimal Step 4 Click the Start Monitor button...

Страница 236: ...tion status storage area 4 Errors occurring in fixed buffer communication with an external device Designated data error Communication error exclude 3 above BFM 126 Connection end code Communication status storage area Section 11 4 4 Errors returned in fixed buffer communication end code Section 11 4 2 End codes when A compatible 1E frame commands are used Section 11 4 2 5 Errors returned to an ext...

Страница 237: ...b The results of the open processing are stored in binary values 0 Normal completion Other than 0 Abnormal completion BFM 28 b0 ON c An error code is cleared by the following operations 1 Reopening the connection that caused an open error 2 Performing the re initial processing by writing the value to BFM 1600 3 Fixed buffer sending error code connection numbers 1 to 8 BFM 125 to 195 a These addres...

Страница 238: ...ging starts from error log block 1 area again POINT 1 An error log block area consists of sixteen error log blocks that have the same data order 2 The error information continues to be stored into the following areas even if the count of the error occurrences is stopped and no longer stored Error log write pointer storage area Error log block c Error log block Error code end code starting from BFM...

Страница 239: ...he following cases For errors below the IP level When an error response was relayed through the PLC i Error log block Destination Port No starting from BFM 236 1 This block stores the external device s port No when an error occurred 2 0 is stored for errors below the TCP and UDP levels j Status for each protocol BFM 376 to 511 1 This address stores the count of the occurrence for the applicable co...

Страница 240: ...unt of how many times the Ethernet module received mails with files attached 0 No mail received with files attached 1 or more The number of normal completions of mail receiving with files attached 4 Server inquiry count BFM 22645 This address stores a cumulative count of inquiries made to the receiving mail server according to the parameter settings See Chapter 10 0 No inquiry was made to the serv...

Страница 241: ...res the system command codes for the error causing messages 10 Error log block From BFM 22651 onwards This block stores eight words from the beginning of the sending source mail address of an error causing e mail during communication with the mail server in ASCII code characters Example If the sending source mail address was use from add sample co jp use from add sam is stored as ASCII code charac...

Страница 242: ...files attached 3 Sending to the server count BFM 23357 This address stores a cumulative count of sending to the send mail server 0 No mail was sent to the server 1 or more Cumulative count of sending to the server 4 Number of mails abnormally completed BFM 23358 This address stores a cumulative count of communication error occurrences that are returned when requesting sending to the transmitting m...

Страница 243: ...23361 onwards This block stores the error codes that indicate the contents of errors See Section 11 4 8 Error log block Command code BFM 23362 onwards This block stores the system command codes for the error causing messages 9 Error log block To BFM 23363 onwards This block stores eight words from the beginning of the sending source mail address of an error causing e mail during communication with...

Страница 244: ...received from an external device Check and correct the send data of the external device 56H Device designation from an external side is incorrect Correct the device designated The number of points for a command designated by an external device exceeds the maximum number of processing points for each processing number of processes that can be executed per communication Head device number to the des...

Страница 245: ... code When an abnormal code is stored the end code is 5BH Error code hexadecimal Error Description of error Corrective action 10H PC number error The PC number designated was not FF 1 Set the PC number to FF 11H Mode error Poor communication between the Ethernet module and the PLC 1 After the Ethernet module receives a request successfully from an external device the Ethernet module and the PLC co...

Страница 246: ... external device For error codes not shown in this manual refer to the manual of the external device and check the returned messages Name used for explanation Buffer memory Buffer memory address Initial Initial abnormal code area BFM 105 Open Open abnormal code area BFM 124 Fixed sending Fixed buffer sending abnormal code area BFM 125 Connection Connection end code error log area BFM 126 Error cod...

Страница 247: ...thernet module IP address Correct the router IP address and execute the initial processing again Set the network address to the same network ID as the local station s Ethernet module IP address C010H At open processing the setting value of the Ethernet module port number is incorrect Correct the port number C011H At open processing the setting value of an external device s port number is incorrect...

Страница 248: ...rnal device Correct the TCP ULP timeout value and execute the initial processing again Send after an arbitrarily selected time has elapsed because packets may be congested on the line Check that the connection cable is not dislocated C033H An external device side with the set IP address does not exist Review and correct the external device s IP address and the Ethernet address If the external devi...

Страница 249: ...n the line Check that the connection cable is not dislocated Correct the IP assembly timer value and execute the initial processing again C04CH Cannot send because there is no space in the internal buffer e g the IP header buffer Send the same data again and check that the response is received C050H ASCII code data that cannot be converted to binary code is received when ASCII code communication i...

Страница 250: ...ng Check the operation of the external device C0BAH Cannot acknowledge sending request since the close processing is being executed via the CLOSE instruction Execute the open processing and make a sending request C0BBH System error The OS detected any error 1 C0BCH Designated communication line is closed Open the communication line Review the target connection number C0BDH Cannot send by acknowled...

Страница 251: ...Ethernet module for the PING test C0DCH C0DDH System error The OS detected any error 1 C0DFH System error The OS detected any error 1 C0E0H to C0EFH An error was detected in the PLC Check the connection cables between the PLC and extended I Os or special module Check that no error has occurred in the PLC If an error is found take corrective actions according to error description of the PLC Replace...

Страница 252: ...here may be a hardware problem with the Ethernet module or the base module Please inform your nearest branch office or agent with a detailed description of the problem C100H System error The OS detected any error 1 C101H A response could not be received from the DNS client Check the address of the DNS server Check whether or not it is possible to communicate with the DNS server using the Ping comm...

Страница 253: ...fications as the Ethernet module encode decode file format etc Check whether or not the file was divided on the sending side C11BH An e mail was sent and an error mail was received from the mail server of the destination A server with unknown destination was received from the SMTP server Received mail is stored in the mail buffer Check that the part before is correct in the mail address setting of...

Страница 254: ...s received Insufficient memory area Check the status of the SMTP server C134H to C137H System error The OS detected any error 1 C138H The SMTP server was performing processing and an error response was received Mailbox not found Check that the Ethernet module s mail address is set correctly C139H System error The OS detected any error 1 C13AH The SMTP server was performing processing and an error ...

Страница 255: ...ed Check that the sending side has the same e mail specifications as the Ethernet module encode decode file format etc C160H Received a response from the DNS server after timeout C161H Could not receive a response from the DNS server Check whether or not there is too much load on the network Check the status of the DNS server C162H C163H C171H to C17FH An error is returned from DNS server Check if...

Страница 256: ...l destination number was designated Review the designated value of the mail designation number Review the sending mail address setting parameter C203H System error The OS detected any error 1 C206H System error The OS detected any error 1 C280H The set limit number for MELSOFT connections is exceeded Modify your open settings so that there are a total of 4 or fewer MELSOFT connections MC protocol ...

Страница 257: ...iately following the part of the text data equivalent to the data length specified immediately after the subheader will be regarded as the next message 2 Since the header of each message will be a subheader the Ethernet module performs processing according to the code in the subheader 3 If the subheader contains a code that is not recognized by the Ethernet module the Ethernet module will send a r...

Страница 258: ...l BFM 28 b6 ON Stores the error code in the open error code storage area The error code is not stored in the error log storage area POINT Designate the actual data size of the text field for data length specified in the application data field of a message sent from the external device to the Ethernet module The Ethernet module never sends text whose size is different from the specified data length...

Страница 259: ...module s RUN LED on NO YES Is the connection cable securely connected NO Lock the cable securely Is the Ethernet module s ERR LED on Check whether or not a parameter error occurred If an error is found first correct it and then re download NO Is the Ethernet module s COM E LED on NO Check the error contents using the diagnostics function of FX Configurator EN Is the data code binary ASCII setting ...

Страница 260: ...red in the buffer memory in reaction to an error occurrence then check the contents of the error and take corrective actions by referring to Section 11 4 2 Error codes not found in the error code list may be returned to the external device side if the communication data settings on the Ethernet module side see Section 4 6 and the data code settings on the external device side are different The Eth...

Страница 261: ...ernet module see the following sections for the required devices and connection method Section 2 2 Devices Required for Network Configuration Section 4 4 Connecting to the Network 3 If the Ethernet module could not receive messages sent from external devices frequently check the values stored in the following buffer memory a Simultaneous transmission error detection count storage area BFM 398 to 3...

Страница 262: ...rror according to the error code see Section 11 4 Is the parameter IP address of the external device correct NO YES 1 Execute the open processing of the applicable connection For details see Section 5 6 Read the content of the communication abnormal code storage area BFM 125 135 corresponding to the fixed buffer of the buffer memory and check whether or not a communication error has occurred Has a...

Страница 263: ...or initial errors in the error log area NO YES Check and fix the faulty part The Ethernet module hardware on the sending side may be faulty Consult your nearest dealer with the details of the errors Is the read value of BFM 1610 to 1617 0004H Does the communication protocol TCP UDP match that of the external device NO YES Match the protocol with the communication protocol TCP UDP of the external d...

Страница 264: ...he fixed buffer of the buffer memory and check whether or not a communication error has occurred Has a communication error occurred in the error log area Fix the error according to the communication error code in the error log area see Section 11 4 NO YES Check that receive is set in the parameter open settings Receive is set Change parameters to receive NO YES Do the expected length of data to be...

Страница 265: ... Does the communication protocol TCP UDP match with that of the external device Is the parameter for IP address of the external device correct Is each Port No of the local and the external station correct NO YES Correct the IP address of the external device The Ethernet module on receiving side may be faulty Consult your nearest dealer with the details of errors Check the communication status of t...

Страница 266: ...owing conditions occur For TCP communication When the external device s open status is complete LEDs C1 C8 which are in correspondence with connections 1 8 turn on For UDP communication When external device communication is possible LEDs C1 C8 which are in correspondence with connections 1 8 turn on ...

Страница 267: ...ocessing of the applicable connection For details see Section 5 6 Is the IP address designation of the command correct NO YES Correct the IP address and send the command again NO YES Match the communication protocol TCP UDP with the external device For details see Section 5 5 Is the end code of the response 0 NO Fix the faulty part according to the description of the end and abnormalcodes see Sect...

Страница 268: ...y Consult your nearest dealer with the details of the errors POINT If the external device communicates normally the following conditions occur For TCP communication When the external device s open status is complete LEDs C1 C8 which are in correspondence with connections 1 8 turn on For UDP communication When external device communication is possible LEDs C1 C8 which are in correspondence with con...

Страница 269: ...ed on e mail send error log For details see Section 11 4 Can the error response be received from the mail server using the mail receiving operation Confirm with the system administrator that the following are set correctly DNS settings E mail settings YES NO Check the following items Sending error E mail parameter settings of the Ethernet module Whether or not the mail server s system is down Whet...

Страница 270: ...ther or not the send data attached file is in ASCII code If the sending side is a PC try sending using another mail program If there is any difference due to the mail program check the mail settings again Check that the mail server s encode and decode are the same as the Ethernet EUC or SHIFT JIS is used Check the PC setting Send from the PC to the local station Check the header information of the...

Страница 271: ...ion scan time Ke Kdf Constant see the table below Df Word count of send data Sr Receiving station scan time Communication using TCP IP Communication using UDP IP Ke Kdf Ke Kdf Data communication using binary code 12 0 0065 10 0 0069 Data communication using ASCII code 12 0 030 10 0 029 b Communication using the fixed buffer No procedure Tfs St Ke Kdf Df Tfs Time from the start of sending to the co...

Страница 272: ...Application data part Scr Scan time 1 The timing sequence from when the Ethernet block receives the request data from the personal computer until it completes processing is shown below External device personal computer Ethernet module PLC scan time Command message Tfs ACK TCP only Step 0 END Step 0 END Response message ACK TCP only Communication using TCP IP Communication using UDP IP Ke Kdt Ke Kd...

Страница 273: ...essing time of the external device ms 18 0 015 12 66 40 1 ACK processing time of the external device Command data length 12 words Response data length 66 words Calculation example 2 Calculate the time the FX3U ENETtakes to complete the processing of a data request from a PC after receiving it when the FX3U ENETand the PC performs TCP IP communication and writes 32 points of ASCII code data to the ...

Страница 274: ...CK SYN 6 F V f v 7 0111 BEL ETB 7 G W g w 8 1000 BS CAN 8 H X h x 9 1001 HT EM 9 I Y i y A 1010 LF SUB J Z j z B 1011 VT ESC K k C 1100 FF FS L l D 1101 CR GS M m E 1110 SO RS N n F 1111 SI US O _ o DEL Appendix 3 References For details on TCP IP refer to the DDN Protocol Handbook 3 volumes Publisher DDN Network Information Center SRI International 333 Ravenswood Avenue EJ291 Menlo Park California...

Страница 275: ...eived data Response message processing Have all the received messages been processed End Error handling If a response message to the next request was received Timeout of monitoring timer The TCP connection is closed Receive remaining response messages Insufficient size of data received Request message transmission processing Response message reception processing Was the reception data received wit...

Страница 276: ... 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 o...

Страница 277: ...Communication possible at STOP time BFM 24 b8 ON IP address 172 16 56 99 AC 10 38 63H BFM 106 to 107 b Open settings Protocol TCP BFM 32 b8 OFF Open system Unpassive BFM 32 b14 b15 10H Fixed buffer Send BFM 32 b0 OFF Fixed buffer communication procedure Procedure exist MC BFM 32 b9 OFF b10 ON Pairing open Disabie BFM 32 b7 OFF Existence confirmation No confirm BFM 32 b1 OFF Host station Port No 10...

Страница 278: ...C NET 1 Start Visual C 2 Prepare for program creation Select New Project from the project tab select Win32 console project and create an empty project with the name ENETSAMP 3 Add ENETSAMP C to the project and create a program See the program example on the next page 4 Compile the created file from the compile screen of the build menu 5 From the project menu property setting screen add WSOCK32 LIB...

Страница 279: ...NITIAL 0 Initial error define ERROR_SOCKET 1 Socket creation error define ERROR_BIND 2 Bind error define ERROR_CONNECT 3 Connection error define ERROR_SEND 4 Send error define ERROR_RECEIVE 5 Receive error define ERROR_SHUTDOWN 6 Shutdown error define ERROR_CLOSE 7 Line close error Definitions for checking the receiving sizes define RECV_ANS_1 4 Receiving size of response message in reply to devic...

Страница 280: ...ons 10000 Ethernet block side port number Closeflag FLAG_OFF Connection completion flag off nErrorStatus WSAStartup wVersionRequested wsaData Winsock Initial processing if nErrorStatus SOCK_OK Sockerror ERROR_INITIAL Error handling return SOCK_NG printf Winsock Version is ld ld n HIBYTE wsaData wVersion LOBYTE wsaData wVersion printf FX3U ENET Test Start n socketno socket AF_INET SOCK_STREAM 0 Cre...

Страница 281: ...ECIEVE Error handling return SOCK_NG if length SOCKET_ERROR nErrorStatus WSAGetLastError if nErrorStatus WSAEWOULDBLOCK Sockerror ERROR_RECIEVE Error handling return SOCK_NG else continue Repeat until messages are received else rbuf_idx length Update the receive data storage position recv_size length Update the number of receive data if recv_size RECV_ANS_1 Have all response messages been received...

Страница 282: ...s messages have been received r_buf rbuf_idx 0 Set NULL at the end of receive data printf receive data n s n r_buf if shutdown socketno 2 SOCK_OK Processing to disable sending receiving Sockerror ERROR_SHUTDOWN Error handling return SOCK_NG if closesocket socketno SOCK_OK Close processing Sockerror ERROR_CLOSE Error handling return SOCK_NG Closeflag FLAG_OFF Connection completion flag off WSAClean...

Страница 283: ...se ERROR_SHUTDOWN printf Failed to shutdown break case ERROR_CLOSE printf Failed to close normally break printf Error code is d n nErrorStatus if Closeflag FLAG_ON nErrorStatus shutdown socketno 2 Shutdown processing nErrorStatus closesocket socketno Close processing Closeflag FLAG_OFF Connection completion flag off printf Press any key to exit the program n Dmykeyin getchar Wait for a key input W...

Страница 284: ...me 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 ...

Страница 285: ...Class Form1 Inherits System Windows Forms Form Region Windows Code created by Form Designer Public Sub New MyBase New This call is necessary for Windows Form Designer InitializeComponent InitializeComponent Initialization is added after the call End Sub The Form overwrites dispose to execute after processing in the component list Protected Overloads Overrides Sub Dispose ByVal disposing As Boolean...

Страница 286: ...e Start Size New System Drawing Size 88 32 Me Start TabIndex 0 Me Start Text Start lstOutput Me lstOutput ItemHeight 12 Me lstOutput Location New System Drawing Point 16 64 Me lstOutput Name lstOutput Me lstOutput Size New System Drawing Size 264 196 Me lstOutput TabIndex 1 Form1 Me AutoScaleBaseSize New System Drawing Size 5 12 Me ClientSize New System Drawing Size 296 273 Me Controls Add Me lstO...

Страница 287: ...mmand Client GetStream Write Buffer 0 Buffer Length Waiting for a response from an Ethernet block While Not Client GetStream DataAvailable Application DoEvents End While If Client GetStream DataAvailable Then Client GetStream Read InBuff 0 InBuff Length RxResponse System Text Encoding Default GetString InBuff SubHeader Mid RxResponse 3 2 If SubHeader 00 Then Normal response Temp Initialization of ...

Страница 288: ...App 18 App 18 MELSEC F APPENDIX End If lstOutput SelectedIndex lstOutput Items Count 1 End If Line disconnection processing Client GetStream Close Client Close End Sub End Class ...

Страница 289: ...t loopback Upon receiving an Echo Request the Ethernet block sends this message 8 Echo Request Requests loopback of IP packet If destination existence confirmation is set in the buffer memory the Ethernet module sends this message when attempting to confirm the existence of the target 1 Others Ignored by the Ethernet module Not supported 1 The Ethernet module can simultaneously receive two ICMP EC...

Страница 290: ...rameter Ethernet E mail settings Recording sheet 5 Ethernet mail address settings Recording sheet 1 Block number Setting data FX configurator EN GX Developer setting screen Data item Setting value Remark Binary code communication Communication data code setting ASCII code communication Do not wait for OPEN Communications impossible at STOP time Initial Timing Always wait for OPEN Communication pos...

Страница 291: ...mer Default 10 500 ms Response monitoring timer Default 60 500 ms Destination existence confirmation starting interval Default 1200 500 ms Destination existence confirmation Interval timer Default 20 500 ms Timer setting Destination existence confirmation resend timer Default 3 times Decimal Input format Hexadecimal DNS server IP address Input format DNS server 1 IP address DNS server 2 IP address...

Страница 292: ... Input format Hexadecimal Decimal Hexadecimal Destination IP address input format Destination IP address Adjust to input format Connection No Destination Port No Input format Hexadecimal TCP Protocol UDP Active Unpassive Open system Fullpassive Send Fixed buffer Receive Procedure exist Fixed buffer communication No procedure No pairs Paring open Pairs No confirm Existence confirmation Confirm Loca...

Страница 293: ...ta FX configurator EN GX Developer setting screen Data item Setting value Remark Sub net mask pattern Adjust to input format Default router IP address Adjust to input format Decimal Setting the Ethernet relay parameter Input format Hexadecimal Router information Input format ...

Страница 294: ...interval to check received mail SMTP Server name Decimal Hexadecimal IP address input format Send setting IP address Adjust to input format POP Server name Decimal Hexadecimal IP address input format Ethernet e mail settings Mail Server name IP address Adjust to input format No 1 Send mail address No 2 Send mail address No 3 Send mail address No 4 Send mail address No 5 Send mail address No 6 Send...

Страница 295: ...App 25 App 25 MELSEC F APPENDIX MEMO ...

Страница 296: ...Revised History Date Revision Description 10 2005 A First Edition 9 2007 B The FX3UC Series was added Clerical error correction 9 2008 C Clerical error correction ...

Страница 297: ......

Страница 298: ...MARUNOUCHI CHYODA KU TOKYO 100 8310 JAPAN HIMEJI WORKS 840 CHIYODA CHO HIMEJI JAP AN JY997D18101C MEE Effective Sep 2008 Specifications are subject to change without notice USER S MANUAL FX3U ENET MODEL FX3U ENET U E MODEL CODE 09R716 ...

Отзывы: