You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old April 26th, 2011, 04:43 AM   #1
fhervrylesestoso
Member
Philippines

fhervrylesestoso is offline
 
fhervrylesestoso's Avatar
 
Join Date: Apr 2011
Location: Manila, Philippines
Posts: 295
Difference of Integer and Word..

Hi Guys...

Can anyone tell me the difference between Integers and Words?
quite confuse because..
some PLC uses Integers some PLC uses word when it comes to analog input..


Thanks guys!
  Reply With Quote
Old April 26th, 2011, 04:58 AM   #2
Binaural
Member
Australia

Binaural is offline
 
Join Date: Jul 2005
Location: Sydney
Posts: 366
A word is always 16 bit, but the size of an integer depends on the architecture. For example, the Allen Bradley Controllogix have a single integer type which is 8 bits, a double integer type which is 32 bits long, and a regular integer type which is 16 bits long (this is little used). The concept to grasp here is that an integer is just a discrete number, the size is only important in determining how large a discrete number the memory allocated for it can hold.
  Reply With Quote
Old April 26th, 2011, 05:40 AM   #3
TurpoUrpo
Lifetime Supporting Member
Finland

TurpoUrpo is offline
 
Join Date: May 2008
Location: Switzerland
Posts: 1,561
Quote:
Originally Posted by Binaural View Post
A word is always 16 bit...
Not true.


In plc, word and int usually (dont know any deviation) are 16bits.
  Reply With Quote
Old April 26th, 2011, 06:57 AM   #4
Homer_BL
Member
Bosnia and Herzegovina

Homer_BL is offline
 
Join Date: Feb 2003
Posts: 252
Quote:
Originally Posted by TurpoUrpo View Post
Not true.


In plc, word and int usually (dont know any deviation) are 16bits.

I dissagree. Word is 16-bit.
  Reply With Quote
Old April 26th, 2011, 07:07 AM   #5
TurpoUrpo
Lifetime Supporting Member
Finland

TurpoUrpo is offline
 
Join Date: May 2008
Location: Switzerland
Posts: 1,561
Quote:
Originally Posted by Homer_BL View Post
I dissagree. Word is 16-bit.
Did you open the link?
  Reply With Quote
Old April 26th, 2011, 07:12 AM   #6
Homer_BL
Member
Bosnia and Herzegovina

Homer_BL is offline
 
Join Date: Feb 2003
Posts: 252
No, i did not.
I rather open paper books from known authors.
  Reply With Quote
Old April 26th, 2011, 07:17 AM   #7
TurpoUrpo
Lifetime Supporting Member
Finland

TurpoUrpo is offline
 
Join Date: May 2008
Location: Switzerland
Posts: 1,561
Quote:
Originally Posted by Homer_BL View Post
No, i did not.
I rather open paper books from known authors.
Oh that is nice. Please scan some page for us that we can also learn about word size of 16 bits in all architechtures.

