using Math instruction alot in program, will it harm ?

leonlai

Member
Join Date
Jun 2011
Location
WA
Posts
96
Hi guys,
I have a stupid question, I used a lot of Math & Compare instruction (MUL, CPT, .. )in my PLC, will it harm or one day PLC will cause Faults after a long time of run ???

for example, PLC run good now, then after million scans PLC and thousands time of ON & OFF power supply, any residuals value somewhere somehow left in PLC and cause STUCK ???

If yes, how can I prevent it happened in furture ?
If not, may be I think too much >_<

thanks
 
You didn't mention the type of PLC, but I think in general the answer is the same for all.

The main thing thing that lots of math instructions, or any instructions for that matter will affect is the scan time.

Most, if not all, PLCs go through some type of power up housekeeping step to clean up all those things you are worried about.
 
No, the instruction types used would not cause your PLC to fail faster or slower.

Unless you do things like pulsing relay outputs very quickly... or other programming methods that could cause physical wear.
 
maths are oke, however for next loops with exits and strange return instructions can cause problems with the stack pointer.
 
The only thing that i would caution you about is the math overflow / underflow bit.

in an ab plc, if that bit is set, it will fault the processor.

i have the habit of unlatching the math bit at the end of the program.

regards,
james
 
James I've only ever seen that fault a SLC and you can solve that by placing a unconditioned OTU S:5/0 rung at the end of your LAD2 file.
 

Similar Topics

Hello all, I am fairly new to Allen Bradley programming so bear with me.. ( I have prgogrammed microcontrollers and computers before). Im working...
Replies
45
Views
11,922
Hello Guys,Any one please tell me how to scale an analog sensor which is 0-10v and it has to be scaled to 0-8v or something using math...
Replies
7
Views
3,689
have a cpm1a plc it has a mado1 analog expansion module, that has a 4-20ma analog float connected to it. the cpm1a does not support the scl...
Replies
7
Views
5,919
Greetings to all, someone recently posted a couple of forum requests (here and here) which went something like this: this got me to...
Replies
51
Views
88,269
I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
45
Back
Top Bottom