LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Longer's FK1-100Z pump with RS485/232 connection

Solved!
Go to solution

Hello everyone,

I am trying to control a perilstatatic pump (Longer's FK1-100Z) with RS485 connection (there is a RS485 to RS232 unit, so it is actually RS232).

Attached are the pump protocol and opertion manual.

I tried to control the pump first with the MAX, after changing "COM1" paramaters to: 1200 baud rate, 8 data bits, even parity and 1 stop bit. I wrote the example (E9 01 0C 57 44 47 00 64 0A 00 0A 00 E8 00 01 03 D7) shown in the last page of the protocol, and non of the paramates was changed. I also tried to write in LabVIEW, but again nothing was changed.

Am I missing something? I afraid that there is a problem in the pump.

 

Thanks in advance,

Zach

 

 

Download All
0 Kudos
Message 1 of 3
(2,599 Views)
Solution
Accepted by topic author zachshi

You forgot to attach your VI you tried to do this with.

 

But most likely you simply entered that string as it shows in the manual but this protocol is binary. Every two character number in that string is in reality the hex value of a single byte that is sent to the device!

 

To enter it like that in a LabVIEW string you need to change the display mode of the string to Hex Display mode. Or you can create an array of u8 numbers and change the display mode for the numeric to Hex and then convert the array to a string with the Byte Array to String node.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(2,536 Views)

Thanks a lot!

It solved the problem.

0 Kudos
Message 3 of 3
(1,920 Views)