Digital welding