SIMISA@@@@@@@@@@JINX0D0t______

    Wagon ( 340-001
	     comment( RN4001 )  
		 
    Type ( Engine )
   
                            comment (--- Modelo y medidas --- )
   
    WagonShape ( 340-001.s )
    FreightAnim ( 340INT.s 1 1 )
   
    Size ( 3.04m 4.48m 20.4m )  
    InertiaTensor ( Box ( 3.04m 4.48m 19.9m ) )
    Mass ( 88t )
    WheelRadius ( 0.508m )
    IntakePoint ( -0.3 0.4 FuelDiesel )
	IntakePoint ( -0.8 0.4 FuelDiesel )
	IntakePoint ( 0.3 0.4 FuelDiesel )
	IntakePoint ( 0.8 0.4 FuelDiesel )
 
 

                             comment ( --- Enganches ---)
   
    Coupling (
     Type ( Automatic )
       Spring (
       Stiffness ( 1e6N/m 5e6N/m )
       Damping ( 1e6N/m/s 1e6N/m/s  )
       Break ( 5.1e7N 5.1e7N  )
       r0 ( 10cm 20cm )
    )
    Velocity ( 0.1m/s )
    ) 
	
	CouplingHasRigidConnection ( 1 )
	
       Buffers (
       Spring (
       Stiffness ( 1e6N/m 5e6N/m )
       Damping ( 1e6N/m/s 1e6N/m/s )
       r0 ( 10cm 20cm )
    )
       Centre ( 0.5 )
       Radius ( 1 )
       Angle ( 0.5deg )
    )
   
                     comment ( --- Adherencia, Fricción, Rozamiento... --- )
   
    Adheasion ( 0.2 0.4 2 0 )
    DerailRailHeight ( 10cm )
    DerailRailForce ( 2.5*88t )
    DerailBufferForce ( 800kN )
    ORTSNumberAxles ( 4 )
    Friction (
    1076.9N/m/s    -0.10    1.2mph    10.415N/m/s    1.868
    5.1N/rad/s  1  -1rad/s  0  1
    )
   
    AntiSlip ( 1 )

                   
				      comment ( --- Frenos sección Wagon --- )
   
    BrakeEquipmentType ( "Triple_valve, Auxilary_reservoir, Emergency_brake_reservoir" )
    BrakeSystemType ( "Air_single_pipe" )
    MaxBrakeForce ( 129.36kN )
   
    EmergencyBrakeResMaxPressure( 71 )
	TripleValveRatio( 2.03 )
	MaxReleaseRate( 20 )
	MaxApplicationRate( 20 )
	MaxAuxilaryChargingRate( 20 )
	EmergencyResCapacity( 4 )
	EmergencyResChargingRate( 20 )
	BrakeCylinderPressureForMaxBrakeBrakeForce( 71 )
	

	EmergencyResVolumeMultiplier( 1.15 )
	BrakeAirPressureGainInResForOnePoundFromPipe( 0.25 )

	BrakeDistributorFullServicePressure( 82 )
	BrakeDistributorMaxAuxilaryResPressure( 110 )
	BrakeDistributorEmergencyResPressure( 110 )
	BrakeDistributorReleaseRate( 10 )
	BrakeDistributorApplicationRate( 15 )
	BrakeDistributorTrainPipeControlRatio( 2.03 )
	BrakeDistributorNormalFullReleasePressure( 110 ) 
   
   
                            comment ( --- Luces --- )
							
	Lights ( 26 

		Light ( 
			comment ( Haz de luz )
			Type ( 1 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 2 ) 
			) 
			Cycle ( 0 ) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( 0.0 3.5 17.5 ) 
					Transition ( 0 ) 
					Radius ( 300.0 ) 
					Angle ( 40.0 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Foco Central Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 2 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FFFFFF ) 
					Position ( 0.0 4 8.79 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 1.0 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Foco Central Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 2 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( 0.0 4 8.79 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 1.0 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Blanca Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 2 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FFFFFF ) 
					Position ( -0.95 1.8 9.6 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Blanca Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 2 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( -0.95 1.8 9.6 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Derecha Blanca Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 2 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FFFFFF ) 
					Position ( 0.95 1.8 9.6 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Derecha Blanca Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 2 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( 0.95 1.8 9.6 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		)
        Light ( 
			comment ( Izquierda Roja Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 3 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( -0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Roja Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 3 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( -0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 	
		Light ( 
			comment ( Derecha Roja Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 3 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( 0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Derecha Roja Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 3 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( 0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 
		
		comment (  =====  luces reversibles  =====  )
		Light ( 
			comment ( Foco Central Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 5 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FFFFFF ) 
					Position ( 0.0 4.8 -8.79 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 1.0 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Foco Central Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 5 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( 0.0 4 -8.79 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 1.0 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Blanca Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 5 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FFFFFF ) 
					Position ( -0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Blanca Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 5 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( -0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Derecha Blanca Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 5 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FFFFFF ) 
					Position ( 0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Derecha Blanca Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 5 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( 0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Roja Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 4 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( -0.95 1.8 9.6 ) 
					Azimuth ( 0 0 0 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Roja Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 4 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( -0.95 1.8 9.6 ) 
					Azimuth ( 0 0 0 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		)
		Light ( 
			comment ( Derecha Roja Dim )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 2 ) 
				Unit ( 4 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( 0.95 1.8 9.6 ) 
					Azimuth ( 0 0 0 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Derecha Roja Bright )
			Type ( 0 ) 
			Conditions ( 
				Headlight ( 3 ) 
				Unit ( 4 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( 0.95 1.8 9.6 ) 
					Azimuth ( 0 0 0 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 
		 

comment (  =====  luces IA  =====  )

		Light ( 
			comment ( Foco Central Bright )
			Type ( 0 ) 
			Conditions ( 
				Control ( 1 ) 
				Unit ( 2 ) 
				Service ( 2 ) 
				TimeOfDay ( 0 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( 0.0 4 8.79 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 1.0 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Izquierda Blanca Bright )
			Type ( 0 ) 
			Conditions ( 
				Control ( 1 ) 
				Unit ( 2 ) 
				Service ( 2 ) 
				TimeOfDay ( 0 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( -0.95 1.8 9.6 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		) 
		Light ( 
			comment ( Derecha Blanca Bright )
			Type ( 0 ) 
			Conditions ( 
				Control ( 1 ) 
				Unit ( 2 ) 
				Service ( 2 ) 
				TimeOfDay ( 0 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( FFFFFFFF ) 
					Position ( 0.95 1.8 9.6 ) 
					Azimuth ( 0.0 0.0 0.0 ) 
					Transition ( 0 ) 
					Radius ( 0.6 ) 
				) 
			) 
		)
        	Light ( 
			comment ( Izquierda Roja Bright )
			Type ( 0 ) 
			Conditions ( 
				Control ( 1 ) 
				Unit ( 3 ) 
				Service ( 2 ) 
				TimeOfDay ( 0 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( -0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		)	
		Light ( 
			comment ( Derecha Roja Bright )
			Type ( 0 ) 
			Conditions ( 
				Control ( 1 ) 
				Unit ( 3 ) 
				Service ( 2 ) 
				TimeOfDay ( 0 ) 
			) 
			FadeIn ( 0.5 ) 
			FadeOut ( 0.5 ) 
			Cycle ( 0 ) 
			States ( 1 
				State ( 
					Duration ( 0.0 ) 
					LightColour ( 80FF0000 ) 
					Position ( 0.95 1.8 -9.6 ) 
					Azimuth ( -180 -180 -180 ) 
					Transition ( 0 ) 
					Radius ( 0.8 ) 
				) 
			) 
		) 
	) 						
	
	
	Sound ( "Rfe4000_Eng.sms" )
	
	)
	
	                   
					   comment ( --- Sección Motriz --- )
					   
					   
	Engine ( 340-001
      
	   Effects
         (  
		 DieselSpecialEffects    
          (
    Exhaust1
    (
     0.024 4.245 5.448
     0 1 0
     0.15
    )
    Exhaust2
    (
     0.024 4.245 -3.291
     0 1 0
     0.15
    )
    Exhaust3
    (
     0.024 4.245 2.969
     0 1 0
     0.15
    )
    Exhaust4
    (
     0.024 4.245 -5.478
     0 1 0
     0.15
    )

    )
        ) 
  
    Wagon ( 340-001 )
    Type ( Diesel )
    MaxPower ( 2944kW )
    MaxForce ( 284.39kN )
    MaxContinuousForce ( 259.88kN )
    ORTSSpeedOfMaxContinuousForce ( 10kmh )
	ORTSDriveWheelWeight ( 88t )
    MaxVelocity ( 130kmh )
    MaxCurrent ( 1500A ) 
    WheelRadius ( 0.508m )
    Sanding ( 20mph )
	ORTSMaxTrackSanderBoxCapacity ( 40.0ft^3 )
	ORTSMaxTRackSanderSandConsumption ( 11.0ft^3 )
	ORTSMaxTrackSanderAirConsumption ( 194.0ft^3 )
    ORTSNumberDriveAxles ( 4 )
	MaxSteamHeatingPressure ( 80psi )
	
	CabView ( "R340.cvf" )
    HeadOut ( 1.2 3.7816 7.2 )
			
	MaxTemperature ( 120 )
    MaxOilPressure ( 90 )
	RunUpTimeToMaxForce ( 30.0 )
 
    ORTSDieselEngineMaxPower ( 2908.0kW )
    MaxDieselLevel ( 1321gal )
    DieselUsedPerHourAtMaxPower ( 220gal )
    DieselUsedPerHourAtIdle ( 40gal )    

    DieselSmokeEffectInitialMagnitude ( 0.65 )
	DieselSmokeEffectMaxMagnitude ( 2.5 )
	DieselSmokeEffectInitialSmokeRate ( 0.45 )
	DieselSmokeEffectMaxSmokeRate ( 3 )
 
    DieselEngineIdleRPM( 450 )
    DieselEngineMaxRPM( 1600 )
    DieselEngineSpeedOfMaxTractiveEffort( 9kmh )        
    DieselEngineMaxRPMChangeRate( 50 )
	
	MaxSandingTime( -1 )
	DoesBrakeCutPower ( 1 )
	
	                    comment ( --- Frenos sección Motriz --- )
	
	
	AirBrakesAirCompressorPowerRating( 2 )
	AirBrakesMainMinResAirPressure( 100 )
	AirBrakesMainMaxAirPressure( 140 )
	AirBrakesMainResVolume( 8 )
	AirBrakesAirCompressorWattage( 10000 )
	AirBrakesCompressorRestartPressure( 110 )
	AirBrakesAirUsedPerPoundsOfBrakePipePressure( 0.2 )
	AirBrakesIsCompressorElectricOrMechanical( 1 )

	EngineBrakesControllerDirectControlExponent( 1 )

	TrainBrakesControllerMinPressureReduction( 6 )
	EngineBrakesControllerHasProportionalBrake( 1 )
	EngineBrakesProportionalBrakeLag( 0.9 )
	EngineBrakesControllerMaxApplicationRate( 20 )
	TrainBrakesControllerMaxApplicationRate( 20 )
	EngineBrakesControllerMaxReleaseRate( 10 )
	TrainBrakesControllerMaxReleaseRate( 2 )
	EngineBrakesControllerEmergencyApplicationRate( 50 )
	TrainBrakesControllerEmergencyApplicationRate( 50 )
	EngineBrakesControllerMinSystemPressure( 0 )
	TrainBrakesControllerMinSystemPressure( 0 )
	EngineBrakesControllerMaxSystemPressure( 110 )
	TrainBrakesControllerMaxSystemPressure( 110 )
	EngineBrakesControllerEmergencyBrakeTimePenalty( 0 )
	TrainBrakesControllerEmergencyBrakeTimePenalty( 0 )
	EngineBrakesControllerFullServicePressureDrop( 28 )
	TrainBrakesControllerFullServicePressureDrop( 28 )

	DynamicBrakesMinUsableSpeed( 5 )
	DynamicBrakesMaximumEffectiveSpeed( 25 )
	DynamicBrakesMaximumForce( 150kN )
	DynamicBrakesResistorCurrentLimit ( 1000 )
	DynamicBrakesCutInSpeed( 8 )
	DynamicBrakesMaxAirBrakePressure ( 15 )
	DynamicBrakesFadingSpeed( 25 )
	DynamicBrakesDelayTimeBeforeEngaging ( 0 )
	DynamicBrakesMaximumSpeedForFadeOut ( 65 )
	DynamicBrakesEffectAtMaximumFadeOut( 0 )
	DynamicBrakesHigherSpeedCurveExponent( 1 )
	DynamicBrakesLowerSpeedCurveExponent( 1 )
	DynamicBrakesNumberOfControllerNotches( 8 )
	DynamicBrakeHasAutoBailOff( 1 )

	BrakesEngineBrakeType( "Air_single_pipe"  )
	BrakesTrainBrakeType( "Air_single_pipe" )
    BrakesEngineControllers( "Independent, Train, Dynamic" )

	DoesBrakeCutPower( 1 )
	DoesHornTriggerBell( 0 )
	BrakeCutsPowerAtBrakeCylinderPressure( 15 )
	
	ORTSEngineBrakeReleaseRate( 5bar/s )
    ORTSEngineBrakeApplicationRate( 5bar/s )

	EngineBrakesControllerDirectControlExponent( 1 )
	
	DoesHornTriggerBell( 0 )
   
                            comment ( --- Monitores --- )
   
    EmergencyStopMonitor(
    	MonitoringDeviceMonitorTimeLimit( 5 )
    	MonitoringDeviceAlarmTimeLimit( 5 )
    	MonitoringDevicePenaltyTimeLimit( 5 )
    	MonitoringDeviceCriticalLevel( 0 )
    	MonitoringDeviceResetLevel( 5kmh )
    	MonitoringDeviceAppliesFullBrake( 0 )
    	MonitoringDeviceAppliesEmergencyBrake( 0 )
    	MonitoringDeviceAppliesCutsPower( 0 )
    	MonitoringDeviceAppliesShutsDownEngine( 0 )
    )
		
	VigilanceMonitor(
		MonitoringDeviceMonitorTimeLimit( 5 )
		MonitoringDeviceAlarmTimeLimit( 5 )
		MonitoringDevicePenaltyTimeLimit( 5 )
		MonitoringDeviceCriticalLevel( 0 )
		MonitoringDeviceResetLevel( 5kmh )
		MonitoringDeviceAppliesFullBrake( 0 )
		MonitoringDeviceAppliesEmergencyBrake( 0 )
		MonitoringDeviceAppliesCutsPower( 0 )
		MonitoringDeviceAppliesShutsDownEngine( 0 )
	)

	OverspeedMonitor(
		MonitoringDeviceMonitorTimeLimit( 5 )
		MonitoringDeviceAlarmTimeBeforeOverSpeed ( 5 )
		MonitoringDeviceTriggerOnOverSpeed ( 130kmh )
		MonitoringDeviceTriggerOnTrackOverSpeed ( 1 )
		MonitoringDevicePenaltyTimeLimit( 5 )
		MonitoringDeviceCriticalLevel( 130kmh )
		MonitoringDeviceResetLevel( 5kmh )
		MonitoringDeviceAppliesFullBrake( 1 )
		MonitoringDeviceAppliesEmergencyBrake( 1 )
		MonitoringDeviceAppliesCutsPower( 1 )
		MonitoringDeviceAppliesShutsDownEngine( 0 )
		MonitoringDeviceTriggerOnTrackOverspeedMargin( 10kmh )
		MonitoringDeviceResetOnZeroSpeed( 1 )
		MonitoringDeviceResetOnResetButton( 0 )
	    MonitoringDeviceResetOnResetButton( 0 )
	)

		EngineControllers (
		Throttle ( 0 1 0.1 0 
			NumNotches ( 16
				Notch ( 0.0	0  Dummy )
				Notch ( 0.062 0 Dummy )
				Notch ( 0.124 0 Dummy )
				Notch ( 0.186 0	Dummy )
				Notch ( 0.248 0 Dummy )
				Notch (	0.310 0 Dummy )
				Notch ( 0.372 0 Dummy )
				Notch ( 0.434 0 Dummy )
				Notch ( 0.496 0 Dummy )
				Notch ( 0.558 0 Dummy )
				Notch ( 0.620 0 Dummy )
                Notch ( 0.682 0 Dummy )	
                Notch ( 0.744 0 Dummy )	
                Notch ( 0.816 0 Dummy )	
                Notch ( 0.910 0 Dummy )	
                Notch ( 1 0 Dummy )				
			)
		)
		Brake_Engine (
			0 1 0.0125 0 
			NumNotches ( 12
				Notch ( 0 0  )
				Notch ( 0.10 0  )
				Notch ( 0.25 0  )
				Notch ( 0.35 0  )
				Notch ( 0.45 0  )
				Notch ( 0.55 0  )			
				Notch ( 0.65 0  )			
				Notch ( 0.75 0  )
				Notch ( 0.85 0  )
				Notch ( 0.95 0  )				
				Notch ( 0.98 0  )				
				Notch ( 1 0  )
			)
		)
        Brake_Train ( 0 1 0.0125 0.5 
            NumNotches ( 7
                Notch ( 0       0 TrainBrakesControllerReleaseStart )
                Notch ( 0.15	0 TrainBrakesControllerHoldLappedStart )
                Notch ( 0.25    1 TrainBrakesControllerGraduatedSelfLapLimitedHoldingStart )
                Notch ( 0.55    0 TrainBrakesControllerSuppressionStart )
                Notch ( 0.85     0 TrainBrakesControllerContinuousServiceStart )
                Notch ( 0.95    0 TrainBrakesControllerEmergencyStart )
				Notch ( 1 0 ) 
            )
        )
        Brake_Dynamic ( 0 1 0.0125 0 
            NumNotches( 10 
			    Notch ( 0	0 )
				Notch ( 0.10	0 )
				Notch ( 0.20	0 )
				Notch ( 0.30	0 )
				Notch ( 0.45	0 )
				Notch (	0.65	0 )
				Notch ( 0.75	0 )
				Notch ( 0.85	0 )
				Notch ( 0.95	0 )
				Notch ( 1	0 )
			)
        )
		
        DirControl ( -1 0 1 1 )
        EmergencyStopResetToggle( 0 1 0 )
        EmergencyStopToggle( 0 1 0 )
        AWS ( 0 1 0 )
        Sanding ( 0 1 0 )
        Horn ( 0 1 0 )
        Vigilance ( 0 1 0 )
        PantographToggle1 ( 0 1 1 )
        Headlights ( 0 0.25 1 0 )
        Wipers ( 0 1 0 )
        BellToggle( 0 1 0 )
    )
	
	Sound ( "Rfe4000_Cab.sms" )
	
    EngineVariables ( 5300 )
	
    Name ( "RN4001" )
     Description (
 "Locomotora RENFE Serie 340 / 4000\n"+
      "Constructor: Krauss-Maffei, Babcock Wilcox\n"+
 "Tipo de locomotora: Diesel-Hidráulica\n"+
 "Unidades construidas: 32\n"+
 "(4.001 a 4.032)\n\n"+
 "Motor diesel: Mayback-Mercedez Benz\n"+
 "Transmisión: Mayback-Mekydro\n"+
 "Año de recepción: 1966-1969.\n"+
 "Peso en servicio: 88 T.\n"+
 "Carga por eje: 22 T.\n"+
 "Potencia UIC: 2x2.000 CV.\n"+
 "Velocidad máxima: 130Km/h\n"+
 "Longitud entre topes: 20.350mm.\n"+
 "Anchura total: 3.082mm.\n"+
 "Altura total: 4.268mm.\n"+
 "Ancho de vía: 1.668mm.\n"+
 "Número de motores: 2\n"+
 "Número de cilindros: 16 en V\n\n"+
   )
)