Welcome Customer !

Membership

Help

Hebei Lanfeng Information Technology Co., Ltd
Custom manufacturer

Main Products:

intelligent-mfg>Products

Hebei Lanfeng Information Technology Co., Ltd

  • E-mail

    754242851@qq.com

  • Phone

    13582025608

  • Address

    IoT Building, No. 377 Xinshi South Road, Qiaoxi District, Shijiazhuang City

Contact Now

Easily achieve remote control of Schneider PLC through IoT gateway

NegotiableUpdate on 02/25
Model
Nature of the Manufacturer
Producers
Product Category
Place of Origin
Overview
Easily realize the remote control of the IoT gateway over Schneider PLC is a new generation of edge computing gateway launched by Blue Bee for IoT applications. It uses 4G networking and is equipped with high-performance industrial grade processors. It can provide high-speed data acquisition, real-time alarm, edge computing, data storage, breakpoint continuation, rapid deployment and other applications for IoT edge nodes. It can help users quickly realize the construction and application of the IoT by cooperating with the cloud configuration, big data operation center, mobile terminal monitoring alarm, data analysis and other professional functions of the EMCP IoT cloud platform.
Product Details

Preface: Schneider M340 PLC is widely used in the field of industrial control and is a high-performance and stable controller. This time, we will connect the Schneider M340 PLC to the EMCP IoT cloud platform (referred to as EMCP) through Modbus RTU protocol using EG gateway, to achieve remote monitoring and reading/writing of Schneider M340 PLC (% M and% MW) registers through computer web pages, mobile apps, and WeChat.

One preparation

1.1 Material Preparation

1. One Schneider M340 PLC.
2. One EG series gateway, antenna, and power adapter (using EG20 gateway as an example below).
3. One SIM card with data, large card (China Mobile, China Unicom, China Telecom).
4. A crystal head.
5. One networked computer
6. Several electrical tools and wires.

The material preparation is as follows:


1.2 Preparation work for EG20 gateway

1.3 Schneider PLC Preparation Work

Connect the M340 PLC to the power supply and prepare a crystal head. Connect the 4th and 5th pins of the crystal head to 485A and 485B of EG20, respectively

II Schneider M340 PLC slave station creation

Step 1: Connect the M340 PLC to the computer via programming cable and open the Unity pro programming software. Step 2: Click on the PLC bus and double-click on the Modbus port to enter the Modbus parameter setting interface. Complete the settings according to the following figure (select slave station as the type, and set the slave station number, address, and communication parameters according to your own needs. In this case, set it as slave station 1 with communication parameters of 9600, 8, N, 1).
After completing the Modbus parameter settings, open the Application Tree and click on GVL to modify the variables. Download the modified program to the PLC
This way, the configuration of Schneider PLC slave station is ready.

III EMCP platform settings

Before setting up the EMCP platform, first confirm that the RS-485 line between the EG20 gateway and Schneider PLC is connected correctly.
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. After logging into EMCP, the first step is to enter the device list display page, which is an empty page because we have not created any devices.

3.1 Add EG equipment

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 left blank.

3.2 Remote Configuration Gateway

3.2.1 Binding Gateway

Step: Click on [Step 2: Gateway and Instrument Management] → → Fill in and → [Confirm].
The SN and verification code are on the chassis label of the gateway. The SN is a 12 digit pure Arabic numeral, and the verification code is a 6-digit pure uppercase English letter. [Note] You can fill in according to your needs, and after editing, click [Save and Next].

3.2.2 Communication parameter settings

Step: Click on [RS485] ->fill in , , , ->click [OK].

3.2.3 Creating Device Drivers

Basic configuration introduction:
: Required field, can be customized.
[Brand] and [Model]: required fields, as shown in the figure, select "Universal Modbus Device" and "Modbus RTU" respectively.
: Required field, it is the Modbus slave address (range 1-255) of the device connected to the gateway. This address must be consistent with the slave number set by the PLC, so it is set to 1 in the figure.
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.

3.3 Adding Variables

【 Instrumentation, PLC 】: Select the "Schneider M340PLC" driver that was just created.
: Customizable, required field.
[Unit]: Customizable, optional. When displaying in a list, variables will be displayed with units.
: In Schneider M340 PLC, the input and output of discrete quantities use the% M address, while analog quantities use the% MW address (the correspondence between Modbus registers can refer to the variable comparison table in the following case).
The correspondence between PLC local registers and function codes is shown in the table below, followed by the register types selected for the corresponding EMCP platform.
Register Address: Fill in according to the actual variable.
[Read/Write Method]: You can choose the read/write method for variables and modify it according to your needs. Note that discrete inputs and input registers cannot select 'read/write'.
: Select according to the PLC settings.
Clicking on advanced configuration will display the following:
[Number of decimal places]: You can choose to fill in as needed.
[Dead Zone Setting]: Fill in as needed. For a more detailed explanation, please refer to the "?" help section later.
: Fill in as needed. For a more detailed explanation, please refer to the "?" help section later.
: 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.
After adding, the variable management is shown in the following figure. At this point, you can click the "Data Test" button to check if the data is correct, reducing the number of times you switch to the front-end to view the data.

3.4 Alarm Settings

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.

3.5 Report Management

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.
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).

3.6 Screen Configuration

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.
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".

4 experimental results

The user logs into the EMCP platform and clicks on the image or device name of the "Schneider M340PLC" device to enter the deviceYou can view and modify relevant data.

Attachment: Modbus Address Table Corresponding to Schneider PLC Variables

We have rich experience in system integration solutions and can provide users with embedded hardware, server software platforms, and mobile APP softwareIoT products. The involved fields include remote online management of industrial equipment, online management of complete systems, online management of environmental detection, agricultural smart greenhouse monitoring systems, and remote SCADA systems for agricultural product traceability.

Easily achieve remote control of Schneider PLC through IoT gatewayEasy implementation of IoT gateway for Schneider PLCThe Remotecontrol

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!