Method to shorten the scan cycle of PLC program - Database & Sql Blog Articles

SMD aluminum electrolytic capacitor
Programmable Package SG-8018CA(SG7050C) 0.67M~170M
RF cable can be customized for other specifications

Improve the efficiency of plc operation and shorten the execution time when completing the same task.
Reminder: Beginners don't have to care about the practices summarized in this article. They can read the program and read the specifications to complete the functional requirements.
1, you can use "words" when you try to avoid using "double words", you can use integers, try to avoid using real numbers.
2. Give priority to the use of IB, IW, ID, QB, QW, QD (other than hardware connection), followed by M, S;
3, try to avoid data type conversion, have to use, try to use AC to store intermediate variables, reduce the number of conversions. Or, when programming, first reserve the storage space. For example, when VW2 is used to store an integer, VW0 is not used, and the data in VW2 can be directly accessed in the form of VD0.
4. Reduce unnecessary network scanning, classify networks that can be conditionally executed (especially AIW, AQW) into subroutines for conditional calls (such as timed interrupts);
5, use XOR instruction to achieve arbitrary bit reversal (this instruction is slightly difficult, more need to be carefully aligned in debugging, binary number is recommended when programming);
6. Under the premise of ensuring the process requirements, appropriately reduce the frequency of interruptions;
7. The subroutine should minimize the number of conditional judgments, normalize the subroutine import and export parameters, and thus reduce code redundancy.
8. For repetitive and time-consuming tasks, sub-cycle processing should be used; this includes: apportioning the initialization work to multiple cycles. The sampling time of multiple PID loops is slightly different to avoid multiple interrupt calls in the same cycle, which makes the scan cycle more uniform and stable.
9. For subroutine calls with less input data, you can first determine whether the input data has changed. If there is no change (for comparison, refer to the 48th floor), you can skip the subroutine directly, thus reducing the scan cycle.
10. Try to arrange the bit variable in the V zone in V511.7, and arrange the VB/VW/VD variable with high frequency to be placed in V4095, which can shorten the program scanning cycle.
11. If SM0.0 is connected in series with other signals, it only increases the program size and execution time. There is no other function (if the network has already met the necessary contacts on the left side, it is not necessary to connect SM0.0 in series);
12. When there is no need to share signals, multiple instructions placed in the same network will generate additional inbound and outbound operations (which can be converted to STL for analysis), and if not logical, avoid horizontal in-line, which can at least reduce An "and" instruction. The benefit is just to put it in a network and feel a bit compact.
13. Reasonable use of the immediate IO command (to minimize use) saves the conversion time of the PLC processing immediate instructions.
14. Try to use the calculation result memory instead of the transition memory.

3D Relief Back Sticker

If you are tired of the original back of your phone, you should try our 3D Relief Back Sticker. The Back Skin Protective Film on the back can not only bring you a visual change, but also protect the back cover of the phone itself from scratches and collisions. Real 3D touch, personalized and stylish pattern design. Bring you a perfect experience.

In daily use, it can protect the equipment from scratches, dust, impact and other damage.

Long-lasting anti-scratch effect, significantly reducing dust, oil stains and fingerprint stains.

Easy to install, easy to stick to the back of the phone, and will not damage the original appearance of the phone.

With the Protective Film Cutting Machine, you can install the Back Film on different types of mobile phone back shells, including mobile phones, tablet computers and other electronic products. Customization can be completed in 30 seconds with just one click.

If you want to know more about 3D Relief Back Sticker, please click product details to view the parameters, models, pictures, prices and other information about 3D Relief Back Sticker.

Whether you are a group or an individual, we will try our best to provide you with accurate and comprehensive information about 3D Relief Back Sticker!

3D Phone Sticker, Carbon Fiber Back Sticker, 3D Relief Back Sticker, 3D Printing Back Sticker, Phone Skin,Mobile Phone Back Sticker

Shenzhen Jianjiantong Technology Co., Ltd. , https://www.jonsun-sz.com