
Tins (Customer) asked a question.
Dear all,
I am building a click plc cpu c0-02dd1-d project which include one analog input module, 2 input module, 2 output module, rs232 serial communication with pc and rs 485 modbus communication with load cell amplifier. The project has around 6 thousand steps ( infact there are unused subroutines I dont think these unused sub routines slow the scan rate). And the scan rate is around 13ms which is slow.
My question
1. Does including analog input module slow plc scan rate significantly? (I have one which I dont need seriously)
2. Do unused subroutines affect scan rate
3. Do communication port affect scan rate significantly? (How to improve)
Note. There is no for loop in my code. But timer maths copy are present.
1. No, not significantly.
2. No, they will consume program steps but not execution time if they are not called.
3. No, not significantly.
You could change from the C0-0x series to the C0-1x series which offers a speed increase of "3 to 10 times faster".
Depending on how your code is arranged, the END instruction can be used conditionally to terminate the scan early. See helpfile Topic CL179.
If you are using subroutines, they can also Return early conditionally. See helpfile Topic CL176.