08-19-2010 08:36 AM
So I have the same control loop with different channels. I want to run them at the same time. When I run the VI I switch on the poppet button in order to pump hydraulic oil into the hydraulic circuit. Then I'll set the number of cylinder cycles and ultimate hold. When the cylinder reaches the maximum value a digital signal is sent to the outgoing valve of the cylinder and when 0 is reached a signal is sent to the ingoing valve. Also when I change the prop. Pressure control it will do this for both controls (big and small cylinder). This is not good. I want to control this separately.
Regards,
Michael
08-19-2010 08:53 AM
Here is what I am thinking. It does not change the way you were doing things only make it much easier to work with because now we can only change the loop that we need to. Take a look at what I did I think you will appreciate what I did in the code. This will be especially important when we start trying to update the analog outputs and the digital outputs.
08-19-2010 09:50 AM
I don't think I can add something useful to it today. First thing in the morning!
Thanks for your help aeastet,
Michael
08-25-2010 04:15 AM
Dear aeastet,
I'm very sorry but I have done it another way. The example that you had posted continued to cause problems. That's why I went back to the old structure. Everything is working fine now, except a few things. The buttons of the big cylinder still control the buttons of the small cylinder (except the prop. pres. control, this is working fine). I have to customize and extend the event structure somehow in order to make this work. Also I have to make a FG B-G for the big cylinder.
Another problem is that I want to use the analog input from my load cells to control the maximum pressure. I have implemented a conversion factor to convert the forces in Newton to an analog amplitude. When a force is applied the waveform chart shows a distortion but nothing happens in the dbl-node of the small and big cylinder. The waveform chart also shows the signal of one load cell instead of two load cells. Aeastet, I'm sorry for the effort you have put in but I really couldn't handle the example you sent me.
Regards,
Michael
08-26-2010 01:34 AM
Aeastet,
I think I have solved it myself. Anyway, thanks for the effort!
Regards,
Michael
08-26-2010 06:48 AM
The example is working correct, but it's doing the opposite of what it should be doing. The cylinder keeps pushing until a certain force is reached. Instead of pushing it should be pulling. I have made some changes in the machine state so it's starts pulling in stead of pushing but the cylinder doesn't starts pushing when the force is reached. Can you tell me what's wrong with the states in the machine state?
Regards,
Michael