Converting a decimal number to HEX.

NoName

Member
Join Date
Sep 2003
Location
Domžale
Posts
273
Can I convert a decimal nubmer to HEX in step 7,and if it is,would you please guide me through it(wich function tu use,and so on...)

I have to send a HEX value to a motion control inverter.I cannot send a decimal value unfortunatley.The Decimal value is to be entered in a OP(C7 635), and then it should be converted and sent to the motion control inverter.

Thank you.
>Ales<
 
Last edited:
Do you need to send a STRING in hex?

16 or 32 bit integers/words have no actual differences between decimal and hex.

Decimal Integer 15 = Binary 0000 1111 = Hex 0F
 
Yes i need to send a string.

I've configured a inputfield in Protool,so that it send a double intiger to step7 and then this word is sent forward to the motion control.The sent word is distance in mm.And i think that it should work.
Thank you.I'll check back if there are any problems.
>Ales<
 

Similar Topics

I am having problems expressing an ANALOG OUTPUT 16bit INT word (0-10V Proportional Valve Voltage) as a REAL decimal number. From my...
Replies
6
Views
9,047
Well I am trying to cleanly convert a decimal value in a DINT to the corresponding bit in a different DINT So if I have the number 11 on in...
Replies
11
Views
1,915
Do any of you Excel gurus know of a VB code or function that will convert ASCII text into it's decimal equivalent? I'm not VB savy at all. I...
Replies
3
Views
5,800
We have an AB 1395 drive controlled by a PLC-5/40 via RIO. We are developing a monitoring computer using RSView32. This computer will poll the...
Replies
12
Views
7,827
How can i convert negative decimal value(-100) to hexadecimal.
Replies
3
Views
7,601
Back
Top Bottom