07-25-2011 11:01 AM
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
07-25-2011 11:48 AM
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
07-25-2011 01:26 PM
Ben, Did you remove the termination jumpers from all but the futhest down-stream device?
07-25-2011 04:31 PM
I don't think the MKS 1179A's have termination jumpers.
07-25-2011 04:44 PM
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
07-25-2011 04:50 PM
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.
07-25-2011 05:52 PM
Yes, I'd try a command addressed to just one of the controllers first.
-AK2DM
07-25-2011 06:40 PM
@bcaire wrote:
I don't think the MKS 1179A's have termination jumpers.
RTM- they do. so, did you double terminate the bus?
07-26-2011 12:21 PM
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