This is a cache of https://www.futaba.co.jp/en/product/industrial_servo/command_type_servos/robot_download/sample_programs. It is a snapshot of the page at 2026-06-27T01:00:26.289+0900.
Sample Program | Futaba Corporation

Sample Program

Sample Programs for RSC-U485

These sample programs are intended for directly controlling command-controlled servos from a PC using the USB-to-rs485 converter (RSC-U485).
Please use them for basic operation checks of command-controlled servos and as reference when developing your own control programs.
Each sample program has been tested for operation, but operation is not guaranteed in all environments.

Sample Programs

icon_zip.gifSample Program for RSC-U485 (HSP Version) ver. 2.0b (1.9 MB)

icon_zip.gifSample Program for RSC-U485 (C Language Version) ver. 1.1 (153.8 KB)

icon_zip.gifSample Program for RSC-U485 (VBA Version) ver. 1.0 (897.28 KB)

icon_zip.gifSample Program for RSC-U485 (VB Version) ver. 1.0 (819.66 KB)

Additional Information [Notes for Using HSP 3.2]

Using HSP ver. 3.2 to run the source file (*.hsp) included in the sample program for RSC-U485 (HSP version), an error containing the following message may appear:

  #Error:symbol in use [objenable] in line 340 [exobject.as]
  #Fatal error reported.

This occurs because the objenable function in the exobject.as file was changed to a built-in instruction starting from HSP ver. 3.2, and this declaration is no longer required.
If this error appears, please comment out line 340 of the exobject.as file or delete that line before use.
Example: Comment out line 340 of exobject.as (add ";" (a half-width semicolon) at the beginning of the line)

;#define global objenable(%1,%2=1) EnableWindow objinfo_hwnd(%1),%2

Connection and Sample Programs Using Arduino

In recent years, an increasing number of low-cost and easy-to-use prototyping systems have become available on the market.
Among them, Arduino is widely used, and here we introduce an example of controlling command-controlled servos with it.

*The Arduino development environment ver. 1.8.5 and Arduino UNO R3 have been confirmed for operation.
This material is provided as an example only, and no guarantee can be made regarding its content or operation.
For questions or inquiries regarding Arduino, please contact the relevant official website or the distributor of the related products.

Connection Example: TTL Command-Controlled Servo

icon_pdf.gifConnection Example: TTL Command-Controlled Servo

icon_pdf.gifConnection Example: rs485 Command-Controlled Servo

Sample Programs

icon_file.gifSample Program (Reading Servo Angle) (6.19 KB)

icon_file.gifSample Program (Operating the Servo) (4.8 KB)

Notes / Support / Distribution and Disclaimer

[Notes]
Before using the sample programs provided here, please be sure to read the readme.txt file included in the downloaded file and use them only after understanding the conditions of use.

[Support]
Bug reports and questions regarding this program are accepted at the e-mail address listed in the readme.txt file. However, please note that support may not always be available. We are unable to provide support for programming languages.

[Distribution and Disclaimer]
Distribution is permitted freely, whether for commercial or non-commercial purposes, and whether the program is distributed alone or bundled with other materials. However, when reposting it on download sites or similar services, please pay careful attention to the contents of the files. If you publish or distribute a modified version of the program, please clearly state that the copyright belongs to our company and that modifications have been made. Our company shall not be liable for any damages arising from the use of this program, regardless of the legal basis. Please use this program only after agreeing to these terms.