Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Ask: What's the difference between INT and WORD among the data types in Step7?
Ask: What's the difference between INT and WORD among the data types in Step7?
thank you, sir. I found a little explanation from my friend, which is very good, just like yours! Word: Two adjacent Byte form a Word to represent an unsigned number, so the word is 16 bits. For example, IW is composed of IB and IB1, where I is the region identifier, W is the word, and is the start byte of the word. It should be noted that the first byte of a word (such as "" in the above example) must be even. The range of words is ~FFFF in hexadecimal (that is, ~ 65536 in decimal). When programming, you should pay attention to it. If you have already used IW, you should be especially careful if you use IB or IB1 again. INT: Integer is a signed number, the highest bit is a sign bit, 1 means a negative number, and means a positive number. The range is-32768 ~ 32767.

view the original post > >