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 Yonghong PLC through IoT gateway

NegotiableUpdate on 02/25
Model
Nature of the Manufacturer
Producers
Product Category
Place of Origin
Overview
Easy realization of remote control of IoT gateway to Yonghong PLC is a new generation of edge computing gateway launched by Lanfeng for IoT applications. It uses 4G networking and is equipped with high-performance industrial grade processors, which 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 helps users quickly realize the construction and application of 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: Yonghong PLC is an excellent domestically produced programmable controller widely used in the field of industrial control. It is a high-performance and stable controller. This time, we will connect the Yonghong FBs/B1 series PLC to the EG series gateway via Modbus protocol, and connect it to the EMCP IoT cloud platform (referred to as EMCP) to achieve remote monitoring of Yonghong PLC through computer web pages, mobile apps, and WeChat.

One preparation

1.1 Material Preparation

1) One Yonghong PLC (note COM2 or COM4) and its own programming cable.
2) One EG20 gateway module from Hebei Blue Bee Technology.
3) One SIM card with high data capacity (China Mobile, China Unicom, China Telecom)
4) One networked computer
5) Several electrical tools and wires
The material preparation is as follows:

1.2 Preparation work for EG20 gateway

Connect the PLC to the power supply, plug the programming cable into the COM1 port of the PLC, and connect the other end to the COM port (or USB-232 cable) of the computer. This port is used for configuring PLC parameters on the computer.
Connect the 485 serial port (COM2 or COM4+/- terminal) of the PLC to the RS-485 and RS-485 terminals of the EG gateway. This port is used for communication between PLC and EG20 gateway. As shown in the figure below:

II Modbus Slave Creation for PLC

Open the "WinProLadder" programming software and create a new project based on the PLC you are using. Click on "PLC" in the upper right corner and select "Online" to connect with the PLC. Then select "Settings" to set the communication parameters for port2 or port4. Set communication parameters in the pop-up window.
In this case, the Modbus station number is 1, and the serial port parameters are changed to 9600, 8 N、1。
It should be noted that Yonghong PLC has integrated the Modbus protocol set, supporting Modbus protocol communication master and slave modes, and corresponding its internal registers with Modbus registers. Here, we are using the slave mode.

III EMCP platform settings

Before setting up the EMCP platform, first confirm that the RS-485 lines of the EG20 gateway and Yonghong PLC are 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

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 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 [Communication Port Configuration] ->select and set , , , in the pop-up window ->click [Save].

3.2.3 Creating Device Drivers

After completing the communication parameter settings, click on the "Add Driver" button in the center of the interface ->Fill in device driver information ->"Save". Alternatively, you can click [+Add] to add a driver.

: 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 setting of the PLC, so it is filled in as 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

[Instrument, PLC]: Select the "Yonghong PLC" driver that was just created.
: Customizable, required field, no duplicates allowed.
[Unit]: Customizable, optional. When displaying in a list, variables will be displayed with units.
: The identifier for the MODBUS register area of the module reading device. Please refer to the following introduction for specific details.
Register Address: When filling in the address, the register area identifier is not included. Please refer to the following introduction for specific details.
[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'.
: Choose and fill in as needed.
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 "Equipment Fault Status", then when the value of the collected variable is "10", the "Equipment Fault Status" will be directly displayed in the equipment monitoring and historical reports.

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. As shown in the following figure:

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

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

4 experimental results

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


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 Yonghong PLC through IoT gatewayEasy implementation of IoT gateway for Yonghong 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!