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...
#11
Posted 02 September 2018 - 07:01 PM
Quote
No it depends on both. It does work on MR pressure, but how would it work when there is no power available... :)
@ Stijn D.C.
Nice work.... :thumbup3:
#12
Posted 21 October 2018 - 06:02 AM
Here is a new video from tests with 3 compressorsystems now (normal compressor, SOS compressor & Aux compressor)
normal compressor: normal msts/ORTS compressor, but in my code changes setup not working fine for moment, becauze i have add buttonbridge, and commands not working with MU signal :-(
SOS compressor: This compressor works when circuitbreaker is closed and pump air until driver shut button down, normal this compressor pump to 10BAR, and than there is a bleedoffvalvecontrol that bleef off 0,5 BAR (back to 9,5BAR), and this always again, until driver put SOS compressor off. For moment there is no BleedOffValve for the main reservoir
This can you see on movie too.
For ORTS & that i need help, and i prefere for let work a BleedOffValve with this on .ENG files:
ORTSMainResValvePressure ( 10.00bar ) => value for maximum fill of Reservoir
ORTSMainResValveBleedOffPressure ( 0.5bar ) => value for bleedoff 10-0,5=9,5bar
And if there is bleefoff, this action needs a signal.event too (sound)
On my video i have setup a .wav with bleeding sounds on SOScompressor.wav for let hear the difference :-)
I have prepare a .wav with only SOS compressor and bleeding on 2 differtent stream if someone can fix that bleedingValve with .event
Aux compressor: Is compressor that work on battery of locomotive/train for pump air, if main res is under 5bar, and you can not rise pantographs
Greetz,
Stijn