Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ASCII Command Example

Programs

View filenameAeroScriptAsciiCommands.ascriptlibheight250 View filename

AeroScriptAsciiCommandServer.ascriptheight250

Usage

  1. Ensure that at least Task 1 and Task 2 are enabled.


  2. Put AeroScriptAsciiCommands.ascriptlib and AeroScriptAsciiCommandServer.ascript on the controller file system.



  3. Open AeroScriptAsciiCommands.ascriptlib in the Develop workspace and compile.



  4. Open AeroScriptAsciiCommandServer.ascript in the Develop workspace and run it on Task 1.



  5. Connect from some external application using the IP address of the controller and port 8000 (#defined in the .ascript program). Tested programs (for example):
    1. PuTTY (use the raw connection type)
    2. Ncat (download the zip file for Windows and run with a command like ncat 192.168.50.234 8000)
    3. telnet (usually already installed on Linux and run with a command like telnet 192.168.50.234 8000)
    4. netcat (can be installed in Linux - sudo apt install netcat - and run with a command like nc 192.168.50.234 8000)

  6. Enter commands directly, pressing Enter after each one. Example output:

    Code Block
    firstline1
    linenumberstrue
    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 ')'.


...