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

    Read Coil Analogic Output M103

    Scheduled Pinned Locked Moved Neuron Series
    30 Posts 2 Posters 17.3k Views
    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.
    • M
      Mohamed Dounnani
      last edited by

      I'm using Unipi Neuron M103 and i can't figured out what Coil can i use for using Analogic Output.

      And how can I send what voltage need to be used?

      Martin KudláčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček @Mohamed Dounnani
        last edited by

        Hello @mohamed-dounnani,
        it is unclear, what type of software you use. Let's assume you use pure Modbus, please correct me if you use Mervis or Evok.

        You can find complete information about available coils and registers in the Modbus Registers Map of your unit. Unfortunately, no register contains the calculated voltage and you need to calculate the real value in your program. The calculation formula, which you can find in the Neuron Technical Documentation looks like this:

        0_1533798448759_67107983-73a9-4ba3-aa25-4be95af8c3cf-image.png

        So in order to calculate the values, you need to poll 5 registers:

        • Vref (register 1009)
        • VrefInt (register 5)
        • Vai (Analog Input 1, register 3)
        • AI1vdev (AI 1 Voltage Deviation, register 1025)
        • AI1voffset (AI 1 Voltage Offset, register 1026)

        Regards,
        Martin

        1 Reply Last reply
        Reply Quote 0
        • M
          Mohamed Dounnani
          last edited by

          This formula is for Analog Input it's correct? I need to use analog output's formula

          Martin KudláčekM 1 Reply Last reply
          Reply Quote 0
          • Martin KudláčekM
            Martin Kudláček @Mohamed Dounnani
            last edited by

            @mohamed-dounnani Oh sorry, I overlooked it... Anyway, you can find the formula for analog output in the Neuron Technical Documentation I posted above. The system is practically the same, just with different registers and different formula.

            Martin

            1 Reply Last reply
            Reply Quote 0
            • M
              Mohamed Dounnani
              last edited by

              What is meant by Datatype Word?
              So basically when I have the value from this formula I need to put it on Analog Output address?

              Martin KudláčekM 1 Reply Last reply
              Reply Quote 0
              • Martin KudláčekM
                Martin Kudláček @Mohamed Dounnani
                last edited by

                Hello @mohamed-dounnani,
                the datatype word defines integer number in the range of 0-65535. And you need to save the calculated value into the "Analog Output 1" register.

                1 Reply Last reply
                Reply Quote 0
                • M
                  Mohamed Dounnani
                  last edited by

                  Ok thank you very much!

                  1 Reply Last reply
                  Reply Quote 0
                  • M
                    Mohamed Dounnani
                    last edited by

                    So, If i need to turn off a 0-10v device i need to put 0 in Vdesired ?

                    Martin KudláčekM 1 Reply Last reply
                    Reply Quote 0
                    • Martin KudláčekM
                      Martin Kudláček @Mohamed Dounnani
                      last edited by

                      @mohamed-dounnani The device (analog output) cannot be turned off, but if you want it to output 0V, then save the value 0 to the "Analog Output 1" register

                      1 Reply Last reply
                      Reply Quote 0
                      • M
                        Mohamed Dounnani
                        last edited by Mohamed Dounnani

                        How can i Turn Luminosity to 0 or simulate that is off? Because if I put 0V, decrease luminosity but not completely
                        There is any way to do accomplish that?

                        Martin KudláčekM 1 Reply Last reply
                        Reply Quote 0
                        • Martin KudláčekM
                          Martin Kudláček @Mohamed Dounnani
                          last edited by Martin Kudláček

                          @mohamed-dounnani Can you please describe what are you trying to achieve? So far we were discussing analog outputs, which I am unable to connect with luminosity. A schematics of your setup or list of devices which you want control would be heplful. Thank you!

                          1 Reply Last reply
                          Reply Quote 0
                          • M
                            Mohamed Dounnani
                            last edited by

                            I have a 0-10V Led. I need to be able to turn it Off and On with a certain luminosity. I choose a Vdesired for example 5V and the luminosity decrease, now i need to turn it off when necessary. But when I insert a 0V in Vdesired luminosity decrease at 10% about but never turn off.

                            Martin KudláčekM 1 Reply Last reply
                            Reply Quote 0
                            • Martin KudláčekM
                              Martin Kudláček @Mohamed Dounnani
                              last edited by Martin Kudláček

                              @mohamed-dounnani You can simply verify the functionality with multimeter by measuring the output voltage between AO and AGND. With register "Analog Output 1" = 0 the output voltage should be 0V.

                              M 1 Reply Last reply
                              Reply Quote 0
                              • M
                                Mohamed Dounnani @Martin Kudláček
                                last edited by Mohamed Dounnani

                                @martin-kudláček "With register "Analog Output 1" = 0 the output voltage should be 0V". I do that but still the light is on.

                                "You can simply verify the functionality with multimeter by measuring the output voltage between AO and AGND. " What I accomplish with this operation?

                                Martin KudláčekM 1 Reply Last reply
                                Reply Quote 0
                                • Martin KudláčekM
                                  Martin Kudláček @Mohamed Dounnani
                                  last edited by

                                  @mohamed-dounnani You will verify, that the data you set in the Modbus registers really do what you are intending to do.

                                  I guess you use some LED 0-10V dimmer, similar to this one:

                                  0_1535107086461_0-10-LED-Dimmer.jpg

                                  If the D- and D+ are unconnected or shorted (connected together) the LED should be off. Is this happening to you?

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • M
                                    Mohamed Dounnani
                                    last edited by

                                    They are connected. I can't misure now the V in output, there is a way to be able to turn led completely off?

                                    Martin KudláčekM 1 Reply Last reply
                                    Reply Quote 0
                                    • Martin KudláčekM
                                      Martin Kudláček @Mohamed Dounnani
                                      last edited by

                                      @mohamed-dounnani
                                      Basically there can be two things wrong in your setup and in order to help you I need you to test them separately.

                                      1. Verify the output voltage
                                      • Disconnect everything from the AO and AGND
                                      • connect a voltmeter (or multimeter set to DC voltage measurement) between AO and AGND (positive / red test lead to AO, negative / black test lead to AGND)
                                      • set the desired voltage via Modbus registers and verify the actual output voltage
                                      • set the voltage to 0V via Modbus registers and verify that the output voltage is 0V
                                      1. Verify the functionality of the LED dimmer
                                      • connect the LED to the dimmer
                                      • connect the power supply to the dimmer
                                      • leave the 0-10V input unconnected
                                      • the LED should be off.

                                      Please proceed with both suggestions and get back to me with the result. Otherwise it is almost impossible to help you.

                                      Thank you for understanding,
                                      Martin

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • M
                                        Mohamed Dounnani
                                        last edited by

                                        "Verify the functionality of the LED dimmer
                                        connect the LED to the dimmer
                                        connect the power supply to the dimmer
                                        leave the 0-10V input unconnected
                                        the LED should be off."

                                        I leave the 0-10V input unconnected from unipi and led are On like 100% Luminosity.

                                        "Verify the output voltage
                                        Disconnect everything from the AO and AGND
                                        connect a voltmeter (or multimeter set to DC voltage measurement) between AO and AGND (positive / red test lead to AO, negative / black test lead to AGND)
                                        set the desired voltage via Modbus registers and verify the actual output voltage
                                        set the voltage to 0V via Modbus registers and verify that the output voltage is 0V"

                                        When I set 0V via Modbus multimeter reveals like 1.066 Volt and not 0 volt.

                                        Martin KudláčekM 1 Reply Last reply
                                        Reply Quote 0
                                        • Martin KudláčekM
                                          Martin Kudláček @Mohamed Dounnani
                                          last edited by

                                          Ok @mohamed-dounnani, now we are getting somewhere!:)

                                          For the first part (verifying the output voltage), did you try to set the voltage to e.g. 5 volts and measured the actual output as well? What was the result? I need to be extra sure, that your way of saving data into the Modbus registers really works. It's not that I don't trust you, but it isn't really straightforward:)

                                          Thanks!
                                          Martin

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • M
                                            Mohamed Dounnani
                                            last edited by

                                            If i set 6 Volt the result is 2294.784382284382

                                            Martin KudláčekM 1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post