UNPKG

botnanajs

Version:

Botnana Control API for Javascript

25 lines (21 loc) 474 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("pp"); var s1 = p.ethercat.slave(1); s1.pp(); p.deploy(); // Run Program p1 botnana.once("deployed", function() { p.run(); }); }); botnana.start("ws://192.168.7.2:3012"); } test();