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

I'm having a hard time either remembering or figuring this out. I have a PLC program and the associated HMI program. I know what this means...
Replies
4
Views
96
Hello, I am fairly experienced programming and modifying existing FTView ME programs. I have also used FTView SE to make modifications to a...
Replies
5
Views
131
my ccw softwer stops working when i add and try to open a ladder program.
Replies
0
Views
78
I have an old Sentry Palletizer (S/O Number 3007 / Serial Number 1172) that has lost its program as the backup battery died years ago. I can...
Replies
0
Views
164
Hi All, As a precaution my company has been collecting copies all the HMI and PLC programs. I have recorded copies of most of our sites...
Replies
0
Views
91
Back
Top Bottom