t=tcpclient('192.168.2.1',23);
writeline(t,"G1 X100");

Just make sure to enable telnet in the config file. and Telnet client in the program features, you can access it from the Control Panel.