*-----------------------------------------------------------------------------
*  Hydraulic
*-----------------------------------------------------------------------------
*  Module Description
*
*-----------------------------------------------------------------------------

#define /s    ML_counter_operating_time_on             M

#include Mac_Lib.inc

GLOBAL Hydraulic

;----------------------------
LBL Hydraulic
;----------------------------

;Variant 1 (Hydraulic pumpe on until pressure reached)

  LN     I_hydraulic_pressure_ok
  A      MG_control_operational
  AN     PN_error_hydraulic_pressure
  =      O_hydraulic_on
  =N     TS_hydraulic_pressure_ok

  LN     TR_hydraulic_pressure_ok
  A      MG_control_operational
  S      PN_error_hydraulic_pressure

;Variant 2 (Hydraulic pumpe on allways, monitoring pressure sensor)
;
;  L      MG_control_operational
;  A      O_hydraulic_on
;  AN     I_hydraulic_pressure_ok
;  S      PN_error_hydraulic_pressure
;
;  LN     TR_hydraulic_pressure_ok
;  A      O_hydraulic_on
;  S      PN_error_hydraulic_pressure
;
;  L      I_hydraulic_pressure_ok
;  O      MG_pulse_CE_key
;  O      NP_M4172_1st_PLC_run_after_power_on
;  =      TS_hydraulic_pressure_ok
;  R      PN_error_hydraulic_pressure
;
;  L      I_emergency_button_unlocked
;  A      TR_hydraulic_pressure_ok
;  =      O_hydraulic_on

  L      O_hydraulic_on
  AN     ML_counter_operating_time_on
  IFT
    PS     KG_operating_time_hydraulic
    CM     9190
    M_display_module_error
  ENDI

  LN     O_hydraulic_on
  A      ML_counter_operating_time_on
  IFT
    PS     KG_operating_time_hydraulic
    CM     9191
    M_display_module_error
  ENDI

  L      O_hydraulic_on
  =      ML_counter_operating_time_on

EM
