Versions Compared

Key

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

...

RS-232 is not natively supported, however RS-232 to TCP/IP converters have been used with success. We believe that most models will work for this purpose, but the model that Aerotech purchased and tested was https://www.amazon.com/Serial-Ethernet-Converter-Device-Server/dp/B00FJEHNSO?th=1 (NETRS2321P).

ASCII Command Example

Programs

View file
nameAeroScriptAsciiCommands.ascriptlib
height250
View file
nameAeroScriptAsciiCommandServer.ascript
height250

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 ')'.


...