MITSUBISHI MELSEC 3E ASCII 1. Overview This driver provides the software interface and communication protocol between XPanel and Mitsubishi MELSEC Q Series PLCs. This protocol uses the ASCII code. It supports the following families of MELSEC PLCs Ethernet modules. QJ71E71, QJ71E71-B2 These communication modules can be used to access data of QCPU and QnACPU. 2. Communication Setup : XPanel (1) Create a new device. For creating a new device activate the menu Tools -> I/O Devices or icon in toolbar. Following picture shows the first step of creating a new device. I/O Device Name Give a device name. This name will be used in the TAG configuration window of MELSEC 3E ASCII - 1
database accompanied by the Station Name. (2) Select a network type : MITSUBISHI MELSEC 3E (ASCII) After selecting the OK button of previous step, Ethernet Communication Configuration dialog box will be popped up as shown in following picture. In this window, select the Device Type as MITSUBISHI MELSEC 3E (ASCII) and configure the proper Ethernet communication parameters. (Note) The ASCII communication of MELSEC is serviced with TCP/IP protocol suit only. Do not choose the UDP protocol in above dialog box. (3) Create a station Move to the Station tab of Ethernet Communication Configuration dialog box. In this dialog box, all the connected PLC stations can be configured and registered to the XPanel. Each field can be configured with following rules. Station Name Give a name to the PLC. This name will be used in the database window accompanied with the Device Name. Station Type Choose the MELSEC. (No other type can be selected.) Network ID This field has no effect. IP Address Give the IP address of PLC with dotted decimal format. MELSEC 3E ASCII - 2
Socket Port Number Give the port number opened by the PLC. 16Bit Data Swap This field has no effect. 32Bit Data Swap This field has no effect Comm. Error Message Pop Up If this item is checked, XPanel displays a communication error notification message at every Rx and Tx error. Otherwise(unchecked), XPanel does not display the message at data receive error. Only when there is data transmit (writing a TAG value to the station) error, the notification message is popped up. This message box will be closed automatically about 5 seconds after. Fixed XPANEL Socket Port / XPANEL Socket Port No. If this option was checked, XPanel will use only one port defined in XPANEL Socket Port No. field for connection with PLC. Otherwise, XPanel will change the port at every TCP connection or communication error. This option is provided for XPanel to deal with various TCP port management ways of PLC. Some PLC has a limit on the number of TCP services. In that case, this option can be a help. The actual effect of this option on PLC cannot be described here. Because, there MELSEC 3E ASCII - 3
are too many kinds of PLC and the response in PLC is entirely dependant on the specification of PLC and engineer s experience. The default setting of this option is unchecked state. MELSEC 3E ASCII - 4
3. Address Notation The address of TAG in XPanel has the following format. Type Format Example 10 [Symbol][Address in decimal number] D0012 16 [Symbol][Address in hexa-decimal number] X01FC Following table shows the list of devices which can be referenced in XPanel database. Memory Area Symbol I/O Address Range Notation Bit/Word Input Relay X X000000-X001FFF 16 Bit Output Relay Y Y000000-Y001FFF 16 Bit Internal Relay M M000000-M008191 10 Bit M M009000-M009255 10 Bit Latch Relay L L000000-L008191 10 Bit Step Relay S S000000-S008191 10 Bit Link Relay B B000000-B001FFF 16 Bit Annunciator F F000000-F002047 10 Bit Timer Contact TS TS00000-TS02047 10 Word Timer Coil TC TC00000-TC02047 10 Word Timer Current Value TN TN00000-TN02047 10 Word Retentive Timer Contact SS SS00000-SS02047 10 Word Retentive Timer Coil SC SC00000-SC02047 10 Word Retentive Timer Current Value SN SN00000-SN02047 10 Word Counter Contact CS CS00000-CS01023 10 Word Counter Coil CC CC00000-CC01023 10 Word Counter Current Value CN CN00000-CN01023 10 Word Data Register D D000000-D08191 10 Word D D9000-D9255 10 Word Link Register W W000000-W001FFF 16 Word File Register R R000000-R008191 10 Word MELSEC 3E ASCII - 5
4. Communication Cable Wiring (1) Connect through the Ethernet HUB (2) Direct connection 10Base-T / 100Base-TX Cross Cable MELSEC 3E ASCII - 6