LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to impliment labview/modbus with a Baldor H2 AC motor controller

Looks like you are getting an echo back.  Try sending this packet in hex, "01 03 A0 30 00 01 crc".  You should get the following packet back, "01 03 04 00 XX 00 00 crc"  Where XX is 00 or 01 for stop, 02 for forward and 03 for reverse.  You should be able to manually set the drive to forward and/or reverse and see this value change when you read again.  What brand and model of 485 adapter are you using?

Steve

0 Kudos
Message 11 of 19
(1,497 Views)
Iam getting an echo back,  when i sent the last data packet the drive returns with the same info sent.  The converter iam using is from http://www.rs485.com/pdffiles/converters/ssac44l.pdf, Since the 485 is only 2 wire from the drive i have placed jumpers for the converter.
 
Jarrett
0 Kudos
Message 12 of 19
(1,495 Views)
You should have TX- and RX- tied together and to pin B on the drive then TX+ and RX+ tied together and to pin A on the drive.  Also COM to pin G on the drive.
 
Steve
0 Kudos
Message 13 of 19
(1,491 Views)

The 485 is connected up correctly, something is fairly wierd here...

Jarrett

0 Kudos
Message 14 of 19
(1,489 Views)
The only thing I can think of for you to try is your RS232 cable.  If you are using a null modem try a standard and vice/versa.
0 Kudos
Message 15 of 19
(1,486 Views)
It was my 485 converter, only does full duplex, i switched to a bluetooth serial port now everything works, 
 
Thanks for the help, if you have any other tips or codes to try out let me know
 
Jarrett
0 Kudos
Message 16 of 19
(1,465 Views)

Just curious how you found out what register 41008 did, i can't find any documentation from register 41000 to 49999.  Also how do you read the 32 bit data coming out  from the holding registers

 

Jarrett

0 Kudos
Message 17 of 19
(1,452 Views)
Modbus only reads 16 bit registers, you have to make it 32 bit or floating point inside the labview software. Try typecasting.
0 Kudos
Message 18 of 19
(1,441 Views)
If you look at the end of the holding register table (table 10) registers 41000 - 49999 are actually the parameters.  In the back of your drive manual is a table with all the parameters.  "Unclebump" is right in that MODBUS only supports 16bit data that is why each parameter is two bytes worth of data.  The trick is the first byte received is the LO byte.  To get floating point you combine the two bytes and send through type cast with SINGLE as the 'type'.
0 Kudos
Message 19 of 19
(1,433 Views)