Ez Line Chart icon Ez Line Chart 4-series historical line chart to log and compare robot sensor values over time with customizable titles, colors, time axis and EZ-Script control Try it →
 

Converting EZ-Script To Javascript Or Python

ARC’s AI Assistant Agent can help convert older EZ-Script code into JavaScript or Python directly inside the robot skill code editor.

The process is straightforward: copy the existing EZ-Script, paste it into the code editor for the language you want to use, and ask the AI Agent to convert it. This gives the AI the original script directly inside the editor so it can rewrite the code using the selected programming language.

Tip: After the AI converts the script, review the new code before running it. Some scripts may need small adjustments if they rely on older EZ-Script behavior, custom variables, robot skill names, or project-specific logic. You can continue to ask the AI Script Assistant to fix any issues that you experience after the conversion.

Why Convert EZ-Script?

EZ-Script was the original scripting language used by ARC. Modern ARC projects use JavaScript and Python because they are more powerful, more stable, faster, more effecient, more widely known, and better suited for advanced robot programming.

Converting your EZ-Script code helps modernize older robot projects while keeping the original behavior, logic, and automation that you already created.

JavaScript

A great choice for most ARC scripting because it is fast, flexible, and commonly used in modern applications.

Python

A popular choice for AI, automation, data processing, and readable robot programming logic.

AI Assisted

The AI Agent can read the code you pasted into the editor and rewrite it into the target language for you.

How It Works

You will copy the EZ-Script from the original robot skill script editor and paste it into the JavaScript or Python editor. Then, use the AI Agent tab on the right side of the editor to ask for the conversion.

Basic Conversion Process
  1. Open the robot skill that contains the EZ-Script code.
  2. Open the code editor for that robot skill.
  3. Select all of the EZ-Script code.
  4. Copy the EZ-Script code.
  5. Switch to the JavaScript or Python editor.
  6. Paste the EZ-Script code into the new language editor.
  7. Ask the AI Agent to convert the code.
  8. Review the converted code before running it.

Convert EZ-Script to JavaScript

Use this process when you want to convert an EZ-Script into JavaScript.

Steps
  1. Load the robot skill's code editor that contains the EZ-Script.
  2. Select all of the EZ-Script by pressing Ctrl + A, or right-click in the editor and choose Select All.
  3. Copy the selected code by pressing Ctrl + C, or right-click and choose Copy.
  4. Switch to the JavaScript editor window.
  5. Paste the EZ-Script code into the JavaScript editor by pressing Ctrl + V, or right-click and choose Paste.
  6. Open the AI Agent tab on the right side of the code editor.
  7. Enter an instruction such as the example below.
  8. Press the Send button.
  9. Review the JavaScript code generated by the AI Agent.
Example instruction:
Convert this EZ-Script code into JavaScript.

Better JavaScript Conversion Prompt

For better results, give the AI Agent a little more direction:

Convert this EZ-Script code into JavaScript for Synthiam ARC. Keep the same robot behavior, preserve the variable names where possible, and add comments explaining the converted logic.

Convert EZ-Script to Python

Use this process when you want to convert an EZ-Script into Python.

Steps
  1. Load the robot skill's code editor that contains the EZ-Script.
  2. Select all of the EZ-Script by pressing Ctrl + A, or right-click in the editor and choose Select All.
  3. Copy the selected code by pressing Ctrl + C, or right-click and choose Copy.
  4. Switch to the Python editor window.
  5. Paste the EZ-Script code into the Python editor by pressing Ctrl + V, or right-click and choose Paste.
  6. Open the AI Agent tab on the right side of the code editor.
  7. Enter an instruction such as the example below.
  8. Press the Send button.
  9. Review the Python code generated by the AI Agent.
Example instruction:
Convert this EZ-Script code into Python.

Better Python Conversion Prompt

For better results, ask the AI Agent to keep the original robot behavior:

Convert this EZ-Script code into Python for Synthiam ARC. Keep the same robot behavior, preserve the variable names where possible, and add comments explaining the converted logic.

Example Workflow

Original EZ-Script

Copy the EZ-Script from the original script editor.

Say("Hello, I am ready")
Servo(D0, 90)
Sleep(1000)
Servo(D0, 20)
Say("Done")
AI Agent Instruction

Paste the EZ-Script into the JavaScript or Python editor, then ask the AI Agent to convert it.

Convert this EZ-Script code into JavaScript for Synthiam ARC. Keep the same behavior and add comments.
Important: The AI Agent may update the code in the editor. Always review the converted script before running it on a real robot, especially if the robot moves servos, motors, wheels, arms, or other physical hardware.

Tips for Better Conversions

Be Specific

Tell the AI Agent which language you want and whether you want comments added to the converted code.

Keep Skill Names Clear

If the script uses robot skills, make sure the robot skill names are still correct in the converted code.

Test Carefully

Run the converted script slowly and safely, especially when it controls movement, servos, or external hardware.

Useful prompt examples

  • Convert this EZ-Script into JavaScript and explain any changes.
  • Convert this EZ-Script into Python and keep the same variable names.
  • Convert this EZ-Script into JavaScript and add comments for each section.
  • Convert this EZ-Script into Python and tell me if anything needs to be manually checked.

After the Conversion

Once the AI Agent has converted the code, read through the new script and confirm that the logic still matches the original EZ-Script. Pay special attention to servo ports, robot skill names, global variables, delays, loops, and any commands that interact with hardware.

Recommended Final Prompt

After the first conversion, you can ask the AI Agent to check its work:

Review this converted script and compare it to the original EZ-Script behavior. Tell me if anything looks incorrect or needs to be manually verified before running it on my robot.