4) 編制 PLC 程序并進行模擬調試
在繪制完電路圖之后,就可以著手編制 PLC 程序了。當然可以用上述方法編程。在編程時,除了要注意程序要正確、可靠之外,還要考慮程序要簡捷、省時、便于閱讀、便于修改。編好一個程序塊要進行模擬實驗,這樣便于查找問題,便于及時修改,好不要整個程序完成后一起算總帳。

The purpose of drawing various circuits is to connect the address and name designed by the input and output of the system. This is a crucial step. When drawing the input circuit of PLC, we should not only consider whether the connection point of the signal is consistent with the name, but also consider whether the voltage and current at the input end are appropriate, and also consider the reliability and stability conditions under special conditions. In particular, it is necessary to consider whether the high voltage can be led to the input end of the PLC. If the high voltage is led to the input end of the PLC, it will cause great damage to the PLC. When drawing the output circuit of PLC, we should not only consider whether the connection point of output signal is consistent with the name, but also consider the load capacity and voltage resistance of PLC output module. In addition, the output power and polarity of the power supply should be considered. In the drawing of the whole circuit, we should also consider the design principles and strive to improve its stability and reliability. Although it is convenient and flexible to control with PLC. But the circuit design still needs to be cautious and comprehensive. Therefore, when drawing the circuit diagram, we should consider carefully where to install the button and where to install the switch.4) Compile PLC program and conduct simulation debugging
After drawing the circuit diagram, you can start to compile the PLC program. Of course, you can program in the above way. When programming, in addition to paying attention to the correctness and reliability of the program, we should also consider that the program should be simple, time-saving, easy to read and easy to modify. A simulation experiment should be carried out to compile a program block, which is convenient for finding problems and modifying in time. It is best not to calculate the general ledger together after the completion of the whole program.







客服1