04-09-2023 09:54 PM
04-09-2023 10:43 PM
How are you communicating with this sensor? Which Modbus library are you using? You might want to share the code so that we can understand better.
04-09-2023 11:30 PM
Hi, i dont have the code..
but this sensor got three kind of communication mode.Im currently doing the mode 0 which will provide torque and speed value.
mode 2 only provide torque value
i will send the picture.
04-09-2023 11:34 PM
I am new to labview. For mode 0 need to use modbus library?
04-10-2023 07:54 AM - edited 04-10-2023 07:54 AM
Based on the screenshots of the user manual you shared, Mode 0 of HEXactive upload protocol is meant for the upper machine designed by the company.
Since you mentioned that you don't have any code, I guess you are using the NI-VISA Interactive Panel right now. NI-VISA sends and reads the data in the ASCII format, thus you should use the Mode 2 of ASCII Active Upload Protocol instead. In page 6 of the manual, it states that:
A piece of its data format such as: 2B 30 2E 30 30 30 31 0D
This aligns with what you are seeing currently.
04-10-2023 09:13 AM
So you get a raw string of six bytes, which consists of three 16bit values. The first is toque (U16), the second is speed (I16) and the third is a checksum. Once you can read these size bytes into LabVIEW, the rest is trivial.
04-10-2023 10:41 PM
So for mode 0, im not able to use NI-VISA to read the value?
For mode 2, it only sends torque value. I test it out and is able to receive the torque value.
04-10-2023 10:42 PM
I uses VISA-Ni to read but get random value
04-13-2023 10:30 AM
@abcdefgjdjejd wrote:
I uses VISA-Ni to read but get random value
You need to be significantly more specific.
04-14-2023 08:19 AM
thanks for replying me, I planned to use modbus