Yes in plc it most likely is always 16bits (i have no reason to say always as i have not seen all plc's in this world), but it does not make that it is always 16bits in context of computing in general.
  Reply With Quote
Old April 26th, 2011, 07:20 AM   #8
Homer_BL
Member
Bosnia and Herzegovina

Homer_BL is offline
 
Join Date: Feb 2003
Posts: 252
TurpoUrpo, finish some automation college, it's is also a good way to learn, like I did.

Last edited by Homer_BL; April 26th, 2011 at 07:36 AM.
  Reply With Quote
Old April 26th, 2011, 07:24 AM   #9
TurpoUrpo
Lifetime Supporting Member
Finland

TurpoUrpo is offline
 
Join Date: May 2008
Location: Switzerland
Posts: 1,561
Quote:
Originally Posted by Homer_BL View Post
TurpoUrpo, finish some automation college, it's is also a goog way to learn, like I did.
Do you learn being arrogant in there too? Or is it just you?

I provided source. You did not.

Look, i attached a picture of you!
Attached Images
File Type: png trollface.png (3.3 KB, 500 views)
  Reply With Quote
Old April 26th, 2011, 07:50 AM   #10
jimbo3123
Member
United States

jimbo3123 is offline
 
Join Date: Sep 2003
Location: Detroit Area
Posts: 550
Quote:
Originally Posted by Homer_BL View Post
TurpoUrpo, finish some automation college, it's is also a good way to learn, like I did.

That may be true to learn the application of the basics.
For an in-depth education, the better choice would be a university course on computer architecture as part of a computer engineering degree.

Here's what I found in my text book:

"the meaning of word depends on the particular processor. Typical word sizes are 16, 32, 64, and 128 bits, with the 32-bit word size being the most common form for ordinary computers these days, and the 64-bit word growing in popularity". Murdocca, Heuring, Principals of Computer Architecture, Prentice Hall 2000 P. 101

It sounds to me like Turpo was right on with his link to the Wikipedia article.
  Reply With Quote
Old April 26th, 2011, 07:54 AM   #11
The Plc Kid
Member
United States

The Plc Kid is offline
 
The Plc Kid's Avatar
 
Join Date: Feb 2009
Location: Macon, Georgia
Posts: 3,233
It depends on the processor type and Architecture.

The term WORD has different meaning depending on how it's used. It can either mean a machine word, or a type with a specific size. In x86 assembly language WORD, DOUBLEWORD (DWORD) and QUADWORD (QWORD) are used for 2, 4 and 8 byte sizes, regardless of the machine word size

A word is typically the "native" data size of the CPU. That is, on a 16-bit CPU, a word is 16 bits, on a 32-bit CPU, it's 32 and so on.
And the exception, of course, is x86, where a word is 16 bit wide (because x86 was originally a 16-bit CPU), a DWORD is 32-bit (because it became a 32-bit CPU), and a QWORD is 64-bit (because it now has 64-bit extensions bolted on)

In plc systems a word is always 16 bits that i have seen but since i have not worked with all plc systems i will not say that they are all 16 bit words.
  Reply With Quote
Old April 26th, 2011, 07:54 AM   #12
TurpoUrpo
Lifetime Supporting Member
Finland

TurpoUrpo is offline
 
Join Date: May 2008
Location: Switzerland
Posts: 1,561
Quote:
Originally Posted by jimbo3123 View Post
That may be true to learn the application of the basics.
For an in-depth education, the better choice would be a university course on computer architecture as part of a computer engineering degree.

Here's what I found in my text book:

"the meaning of word depends on the particular processor. Typical word sizes are 16, 32, 64, and 128 bits, with the 32-bit word size being the most common form for ordinary computers these days, and the 64-bit word growing in popularity". Murdocca, Heuring, Principals of Computer Architecture, Prentice Hall 2000 P. 101

It sounds to me like Turpo was right on with his link to the Wikipedia article.
Thanks.

Homer did not apparently get that, when one uses wiki as reference, one usually knows what to look. Wiki is easy, fast reference. Mostly articles are right. But that is another discussion about credibility of wiki articles.
  Reply With Quote
Old April 26th, 2011, 07:54 AM   #13
Sergei Troizky
Member
Canada

Sergei Troizky is offline
 
Join Date: Oct 2004
Location: Montreal
Posts: 729
Quote:
Originally Posted by fhervrylesestoso View Post
Hi Guys...
Can anyone tell me the difference between Integers and Words?
quite confuse because..
some PLC uses Integers some PLC uses word when it comes to analog input..
Thanks guys!
In general, word is a set of bits. Typically it is 16-bit long in PLC.
The word content may be or may be not interpreted as a number.
Integer is an unambiguous numerical value format, and also typically it is 16-bit long in PLC.

Last edited by Sergei Troizky; April 26th, 2011 at 07:58 AM.
  Reply With Quote
Old April 26th, 2011, 07:55 AM   #14
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is online now
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: ᚴᚬᛒᛅᚾᚼᚬᚠᚾ
Posts: 15,572
Quote:
Originally Posted by fhervrylesestoso
some PLC uses Integers some PLC uses word when it comes to analog input..
Please state exactly which PLCs "some PLC" are.
__________________
Jesper
NOTICE:
JesperMP can be impolite, has passive-aggressive tendencies and may use sarcasm !
Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ
  Reply With Quote
Old April 26th, 2011, 07:59 AM   #15
Homer_BL
Member
Bosnia and Herzegovina

Homer_BL is offline
 
Join Date: Feb 2003
Posts: 252
Jumbo, I also took a university corse and I am a bachelor.
But, who realy helped a begginer who asked for a help?
You, wo tells him about Abraham and Moses, or me, who told him that in THIS conference, about PLC-s, WORD IS ALWAYS 16-bit?
Pseudo-intelectual talks intended to confuse someone or intended to present someone as an 'expert', do not help anyone.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Pls help sree46 LIVE PLC Questions And Answers 2 December 13th, 2009 08:36 AM
what are Integer, Real #, word, Hex, bin, etc Siemener LIVE PLC Questions And Answers 7 July 29th, 2008 12:46 PM
Int, Real, Word? ason LIVE PLC Questions And Answers 11 July 27th, 2008 07:04 AM
Confused "again" S7 indirect Thim LIVE PLC Questions And Answers 17 July 22nd, 2008 05:47 PM
Integer addressing downey18 LIVE PLC Questions And Answers 15 February 29th, 2008 04:19 PM


All times are GMT -4. The time now is 09:12 AM.


.