INT Conversion

This is for remote display only. The 2 bit difference is so little as far as the display goes it's not an issue. The actual filling controls is direct hard contacts from the scale. It's a very messy program that I inherited from the Italian company that provided the filler. I don't believe they had any AB experience at all based on what I see in the program.

Whoever has to maintain this after you(or future you) will hate you for that 'not an issue' difference. So if you're going to stick with it, document it...
 
Thank you daba for pointing out my Doh! moment. You can't COP an INT to a DINT because of the size mismatch and I feel pretty dumb for saying that out loud.

It does look like the BTD is the cleanest way to do this.
 
Thank you daba for pointing out my Doh! moment. You can't COP an INT to a DINT because of the size mismatch and I feel pretty dumb for saying that out loud.

It does look like the BTD is the cleanest way to do this.

No sweat OkiePC, we all have dumb moments, only mine are getting longer and more frequent, lol
 

Similar Topics

Im trying to use a MSG instruction to get the serial numbers of all addon cards and display the serials on a HMI interface. I have the logic done...
Replies
2
Views
546
Hello, I am having some trouble converting my Elapsed Time from TIME data type to INT data type so that I can display it on my HMI. While I can...
Replies
6
Views
1,715
Long time viewer, first time poster. First I want to start, yes I know, PLC-2 and PLC-5 do not belong in manufacturing plants anymore, but...
Replies
5
Views
2,070
Hello, I'm taking in two 16 bit ints from the field via modbus, one low order and one high order to combine into their proper 32-bit form. I've...
Replies
1
Views
1,266
I have been working on an existing project for some time now and restructured the whole program into POUs instead of a singular main. Everything...
Replies
18
Views
3,203
Back
Top Bottom