4. Control system after the transformation of embedded soft PLC
Take the test relay TV5 experiment as an example. The requirements are as follows: 5 relays are tested each time, and the operating frequency of each relay is 5s on and 5s off. According to the requirements, the best result of the test is that each relay uses 6 TV loads, that is, each TV load is 5s on, 55s on the tube. The input points are: switch, detection, reset M, stop number setting amount N times, action frequency setting L, normally open / contact conversion. Among them, M = the number of test products, N, L number is determined by actual needs. The algorithm is as follows:
- Set a cycle to minimize the cumulative error;
Design the action time and action frequency, and the number of actions in the cycle;
Design related functions such as linkage, interlock, emergency stop and reset;Execution actions and feedback are compared against product-related criteria, decision results, and set-break procedures.
Modular programming and programming, each module is called by the main program, and in order not to malfunction, the current harmonics and impact requirements of high power supply should also be considered. Using an algorithm to optimize the design, 5 relays move every 2s, and 5 just 10s. One of the action frequency procedures is as follows:
The corresponding actions are as follows:
The program checkout procedure is as follows:
Figure 4 TV load voltage and current waveform
Previous page next page
led chip 5050,chip led 5050,smd led 5050,smd led 5050 white,smd led 5050 datasheet
SHENZHEN YGHQ Optoelectronics Co.,ltd. , https://www.leds-smd.com