【ECEN026】Building JBI and Lua Script for EC Series Robot with VSCode





Introduction

VSCode is a lightweight and cross-platform free source code editor. Most users give it high credit since the release. The developing team of Elite provide the plug-ins to allow users to use VSCode to write JBI programs and Lua Script.

Software Download

Download VSCode from official website

Download Plug-in

Plug-in list

  • EliteScript_LUA
  • EliteScript_JBI
  • SFTP
  • Language Pack (such like Simplified Chinese) if neccessary

Plug-in Searching and Installation

Introduction of Plug-in

EliteScript_LUA

Installation

Application

Switching Programming Language

Ctrl + Shift + P, search "Change Language Mode" and click on it.

Then Choose Auto detect or EliteScript_Lua.

EliteScript_JBI

Installation

Application

SFTP

To use SFTP, need to configure the IP address of PC and the remote Device to same local network!!!

Installation of SFTP Plug-in

Configuration of SFTP Parameters

To Configure SFTP Parameters, a folder need to be created first. The configured parameter should only affect the content in the folder.

Open VSCode Command Palette(CTRL+SHIFT+P),Enter SFTP:config to configure the parameter

Enter SFTP:List to open list of remote device configuration directory.

The corresponding .jbi file should be saved in the same folder.

The corresponding .lua script file should be saved to luadir folder.

SFTP configuration content

{
    "name": "My Server",
    "host": "192.168.1.200",
    "protocol": "sftp",
    "port": 22,
    "username": "root",
    "password": "elite2014",
    "remotePath": "/rbctrl/",
    "uploadOnSave": true
}

Upload Files from Remote Device to PC

Downloading or uploading the files require the current folder contents SFTP configured file.

Using Command Palette


Using Side Bar of SFTP


Download to Remote Device from PC.

After the modification is saved, the download will start automatically(Shortcut for saving changes: ctrl+s ). If bottom left shows done filename.type , it means updating successful.


Epilogue

Elite EC series robot with software verson 3.0.1 or above supports editing JBI file and Lua script through web browser. The robot can also be remote controlled by virtual teach pendant. The 3D model of the robot and trajectory line on the web browser will be synchronized in real-time. (Please contact Technical Support Engineer of Elite team with offical email address: tech@elibot.cn)

点击显示全文
赞同0
发表评论
分享

手机扫码分享
0
682
收藏
举报
收起
登录
  • 密码登录
  • 验证码登录
还没有账号,立即注册
还没有账号,立即注册
注册
已有账号,立即登录
选择发帖板块
举报
请选择举报理由
举报
举报说明