UNPKG

botnanajs

Version:

Botnana Control API for Javascript

25 lines (21 loc) 483 B
"use strict"; var botnana = require("../../index"); function test() { // Show reponse data botnana.debug_level = 1; botnana.once("ready", function() { // Programming API var Program = botnana.Program; // Program p var p = new Program("p"); var s1 = p.ethercat.slave(1); s1.move_to(50000); p.deploy(); // Run Program p1 botnana.once("deployed", function() { p.run(); }); }); botnana.start("ws://192.168.7.2:3012"); } test();