Preface: Mitsubishi PLC is widely used in the field of industrial control and is a high-performance and stable PLC equipment. This document will introduce how to use the EG series gateway to connect Mitsubishi PLC via serial port and add it to the EMCP IoT cloud platform, enabling remote monitoring and control of Mitsubishi PLC through computer web pages, mobile apps, and WeChat. The gateway can connect Mitsubishi PLCs such as FX1N, FX2N, FX3U, etc. The following mainly takes Mitsubishi FX3UPLC as an example.
1) One Mitsubishi PLC and its own programming cable.
2) One EG20 gateway, antenna, and power adapter from Hebei Blue Bee Technology (using EG20 as an example below).
3) One SIM card with data, large card (China Mobile, China Unicom or China Telecom card).
4) One networked computer (WinXP/Win7/Win8/Win10 operating system).
5) Several electrical tools and wires.
The technical parameters and usage instructions related to the gateway can refer to the EG20 User Manual.
1. Ensure that the gateway can be connected to the internet normally, either through a 4G card (China Mobile/China Unicom/Telecom data card, large card) (with the antenna attached to the gateway) or through a network cable (with the router's network cable connected to the gateway's WAN port);
2. Connect the gateway to a 12V or 24V DC power supply and power it on. (Note that the positive and negative terminals of the power supply should not be reversed).
Connect the PLC to the power supply (note whether the power supply is 24VDC or 220VAC), plug the programming cable into the PLC's COM port, and connect the other end to the EG20's RS232 or PLC's 485 serial port to the EG20's 485A and 485B terminal blocks. Taking the domestic FX3UPLC, R232 interface as an example, as shown in the following figure:
Log in to the EMCP platform with an administrator account (it is recommended to use 360 Browser Speed Mode, Chrome browser, or a browser that supports Chromium kernel), and set up the EMCP cloud platform. Please refer to the "EMCP IoT Cloud Platform User Manual" for specific operations. After logging into EMCP, the first step is to enter the device list display page. As we have not created any devices, it is an empty page. We need to follow the steps below to proceed.
Step: Click on (only management accounts have this permission) → → [EG Device Management] → [+Add] → Fill in device information → Click [Save]. Among them, is required, and all other options can be optional.
The two main areas that need to be configured in the EG device management gateway configuration are configuring serial communication parameters and creating Mitsubishi protocol drivers. The following will explain this function step by step. Note: The gateway can only be remotely configured after it is online.
At this point, in the "Gateway Basic Information" section on the right, you can see whether the bound gateway is connected to the platform (if you successfully log in to the platform, you can see the green word "Online", if not, it will display the gray word "Offline", please check the network or network signal).
We need to communicate with the device using RS232, so we need to set the communication parameters for RS232. Step: Click on [Communication Port Configuration] ->select and set , , , communication parameters in the pop-up window ->click [Save].
Basic configuration introduction:
【 Communication Port 】: Select RS232 from the drop-down options.
【 Communication Port Configuration 】: This button can set communication port parameters, which is the same as the previous steps. If it has been set before, there is no need to click this button again.
: Required field, can be customized
[Brand]: Required field, select "Mitsubishi".
[Model]: Required field, select "FX3U". This example is FX3UPLC, choose the corresponding model according to your own PLC model.
【 Device Address 】: Mitsubishi PLC does not have a device address, default is 1.
Advanced configuration introduction:
【 Minimum Collection Time 】: It is the time interval for the gateway to collect device data, measured in milliseconds. If set to 1000ms, the gateway will collect device data once every 1 second.
[Communication waiting time]: The waiting time for the gateway to receive communication data. Adjustments can be made as needed, with a default of 1000ms.
[16 bit integer], [32-bit integer], [32-bit floating-point type]: Refers to the decoding order of the corresponding data type. If the table provided by the manufacturer is not indicated, it is recommended not to make any modifications and simply select the default option.
[Block Collection Method]: 0- Block by Maximum Length: The collection block is processed according to the maximum block length, and multiple blocks with discontinuous but similar addresses are divided into one block and read at once to optimize the collection efficiency; 1- Block by continuous address: Collect blocks based on address continuity, and for multiple blocks with discontinuous addresses, only collect continuous addresses at a time without optimization processing. Simply select the default option.
[4-zone 16 digit write function code]: Select the function code when writing single characters in zone 4. Simply select the default option.
Step: Click on 【 ③: Variable Management 】 → 【+Add Variable 】 → Fill in variable information → 【 Save 】.
Variable introduction:
【 Instrumentation, PLC 】: Required, select the Mitsubishi FX3U just created.
: Required, customizable. Be careful not to have duplicate names.
[Unit]: Not required, can be customized. When displaying in a list, variables will be displayed with units.
: Required, fill in the corresponding Mitsubishi PLC register type.
: Required, the address should be filled in without the register area identifier, and should be consistent with the actual register address.
: Required, select according to actual needs.
[Number of decimal places]: Not required, fill in according to requirements.
[Dead Zone Setting]: Not required, default is sufficient. Fill in as needed. For a more detailed explanation, please refer to the "?" help section later.
: Not required. Numerical values can be directly mapped to text. If the value is "10" and the mapping field is "device failure", then when the value of the collected variable is "10", "device failure" will be directly displayed in the device monitoring and historical reports.
: Not required. The collected data can be calculated according to the formula filled in. For more detailed instructions, please refer to the "?" help section below.
[Read/Write Method]: You can modify the read/write method of this register according to your needs, and it defaults to read-only.
After adding, the 'Variable Management' is shown in the following figure. At this point, you can click the 'Data Testing' button to check whether the variable values can be collected or whether the values are correct.
You can set alarms for variables as needed. When an alarm is generated, it will be displayed on the computer web page and pushed through the mobile app and WeChat. Setting steps: Click on "Alarm" ->"Add" ->Fill in the alarm information and conditions ->"OK" after the variable that needs to be alarmed. As shown in the following figure:
After creating the variables, you can click on "④ Historical Report Management" to create historical reports according to your own needs. Historical reports can meet different application scenarios to record historical data. Historical curves are generated based on reports, making it convenient for customers to view variable trends in curve form. As shown in the interface below:
Periodic storage: Record data storage at fixed time intervals.
Conditional storage: When a variable reaches a certain condition, partial data is stored in "interval storage" or "single storage".
Change storage: When a variable changes beyond a certain range (high and low limits), partial data is recorded once (such as recording associated data after a data alarm).
Click on 【 ⑤ Configuration Management 】 to enter the configuration management interface, where you can set the display mode in data monitoring (configuration display or list display, default is configuration display). You can choose to use the configuration display format here to display the corresponding data rules.
As shown in the interface below:
Click on the 'Edit' option behind the configuration interface list in the middle of the interface to enter the editing page. Through the configuration editing page, we can freely draw images, text, digital display boxes, buttons, indicator lights, pipelines, equipment and other controls. For detailed functions, please refer to the "EG Equipment Configuration Editing User Manual".
Users can log in to the EMCP platform, click on the image or device name of the "Mitsubishi PLC" device, and enter the EG device to view and modify relevant data.
The default address of Mitsubishi PLC equipment is 0, and the Mitsubishi programming port uses RS232/422 communication method, so there is no need to set the address, so it can only be used one-on-one;
② The default communication parameters for Mitsubishi FX programming port are 9600, 7, 1, and even parity. Among them, FX1N, FX2N, and FX3U can support 19200 and 38400 baud rates, while other models only support 9600 baud rates. When using the 232BD communication module for communication, its parameters should be set to fixed 9600, 7, 1, and even parity.
Remote monitoring of Mitsubishi PLC intelligent gatewayRemote monitoring of Mitsubishi PLC intelligent gateway
What we care more about is the user experience of each platform. Thank you for your trust!
For more technical information, please search for Blue Bee IoT! You can also apply for a free prototype!