...
ASCII Command Example
Programs
View file
AeroScriptAsciiCommandServer.ascript
Usage
- Ensure that at least Task 1 and Task 2 are enabled.
- Put AeroScriptAsciiCommands.ascriptlib and AeroScriptAsciiCommandServer.ascript on the controller file system.
- Open AeroScriptAsciiCommands.ascriptlib in the Develop workspace and compile.
- Open AeroScriptAsciiCommandServer.ascript in the Develop workspace and run it on Task 1.
- Connect from some external application using the IP address of the controller and port 8000 (#defined in the .ascript program). Tested programs (for example):
- PuTTY (use the raw connection type)
- Ncat (download the zip file for Windows and run with a command like ncat 192.168.50.234 8000)
- telnet (usually already installed on Linux and run with a command like telnet 192.168.50.234 8000)
- netcat (can be installed in Linux - sudo apt install netcat - and run with a command like nc 192.168.50.234 8000)
Enter commands directly, pressing Enter after each one. Example output:
Code Block firstline 1 linenumbers true Enable(X) % Home(X) % MoveLinear(X, 10, 100) % Disable(X) % MoveIncremental(X, 30, 100) ! A task error occurred: 57000 FOO(123) ! Unknown command: 'FOO'. Enable([X,Y,Z]) ! Unexpected token ('['), expected axis name. MoveLinear(1, 2, 3) ! Unexpected number ('1'), expected axis name. MoveLinear(X, 10, 20, 30) ! Unexpected ',' (','), expected ')'.
...