Word size?

kdcui

Lifetime Supporting Member
Join Date
Dec 2007
Location
USA
Posts
386
Does word size vary with PLC? I've noticed that on AB and GE Fanuc programs a word is defined at 16 bits. However in computer language (say C++) a word is defined as 32 bits (4 bytes). Does word size vary on other controllers? Why is there a difference in the definition of the size of a word (16 vs 32 bit)?

Thanks.
 
AB ControlLogix define data types exactly like that (SINT, INT, DINT, REAL, etc). To me, 16 bits will always be a word, not an INT, but then that's just the way I've always worked.

Regards
Keith
 
It also appears to me that the IEC-61131 PLCs, like Beckhoff and Bosch Rexroth also define INT as being 8 bits, but my experience is still limited with those
 
One thing to bear in mind is the terms bit,byte and word are not really interchangeable Int, Dint and Float.

Thats because bit, byte and word relate to the size of the 'box' while Int, Dint and Float tell you what to expect in the 'box'.
A signed integer and an unsigned integer both use the same amount of bits, as do a Dint and Float but theyre not the same thing.
 
In all modern PLCs I know, word is 16-bit for description of PLC memory size or instruction length. It has nothing with data type, which may occupy from 7-bit (ASCII) to 64-bit.
 
I always considered a word to be the smallest addressable unit of memory - note that I said addressable, not accessible, as smallest accessable is always a bit.

A 16 bit processor (or a 32 bit processor on a 16 bit bus) fetches 16 bits from memory at a time, making an INT a word. To access a bit or byte it still fetches 16 bits and masks what it doesn't need.

A 32 bit processor on a 32 bit buss fetches 32 bits at a time, making a DINT a word for that processor. To access an INT or SINT or BOOL it still fetches the 32 bit word and then masks what it doesn't need.

A SLC500 word is 16 bits. A ControlLogix word is 32 bits.
 

Similar Topics

Hi All, How do I set a password to PLC using Proficy machine software 9.5-9.8 or some other way? I as using Emerson CPE305 CPU. Thanks.
Replies
2
Views
353
I have an AB micro820 analog inputs takes word datatype to scale my input to 0-100% , i need to know the word datatype range does anyone knows...
Replies
3
Views
153
I have a modicon quantum plc and and i have a stu file that have the program but when trying to download it to the plc. it gives not built and...
Replies
0
Views
78
Hi. I'm struggling over some basic stuff here. 41001 I is a 16 bits integer that I'm able to read with InTouch. What I need to do is to read...
Replies
1
Views
94
  • Locked
  • Sticky
Hi folks, If you're having any login issues kindly send an email to [email protected] or use the 'contact us' link on the bottom of every page to get...
Replies
0
Views
1,095
Back
Top Bottom