Program Minor Fault Help

Cherokee 96

Member
Join Date
Jan 2016
Location
L'Amoreaux
Posts
31
Need some help guys
Looked up the error, and this is what I found.please have a look at the attachment.
Monitored the tag, its not being used anywhere else.
I have no idea what this is doing.By the wording of the tag looks like some kind communication scan.I might be wrong(still learning) Its adding the value and writing ,as soon as it goes up more than 32768, the fault shows up. There should be reset I guess.

Thanks

BrH Minor Fault.jpg Minor Error BH.jpg
 
ComExtN101[x] must be an INT[x] array tag.

16-bit INT datatypes are always Signed, so they have a range of -32768 to +32767.

Since you are adding 1 to this integer value every scan, you will get this overflow every 32767 program scans.

A simple workaround would be to condition the ADD with a LES instruction so it only executes if the tag is less than 32767.

Then add a rung so that if the tag is equal to 32767, it is set to zero.
 
ComExtN101[x] must be an INT[x] array tag.

16-bit INT datatypes are always Signed, so they have a range of -32768 to +32767.

Since you are adding 1 to this integer value every scan, you will get this overflow every 32767 program scans.

A simple workaround would be to condition the ADD with a LES instruction so it only executes if the tag is less than 32767.

Then add a rung so that if the tag is equal to 32767, it is set to zero.

Thanks Ken
Problem solved
 

Similar Topics

Hi, i am using DVP-14SS2 PLC, after program written to plc, when power is reset, plc doesn't run. always need to connect to pc for the run mode.
Replies
0
Views
1
Hi all, hope you are having a great day, I am in need of your help to create a AOI or program that does this kind of job: I have a IO Link...
Replies
22
Views
338
Hi. I have a 222 CPU. I need to recover the program from the eeprom memory. Is it possible?
Replies
1
Views
96
Can we use a Simotion D455 ethernet port x127 as a gate, to access S7-1500 plc Tia Portal program ? In the Simatic manager, we used Netpro to do...
Replies
2
Views
88
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
171
Back
Top Bottom