Automatic cutting for wire and flat