09-27-2017 08:49 AM
Hello all ,
i am going to communicate with Servo drive (RS485) .in servo drive I am getting the addresses in Hexadecimal format . Labview modbus accepts directly or i need to convert the hexadecimal numbers into decimal number and then i need to give as input ??
Note: i will use RS 485 to RS 232 converter to PC
i am a beginner in MODBUS library. So attach any link for MODBUS .vi's learning tutorial too
09-27-2017 09:10 AM
How a number is it's visualised (hexadecimal, decimal, octal, binary) does not change it's value.
Modbus probably excepts integers. These integers have values. The same integer value can be shown as hexadecimal, decimal, octal, binary, it does not change the value.
09-27-2017 04:05 PM
Yup, the way data is displayed to the developer is just that, and the actual values on the wire can vary from the display.
If the wire is blue it is an integer, and probing it will by default show the decimal value of it. But if you right click a constant or control to have Visible >> Radix, then you can see what the value will look like in hex, decimal, Octal, or various other modes. These can make for some very flexible viewing modes like displaying doubles as relative time in HH:MM:SS format.
https://forums.ni.com/t5/LabVIEW/How-does-subtracting-a-double-from-a-time-work/m-p/3652180#M1025894
This is just displaying the data in a different form, but the data type in this example is always a double. If you have an integer change the display to the mode you want. If you have a string, you can turn it into an integer with scan from string, or using the conversion palette under string. Post more code to get better examples of what you need.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-28-2017 12:46 AM
Thank you Hooovahh !!
i am having multiple registers so I am going to put it in an array. For every numeric properties, i need to change that as a Hexadecimal mode
or in an advanced mode, i need to fix as a hexadecimal mode huh
i have attached a few images .and guide me
09-28-2017 06:37 AM
What guidance do you need? Your pictures show you know how to go in and change the display to hexadecimal.
09-28-2017 07:39 AM
@Mrtechie wrote:
i am having multiple registers so I am going to put it in an array.
Well then you are in luck. In an array all elements in the array share the same properties, and all elements only vary by value. This means if you turn on the radix display (or change the Display Format) for any element, that format will be changed for all elements in the array.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord