EsDA empowers the smart factory system. The MPC-ZC1 industrial control board is combined with the ZLM3100S high-power motor driver to quickly build an intelligent fan control system for the production line workshop.
Introduction
This article is based on EsDA MPC-ZC1 application - IoT monitoring and control system (Part 2), applies the solution to the actual factory temperature detection and control system, and further improves the application.
Business Expansion
The new business mainly includes the following two aspects:
1. High-power fans The original fan equipment was replaced with high-power fans for the factory, and the fan equipment matched with the new generation industrial fan driver ZLM3100S launched by Zhiyuan Electronics was selected.
The maximum output power of the driver is up to 1KW, and the speed supports 500~1320 RPM. At the same time, it can monitor the motor status in real time, such as overvoltage, overcurrent, stall, bus voltage, IPM temperature and other data.
Motor control and status reading are achieved through RS485 Modbus RTU communication.
2. Cloud Configuration UI ZWS IoT platform provides an online configuration module, users can easily build their own UI interface. * Detailed information https://www.zlgcloud.com:20000/web/#/5?page_id=48 1. System Block Diagram In terms of hardware, the DO fan control in the previous issue is replaced with the high-power fan ZLM3100S. Since ZLM3100S and the temperature and humidity sensor use RS485 Modbus RTU communication, the two devices can be connected in parallel to the same bus interface and distinguished by configuring them with different slave addresses.
2. Fan control To control the ZLM3100S high-power motor, you need to use two nodes: zlm3100s_in and zlm3100s_out. 1. Node introduction 1.1 zlm3100s_in The zlm3100s_in node implements the function of periodically obtaining the motor status. 1.1.1 Properties
Name: Node name, used to index and find this node;
Display Name (displayName): The name displayed on the canvas;
Modbus configuration parameters (modbus): Bind a Modbus RTU configuration node;
Slave ID (slave_id): Motor device slave address;
Output period (period): The polling period for reading the motor status.
1.1.2 Output
start: The start/stop state of the motor, start is "on" and shutdown is "off";
rpm: motor set speed value, unit: rpm;
devaddr: Modbus RTU slave address;
minrpm: minimum permissible speed, in rpm;
maxrpm: maximum operating speed, in rpm;
starthold: the time to hold the machine in stop mode before starting (in seconds);
aispeed: analog speed control enable (1: enable, 0: disable);
devnum: device number;
overvol: overvoltage protection limit, unit V;
undervol: undervoltage protection limit, unit V;
overtemp: high temperature protection limit, unit: Celsius;
maxerr: maximum number of fault tolerances;
errperiod: fault tolerance clearing period;
errwait: error waiting time (seconds);
pwrlimit: power limit (W);
errcode: error code;
actrpm: actual speed, in rpm;
ipmtemp: IPM temperature, in degrees Celsius;
errcnt: number of errors;
sysrunTIme: system running time, in seconds;
focrunTIme: motor running time, in seconds;
state: system status;
iq: torque current (mA);
ia: A phase current (mA);
ib: B phase current (mA);
ic: C phase current (mA);
ubus: bus voltage, in millivolts;
cpuload: CPU load;
fwver: firmware version;
bTIme: firmware compilation time;
uid: device unique ID.
* ZLM3100S provides a rich register interface, please refer to the product user manual for details. 1.2 zlm3100s_out 1.2.1 Properties
Name: Node name, used to index and find this node;
Display Name (displayName): The name displayed on the canvas;
Modbus configuration parameters (modbus): Bind a Modbus RTU configuration node;
Slave ID (slave_id): Motor device slave address;
Error retry times (retry_TImes): Maximum number of communication error retries.
1.2.2 Input
start: motor start control, “on”: start, “off”: stop;
rpm: Set the motor speed, unit: rpm;
devaddr: Set the motor Modbus RTU slave address;
minrpm: Set the minimum allowable speed, in rpm;
maxrpm: Set the maximum operating speed, in rpm;
starthold: Set the stop time before starting (seconds);
aispeed: analog speed control enable (1: enable, 0: disable);
devnum: set the device number;
overvol: Set the overvoltage protection limit, unit V;
undervol: set undervoltage protection limit, unit V;
overtemp: Set the high temperature protection limit in degrees Celsius;
maxerr: Set the maximum number of fault tolerances;
errperiod: Set the fault tolerance clearing period;
errwait: Set the error waiting time (seconds);
pwrlimit: Set the power limit (W).
2. Control Verification 2.1 Fan Control Try to start the fan directly. 2.1.1 Add Nodes Add zlm3100s_out, timer, and fscript nodes, as shown in the figure below. 2.1.2 Configure Nodes
Double-click the zlm3100s_out node to open the configuration window and configure it as shown in the figure below.
Modbus configuration parameters (modbus): Shares a configuration with the temperature and humidity sensor;
Slave ID (slave_id): The slave address here is 7 (depending on the actual situation).
The control script is as follows, which directly starts the fan.
2.1.3 Download Flowchart Click to download flowchart.
It can be seen that the fan starts normally, and as the speed increases, the blinds are gradually blown up.
* The default speed is 1320 RPM and the startup waiting time is 20 seconds.
2.1.4 Merge Flow Graph Add the zlm3100s_out node to the previous flow graph, replacing the original GPIO fan control node, as shown below.
Double-click the Smart Controls script node and adjust it as shown below.
Adjusted script.
if (global.fan_control == "on") {
/* Manual start */
msg.start =
"on"
} else if (global.fan_control == "off") {
/* Manual stop */
msg.start = "off"
} else {
if (global.high_temp_anomaly == true) {
/* Automatic start at high temperature anomaly */
msg.start = "on"
} else {
/* Automatic stop at normal temperature */
msg.start = "off"
}
}
2.1.5 Download flow chart
By externally heating the sensor until the default high temperature warning value (30°C) is exceeded, the alarm LED can be seen to light up and after about 20 seconds, the fan starts automatically.
Send a fan start command through the cloud to manually start the fan.
2.2 Read Status Try to read the motor status. 2.2.1 Add Nodes Add zlm3100s_in, to_json, and log nodes to the flow graph, as shown in the figure below.
2.2.2 Node Configuration Double-click the zlm3100s_in node to open the configuration window and configure it as shown below.
Modbus configuration parameters (modbus): Shares a configuration with the temperature and humidity sensor;
Slave ID (slave_id): The slave address here is 7 (depending on the actual situation).
2.2.3 Download the flow chart and run the motor online.
Download complete.
It can be seen that the status of the motor is read while obtaining the temperature and humidity.
2.2.4 Reporting fan status
In order to view the status of the fan in the cloud, it is necessary to report the status of the fan to the IoT cloud platform. Here, choose to report the actual speed (actrpm) and IPM temperature (ipmtemp) of the fan.
Add a sync node to the temperature and humidity collection and report data nodes to synchronize temperature, humidity and click status data to ensure that the data is reported to the cloud platform synchronously.
The sync node configuration is as follows.
Add IPM temperature and fan speed data points to the reporting data node.
2.2.5 ZWS Add Data Points According to the method in the previous issue, add new data points for MPC-ZC1 on the ZWS cloud platform, as shown in the figure below. Add the fan IPM temperature status.
Add actual fan speed.
The final data points are as follows.
2.2.6 Download Verification
Download the flow chart.
Remote start of the fan.
View data in the cloud.
3. Cloud Configuration
1. Create a configuration
Click Data Management -> Configuration Application to enter the Configuration Application page.
Click Add Configuration.
Enter a name for the configuration application.
2. Design UI Enter the configuration editing page.
Select industrial components.
Add two scale components to display temperature and humidity.
Add text description for the scale.
Bind data points to the controls (for humidity controls, bind humidity data points).
Click Run to see the effect.
Get the temperature and humidity of MPC-ZC1 in real time.
Add a switch control.
Bind fan control commands.
Click Run to view the effect, and send the start command by clicking the switch control.
3. Beautify and save
Following the above steps, continue to add fan controls, bind fan speed data points, add text controls, bind IPM temperature, and finally beautify the design.
4. Completion
So far, the access of high-power wind turbines and cloud configuration design have been completed. It can be initially applied in actual scenarios and all business development of IoT detection and control systems has been completed. The final flow chart is shown below.
In actual applications, the number of fans is far more than one. You can follow the above process to copy and add more fan control nodes and remote configuration controls, as shown below.
Previous article:How to parse and convert Modbus-RTU and Modbus-TCP protocols
Next article:PLC definition/classification/function/application field/basic structure/working principle
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- CircuitPython 5.0.0 Beta 1 released
- EEWORLD University ---- RT-Thread Studio
- Invite you to make an appointment for TI live broadcast: Analysis of the classic and innovative TI ultrasonic gas flow meter solution + the latest SimpleLink platform wireless products
- Wireless charging solution "XS016 fully integrated MCU + micro IPM architecture"
- TI Industrial Month Reading Check-in Plan Three lucky draw opportunities are waiting for you~
- There is a section of LCD code in the atomic stm32f1 tutorial that is not clear, please help me take a look
- GD32E231 DIY Competition (1)——KEIL platform built
- 2019 Altium "Mobile Weekend Lab Class" Free Tickets- Shanghai Station
- EEWORLD University - Common techniques for designing low-power DC-DC converters
- 【DFRobot wireless communication module】Hardware analysis