Electric locomotive compressor
#1
Posted 29 August 2018 - 01:30 AM
Is it possible in Openrail?
#2
Posted 29 August 2018 - 07:41 PM
#3
Posted 30 August 2018 - 12:48 AM
Such a switch has most electric locomotives in various variants: ON/OFF, OFF/Automatic/Hand etc. For example the Czech locomotive of the 363 series:
0=the compressor is off
A=automatic, the compressor works as it is now in the OR.
R=hand, the compressor works nonstop. The main air reservoir has a safety valve that opens and closes at the said pressure. For example in automatic mode, the compressor turn off at 9 bar. The safety valve opens at 11 bar and closes at 8 bar.
PK=auxiliary compressor is powered by batteries. Used when the locomotive is airless. Supplies air to the the main switch and pantographs.
#4
Posted 30 August 2018 - 02:48 AM
With right programmation this is be in Openrails possible to realise too...
It is just find someone that can fix that.
I think if this switch is programmad as bridge (swhith in off postion = circuit of compressor is open) this is posible
like circuitbreaker/pantograph down but other context.
Greetz,
Stijn
#5
Posted 30 August 2018 - 04:36 AM
#6
Posted 30 August 2018 - 01:53 PM
{
if (MainResPressurePSI < CompressorRestartPressurePSI && AuxPowerOn && !CompressorIsOn)
SignalEvent(Event.CompressorOn);
else if ((MainResPressurePSI > MaxMainResPressurePSI || !AuxPowerOn) && CompressorIsOn)
SignalEvent(Event.CompressorOff);
if (CompressorIsOn)
MainResPressurePSI += elapsedClockSeconds * MainResChargingRatePSIpS;
}
This piece of the code is in case compressor and his sound, If the lines where AuxPowerOn be expand with "CompressorToggle" or something and this CompressorToggle is
add to rest of code where it need (cabview, events, MSTSlocomotive...) i thin it is possible.
But this is a override button/shalter.
Previous weekend i was make a try in the code for have auxilirysound on wagons, or sound when stream 23/24 is active, i thouth that Aux in PowerSupply system was for it
by testing my compressor on al trains not start :-). I go back to orginal piece of code in case Aux and it was back normal.
Some locomotives have a "SOS" compressor too, and a generator if foodpressur (Main reservoir is under limit, 5 BAR in most EU country's) you can not rise pantographs...
and yu must power on a generator when you reach 5 BAR you can rise pantograph and doe what is need to start normal compressor. (That is in real)
But what i see to on OpenRails is that a locomotive that is coupled on train and set to "UM" off still starts compressor and dynamic brakes too.
Greetz,
Stijn
#7
Posted 31 August 2018 - 09:13 AM
#8
Posted 01 September 2018 - 10:08 AM
ToggleCompressor is handle with SHIFT + C
But it need beter programmation:
- When compressor runs, and you put Toggle in Off Postion Compressor stay running, and stay runing... (dangerous, becauze there is no automatic bleeding for moment)
- Compressor dont turn off directley when Toggle is in OffPostion
Who want test BETA program send me PM please.
I have do that on X4185
But this is good news to know there is something possible :-)
#9
Posted 02 September 2018 - 05:15 AM
Movie:
https://youtu.be/dpjcGqerYiY
But for a best programmation it is better to program this with scriptlinking like circuitbreaker scripts:
Or with a (Manual) or (Automatic) system like this:
ORTSCompressor ( Manual )
ORTSCompressor ( Automatic )
When there is choose Automatic, ORTS must do like normal MSTS way, handle compressor without "ToggleCompressor"
When there is choose Manual, Compressor must works like in movie.
Becauze i have see some strange erors in game (my commands was not right...) i have see that compressor can fill above reached pressurevalues. But in that case ORTS must have
a Bleedoffvalve for this, like in real. I advise to call this "ToggleManualCompressor"
So i was thinking that a TogglePressureGenerator is possible too, a pressure generator is when youre locomotive is under the pressure that is need for rising pantographs...
if this great works like it must be, than is best that pantographs can not rise if pressure if value under what is given in .ENG file
But if this 5,00 BAR/72PSI in the whole world than is .ENG link no need.
I'am not professional programmer, for some or most things of last idea's i need expierence of other programmers to realise this like some users post in this topic ;-)
Greetz,
#10
Posted 02 September 2018 - 09:30 AM
Stijn D.C., on 02 September 2018 - 05:15 AM, said:
Movie:
https://youtu.be/dpjcGqerYiY
But for a best programmation it is better to program this with scriptlinking like circuitbreaker scripts:
Or with a (Manual) or (Automatic) system like this:
ORTSCompressor ( Manual )
ORTSCompressor ( Automatic )
When there is choose Automatic, ORTS must do like normal MSTS way, handle compressor without "ToggleCompressor"
When there is choose Manual, Compressor must works like in movie.
Becauze i have see some strange erors in game (my commands was not right...) i have see that compressor can fill above reached pressurevalues. But in that case ORTS must have
a Bleedoffvalve for this, like in real. I advise to call this "ToggleManualCompressor"
So i was thinking that a TogglePressureGenerator is possible too, a pressure generator is when youre locomotive is under the pressure that is need for rising pantographs...
if this great works like it must be, than is best that pantographs can not rise if pressure if value under what is given in .ENG file
But if this 5,00 BAR/72PSI in the whole world than is .ENG link no need.
I'am not professional programmer, for some or most things of last idea's i need expierence of other programmers to realise this like some users post in this topic ;-)
Greetz,
Yeah! You are right, there must be a scriptlinking like circuitbreaker to operate the mode of compressor...