Off the internet for the main functions of a TXV valve with equalization.
Temperature and Pressure are in balance: A refrigerant-filled bulb clamped to the suction line accurately reads the temperature of the refrigerant inside the line. As the temperature of the refrigerant changes, the pressure inside this bulb changes, which forces open the needle valve inside the TXV against the opposite force of an adjustable spring. On the other side of the TXV, there’s an equalizer that adjusts for pressure changes at the outlet of the evaporator.
The TXV adjusts refrigerant flow based on these two inputs to maintain a balance. If the refrigerant leaving the evaporator is too warm and the pressure is low, the valve will open to allow more refrigerant in. If it’s too cold, the valve will close to reduce the flow of refrigerant. This constant adjustment ensures optimal efficiency and performance.
Protection: By preventing the evaporator coil from getting flooded or starved, the TXV plays a key role in protecting your compressor from damage. Too much flow could send liquid refrigerant to the compressor causing severe mechanical damage. Too little flow will cause the compressor to overheat as it depends on cool refrigerant vapor for internal cooling.
The compressor will remain running unless the call for cooling has been met while the TXV's mechanics and design adapt to keeping the designed temperature and pressure in balance (10-20 degrees of superheat).
High pressure sensor shutting down the compressor shouldn't be in play and means perhaps the condenser coil is dirty or the dryer filter needs replacing.