Is K1 going to be the emergency stop contacts?
If so why are you killing power to the pc. If you do this you wont be able to restart any jobs after an estop activation. You would need to home the machine again.