Whenever a code is specified. For example, when its a coded vessel ie., a vessel that is designed and built to code and must be code stamped (certified) - Such as one made to ASME I, VIII etc, \If the design requires welding in construction (or repair), then within those codes you would get directed to the welding code ASME IX.
Elaborate on your question for a meaningful answer...
*** Per ISO-4126, the generic term 'Safety Valve' is used regardless of application or design ***
*** 'Pressure-relief Valve' is the equivalent ASME/API term ***
Generally, the codes will specify how weld procedures are tested and qualified, how welders are certified, etc.
Generally, needed when the finished work is to comply with one of those codes.
Thank you guys for all the valuable info and sorry my question wasn't very clear.
We are cutting a flange and replacing it with another flange. this flange being replaced is not on the pressure vessel itself but bolted onto one of the nozzles. does that make it a code weld/repair?
I guess i meant by my question is what is the boundary of the PV that will determine if the weld code or not code?
Well if you were placing a Pressure Relief Valve on such a flange on a coded vessel (say ASME VIII), the PRV would also need to meet code requirements. So I guess the answer is yes, the weld needs to follow code.
But you've still not stated what code you are working to...
*** Per ISO-4126, the generic term 'Safety Valve' is used regardless of application or design ***
*** 'Pressure-relief Valve' is the equivalent ASME/API term ***