I've tried to play with the code it works now, but I am not getting what I am expecting, can you please guide me to output what I expect.
so the below is the door that is meant to be connected by pressure ramp and timer. This door activates at 310.5, deactivates at 311, then reactivates at 332. After 332s I want this door be available based on the pressure ramp range 0 to 30. Then there is another pressure ramp for another door, that is not initially activated, however it activates for a range of 30 to 50 pa, and the code is presented after the spacing (I want this door to also activate or deactivate based on the pressure ramp and for time greater than 332s. What happens is that both doors stay activated.
&RAMP ID='2nd gap_RAMP', T=310.375, F=-1.0/
&RAMP ID='2nd gap_RAMP', T=310.625, F=1.0/
&RAMP ID='2nd gap_RAMP', T=310.875, F=1.0/
&RAMP ID='2nd gap_RAMP', T=311.125, F=-1.0/
&RAMP ID='2nd gap_RAMP', T=331.875, F=-1.0/
&RAMP ID='2nd gap_RAMP', T=332.125, F=1.0/
&CTRL ID='2nd gap', FUNCTION_TYPE='CUSTOM', RAMP_ID='2nd gap_RAMP', LATCH=.FALSE., INPUT_ID='TIME'/
&DEVC ID='TIME', QUANTITY='TIME', XYZ=0.0,0.0,0.0/
&CTRL ID='FD1', FUNCTION_TYPE='SUBTRACT', INPUT_ID='p_up 0.1','p_down 0.1'/
&DEVC ID='F1', QUANTITY='CONTROL VALUE', CTRL_ID='FD1', XYZ=0.0000000E000,0.0000000E000,0.0000000E000, UNITS='Pa'/
&CTRL ID='cycling timer', FUNCTION_TYPE='CUSTOM', INPUT_ID='F1', RAMP_ID='myramp' /
&RAMP ID='myramp',T=0.1,F=-1/
&RAMP ID='myramp',T=1.1,F=1/
&RAMP ID='myramp ',T=29.9,F=1/
&RAMP ID='myramp ',T=30.1,F=-1/
&CTRL ID='SOD', FUNCTION_TYPE='ALL', INPUT_ID='2nd gap','cycling timer' /
(2nd door - Want to activate this after 332s if pressure range is 30 to 50)
&CTRL ID='FD1', FUNCTION_TYPE='SUBTRACT', INPUT_ID='p_up 0.1','p_down 0.1'/
&DEVC ID='F1', QUANTITY='CONTROL VALUE', CTRL_ID='FD1', XYZ=0.0000000E000,0.0000000E000,0.0000000E000, UNITS='Pa'/
&CTRL ID='cycling time', FUNCTION_TYPE='CUSTOM', INPUT_ID='F1', RAMP_ID='myram' /
&RAMP ID='myram',T=30.2,F=-1/
&RAMP ID='myram',T=31.2,F=1/
&RAMP ID='myram ',T=49.9,F=1/
&RAMP ID='myram ',T=50.1,F=-1/