If the Emergency Stop function has any Safety implications, it is mandatory to use devices certified as suitable for use in a Safety Related Control System. The integrity level required should be determined by risk assessment methods.
Usually - if logic elements are required - this would mean using monitoring Safety relays.
__________________
"Love justice, you who rule the world" - Dante Alighieri
Depending on what logic you are implimenting, you have to use the appropriate ligical blocks. Either it is normal GATE logics or FLIP FLOPS. Normally in ESD systems we are quite often used the S-R Flipflops where an Emergecy Shutdown (ESD) activates and it trips a unit/plant/equipment and need to to do RESET after the condition of that logic became healthy. Hope you understand.