Description
A high-efficiency input circuit automatically accepts either ac or dc input voltages. The 120/240 V ac or 125 V dc input circuit (P0922YU) provides a range of 85 to 265 V ac at 47 to 63 Hz operation (or 108 to 145 V dc) to meet world-wide power requirements. The 24 V dc power supply input circuit (P0922YC) accepts a range of 18 V dc to 35 V dc.
1. The program compiled should comply with the relevant regulations of the PLC used
The main thing is to accurately understand and use instructions correctly. There are many similarities among various PLC instructions, but there are still some differences. For those with experience in using PLC, when choosing another unfamiliar model for programming and design, it is important to understand the instructions of the new model of PLC again, otherwise errors may occur.
2. Make the program as concise as possible
Short programs can save memory, simplify debugging, and also save time executing instructions, improving response speed to input. To make the program short, it is necessary to pay attention to the programming method, use instructions well, use instructions skillfully, and be able to optimize the structure. To achieve a certain function, generally speaking, when achieving the same goal, using powerful instructions may result in fewer program steps than using single function instructions.
3. Make the program as clear as possible
This not only facilitates program debugging, modification, or supplementation, but also facilitates others to understand and read the program. To make the program clear, it is necessary to pay attention to the hierarchy of the program and emphasize modularity and standardization. Especially when programming complex programs, it is important to pay more attention to the level of the program, accumulate one’s own and absorb the experience of others, organize some standard programs with typical functions, and try to modularize the program as much as possible. Like some commonly used subroutines in computers, it can be moved around and used, making the design simple and easy for others to understand.
4. To ensure that the programmed program meets the performance indicators and working requirements of the PLC
The number of instructions in the program should be less than the capacity of the selected PLC memory, which means that the program can be stored in the PLC, and the number of input and output points used should be within the range of I/O points of the selected PLC. The scanning time of the PLC should be less than the monitoring time of the selected PLC program operation. The scanning time of PLC not only includes the time required to run user programs, but also includes the time required to run system programs, such as I/O processing and self monitoring.
5. The programmed program can run in a loop
The working characteristic of PLC is to run the same program repeatedly and continuously. The operation starts from the initialized state and returns to the initialized state once the control object has completed its work cycle. Only in this way can the control object also receive the same control in the new work cycle.