Upload
lamthuan
View
223
Download
0
Embed Size (px)
Citation preview
Tech-note
Mitsubishi FX
Driver for JMobile
This document contains the information needed to connect the panels to Mitsubishi FX Series
controllers.
Exor International S.p.A. Ptn0365 Ver. 1.01
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
2
Copyright 2011-2015 Exor International S.p.A. – Verona, Italy Subject to change without notice The information contained in this document is provided for informational purposes only. While efforts were made to verify the accuracy of the information contained in this documentation, it is provided “as is” without warranty of any kind. Third-party brands and names are the property of their respective owners. www.exorint.net
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
3
Contents
Mitsubishi FX Ethernet Driver ........................................................................................................ 4 Protocol Editor Settings..................................................................................................... 5 Tag Editor Settings ............................................................................................................ 6 Tag Import ......................................................................................................................... 8 Mitsubishi Controller Settings with GX Developer .......................................................... 11 Communication Status .................................................................................................... 16
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
4
Mitsubishi FX Ethernet Driver
Mitsubishi FX Ethernet implements the MELSEC-F (or MC) communication protocol that can be used with FX CPUs as described in the Mitsubishi document “FX3U-ENET USER’S MANUAL”, chapter 8 “Communication using MC protocol”. NOTE: Mitsubishi FX3U controller must be equipped with the appropriate Ethernet module: FX3U-ENET
Document code ptn0365 Version 1.01
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
5
Protocol Editor Settings
Add [+] a driver in the Protocol editor and select the protocol called “Mitsubishi FX ETH” from the list of available protocols.
Figure 1
IP address Ethernet IP address of the controller
Port Specifies the port number (decimal) used in the communication with the PLC.
PLC Model Defines the PLC model connected
PLC Network The protocol allows the connection of multiple controllers to one operator panel. To
set-up multiple connections, check “PLC network” checkbox and enter IP Address for all controllers.
Figure 2
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
6
Tag Editor Settings
Into Tag editor select the protocol “Mitsubishi FX ETH” from the list of defined protocols and add a tag using [+] button. Tag settings can be defined using the following dialog:
Figure 3
Resources Area of PLC where tag is located
Offset Offset address where tag is located.
SubIndex This allows resource offset selection within the register.
Type Data Type Memory Space Limits
boolean 1 bit data 0 ... 1
byte 8-bit data -128 ... 127
short 16-bit data -32768 ... 32767
int 32-bit data -2.1e9 ... 2.1e9
unsignedByte 8-bit data 0 ... 255
unsignedShort 16-bit data 0 ... 65535
unsignedInt 32-bit data 0 ... 4.2e9
float IEEE single-precision 32-bit floating point type
1.17e-38 ... 3.40e38
string Refer to “String data type chapter”
NOTE: to define arrays, select one of Data Type format followed by square brackets like “byte[]”, “short[]”…
Arraysize When configuring array or string tags, this option define the amount of
array elements or characters of the string.
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
7
Conversion Conversion to be applied.
Value
Inv bits Invert a bit (boolean tag)
Negate Invert all bits
AB -> BA Swap nibbles of a byte
ABCD -> CDAB Swap bytes of a word
ABCDEFGH -> GHEFCDAB Swap bytes of a double word
BCD BCD format conversion
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
8
Tag Import
The Mitsubishi FX Ethernet tag import accepts symbol files with extension “csv” created by the Mitsubishi GX Works2 (Not from GX Developer). The “.csv” file can be exported from the Project tree, as shown in Figure 4.
(1) Right-click on the Global variable list that need to be exported, (2) Select “Write to CSV File…”
Figure 4
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
9
Into following dialog select the file name and location:
Figure 5
Once exported, open JMobile tag editor as in shown in Figure 6, then:
(1) Click on Import button (2) Confirm Controller and Import Type
Figure 6
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
10
Then a dictionary with tags included into csv file will be created. To import tags into tag editor click on Import button as below:
Figure 7
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
11
Controller Settings with GX Developer
The Mitsubishi FX system must be properly configured for Ethernet communication using the Mitsubishi FX Configurator. Click on “Operational settings” as shown at point (1) in Figure 8:
Figure 8
Into Operational Settings dialog, verify the “Communication data code” is set to “Binary code”, Then type-in the Controller IP Address and confirm with [End] button.
Figure 9
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
12
Click now on “Initial settings” as shown at point (2) of Figure below:
Figure 10
For proper communication between HMI and controller it is required to change “Destination existence confirmation starting interval” from the default value of 1200 to 10ms.
Figure 11
In case of communication error, this avoid controller keeps alive the connection for a too long time before to allow a new connection from the HMI.
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
13
Click now on “Open settings” as shown at point (3) of Figure below
Figure 12
Figure 13 shows the “Ethernet open settings” configuration. The detailed explanation of the meaning of each setting is available in Chapter 5.5 of the Mitsubishi “FX3U-ENET USER’S MANUAL”. “Host station Port No.” defined here is the same must be used into Protocol Editor Settings chapter.
Figure 13
NOTE: the usage of more than one panel communicating with the same controller requires to define proper settings in the “Open settings” configuration dialog: one connection per each panel must be configured with proper properties.
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
14
Controller Settings with GX Works2
The Mitsubishi FX system must be properly configured for Ethernet communication inside GX Works2 programming suite. FX Parameter dialog can be recalled with double-click on PLC Parameter:
Figure 14
Then select “Ethernet Port” tab where is possible to configure IP Address. Verify the “Communication data code” is set to “Binary code” as shown below:
Figure 15
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
15
Then click on “Open Settings” button to recall the “Ethernet Port Open Setting” dialog.
Figure 16
“Host station Port No.” defined here is the same must be used into Protocol Editor Settings chapter. NOTE: For FX3GE Controller, the Open System must be set as “Data Monitor” and Port set to 1025. NOTE: the usage of more than one panel communicating with the same controller requires to define proper settings in the “Open settings” configuration dialog: one connection per each panel must be configured with proper properties.
Tech-note
ptn0365-1.docx - 21.08.2015 Mitsubishi FX Ethernet Driver for JMobile
16
Communication Status
The current communication status can be displayed using the dedicated system variables. Please refer to the User Manual for further information about available system variables and their use. The codes supported for this communication driver are:
Error Notes
NAK Returned in case the controller replies with a not acknowledge
Timeout Returned when a request is not replied within the specified timeout period; ensure the controller is connected and properly configured to get network access
Invalid response The panel did receive from the controller a response, but its format or its contents is not as expected; ensure the data programmed in the project are consistent with the controller resources
General Error Error cannot be identified; should never be reported; contact technical support