Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert S7-200 INT into unsigned number?
How to convert S7-200 INT into unsigned number?
Do you need this 16 bit unsigned number? Put it in the register as a 32-bit integer, and then use the.

For example, your 16 unsigned integer is saved in VW2.

MOV VW2、VW32

You used VD30 again.

Reason:

16 unsigned integer range: 0 to 65535.

The value range of 16-bit signed integer is -32768 to +32767 (the highest bit is the sign bit: 1 for negative number and 0 for positive number).

The range of 32-bit signed integers is -2,147,483,648 to +2,147,483,647.