G-code sender and printer controller