Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 Communication with Daisy Chain

I am having trouble communicating with two mass flow controllers that are connected in a daisy chain configuration.  I am able to give them each an address (simply 111 and 222) by connecting them individually.  I set and confirmed the address change in the Basic Serial Write and Read program.  However, when I connect the controllers in a daisy chain (which I believe is the preferred connection scheme) and send the command @@@254CA?;FF, the output is garbled and various error messages appear (BFFF0015, BFFF006B - Framing Error)

 

I need to be able to send different commands to each controller separately.  Any help would be greatly appreciated.

 

Thanks!

 

Ben

0 Kudos
Message 1 of 9
(10,133 Views)

I mistakenly wrote that I am using a RS-232 interface, when I am actually using a RS-485 interface.  The mass flow controllers are MKS 1179A's. 

 

Ben

0 Kudos
Message 2 of 9
(10,130 Views)

Ben, Did you remove the termination jumpers from all but the futhest down-stream device?


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 9
(10,121 Views)

I don't think the MKS 1179A's have termination jumpers.  

0 Kudos
Message 4 of 9
(10,103 Views)

Aren't you supposed to include the address of the device in the command so the intended device knows that the command is for it to process?

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 9
(10,101 Views)

That's true for individual commands, but the @@@254CA?;FF command should return all the devices and their addresses.  You may have a point though.  Should I just ignore these errors and write the code for each controller with the addresses given and see if it works?  I figured that wouldn't work unless these errors went away.

0 Kudos
Message 6 of 9
(10,097 Views)

Yes, I'd try a command addressed to just one of the controllers first.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 7 of 9
(10,093 Views)

@bcaire wrote:

I don't think the MKS 1179A's have termination jumpers.  


RTM- they do.  so, did you double terminate the bus?


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 9
(10,088 Views)

Setting a termination jumper sounds very logical to me, but I can't find anything in the manuals that discusses the topic.  I think that I do not have to do that.

 

I have written code that calls on the different addresses and it seems to work fairly well.  I can send individual commands and the controllers respond accordingly. 

 

However, now I'm seeing that the serial port is resetting itself about every 20 sec.  This is also affecting the temperature data that is coming through the same serial port.  Seems like a code error now. 

 

Thanks!

 

Ben

0 Kudos
Message 9 of 9
(10,077 Views)