[0x08,0xff,0x00]; Close [0x08,0xff,0x11]; Open ------------------------------------------------ //Cerrar 1 function Encoder(measurements, port) { return [0x08,0x01,0x00]; } //Abrir 1 function Encoder(measurements, port) { return [0x08,0x01,0x01]; } ------------------------------------------------- //Cerrar 2 function Encoder(measurements, port) { return [0x08,0x02,0x00]; } //Abrir 2 function Encoder(measurements, port) { return [0x08,0x02,0x02]; } ------------------------------------------------------- //Cerrar 3 function Encoder(measurements, port) { return [0x08,0x04,0x00]; } //Abrir 3 function Encoder(measurements, port) { return [0x08,0x04,0x04]; } ------------------------------------------------------- //Cerrar 4 function Encoder(measurements, port) { return [0x08,0x08,0x00]; } //Abrir 4 function Encoder(measurements, port) { return [0x08,0x08,0x08]; } ------------------------------------------------------- //Cerrar 5 function Encoder(measurements, port) { return [0x08,0x010,0x00]; } //Abrir 5 function Encoder(measurements, port) { return [0x08,0x010,0x10]; } ------------------------------------------------------- //Cerrar 6 function Encoder(measurements, port) { return [0x08,0x020,0x00]; } //Abrir 6 function Encoder(measurements, port) { return [0x08,0x020,0x20]; } ------------------------------------------------------- //Cerrar 7 function Encoder(measurements, port) { return [0x08,0x040,0x00]; } //Abrir 7 function Encoder(measurements, port) { return [0x08,0x040,0x40]; } ------------------------------------------------------- //Cerrar 8 function Encoder(measurements, port) { return [0x08,0x080,0x00]; } //Abrir 8 function Encoder(measurements, port) { return [0x08,0x080,0x80]; }