Using cogeneration systems is a great way to tackle fossil fuel consumption problems. This paper introduces a Combined Cooling Heating Power (CCHP) system to recover the waste heat of an RK215 heavy diesel engine as a prime mover. Therefore the CCHP system consists of Internal Combustion Engine (RK215), a heat storage tank, and an absorption chiller. Also, the system has been studied in four modes: CCHP, CHP, CCP, and single generation. The waste heat ratio has changed due to a y factor, and the effect of this different parameter, such as the start of fuel injection and exhaust gas heat, on the system's efficiency by considering first and second laws of thermodynamic in different operating modes has been investigated. The system's highest energy and exergy efficiency in CCHP mode is equal to 50.46 and 30.8%, respectively. According to the result, as the CCHPs cooling load to the absorption chiller increases, the performance also rises. Also, the system's carbon dioxide emissions reduction has been studied. The results showed that using different modes for waste heat recovery can reduce carbon dioxide by up to 30% approximately for different modes. Also, the fuel energy saving ratio (FESR) has been investigated, and the results showed that systems in CCHP, CHP, and CCP modes could have FESR approximately equal to 21%.