• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Manage Digital Input/Output of unipi neuron m103

    Official EVOK API
    2
    2
    922
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DSurname last edited by DSurname

      Hi, i want to switch on a light in digital output 1.1. How can I do it?
      I'm using nodejs server over modbus-rtu.

      My settings are:

      this.client.connectRTUBuffered(Configuration.modbus.port, {
                      baudRate: 38400,
                      dataBits: 8,
                      parity: 'none',
                      stopBits: 1
                  }, async () => {
                      this._logger.info('Modbus: connected!');
                      resolve();
       });
      

      Normally via rtu if I need to query a slave I just put slaveId and the register. But if I need to query slaveId of unipi and query the register of digital output how can i manage this?

      I Try with:

      this.client.setId(15) // Default address of Unipi??
      this.client.writeRegister(1,1) // Registers from group 1
      

      But nothing happens, can you help me? I can just use gpio?
      I have installed evok too, if can help

      1 Reply Last reply Reply Quote 0
      • Martin Kudláček
        Martin Kudláček administrators last edited by

        Hi @DSurname ,
        if I understand it correctly, you are running your application on the M103 and you want to control the inputs/outputs on the M103? In that case, you cannot (or shouldn't) use ModbusRTU, because there is no Modbus Slave (Server) running on the M103 by default. To access those inputs/outputs, you can use many of the supported interfaces described in the official documentation: https://evok.api-docs.io/1.0/jKcTKe5aRBCNjt8Az/introduction

        Martin

        1 Reply Last reply Reply Quote 0
        • First post
          Last post