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

    Errors in the sysfs documentation

    Neuron Series
    2
    4
    910
    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.
    • P
      paolo last edited by

      Hello,
      In this example : cat /run/unipi-plc/by-sys/DO1.01/value
      that you give on this page : https://kb.unipi.technology/en:sw:02-apis:04-sysfs
      there is an error because I need to use this command to get a convincing result : cat /run/unipi-plc/by-sys/DI1.1/value
      I think you need to review this document, don't you?

      C 1 Reply Last reply Reply Quote 0
      • C
        cleve administrators @paolo last edited by

        @paolo
        Hello,
        I am afraid I don't understand your problem, what error do you get? Could you describe more your issue?

        Best regards,
        Kryštof Černý - Unipi engineer

        P 1 Reply Last reply Reply Quote 0
        • P
          paolo @cleve last edited by

          @cleve Yes, of course, there's a writing error in your example. To read the value of a digital output, you should write DO1.1 instead of DO1.01 (without the 0). It's the same for a digital input, you indicate DI1.01 when you should write DI1.1 (without the 0).

          C 1 Reply Last reply Reply Quote 0
          • C
            cleve administrators @paolo last edited by

            @paolo
            Right, I did not notice the 0, the commands are just examples and it's possible to list the files in the directory, but I will correct that.

            Best regards,
            Kryštof Černý - Unipi engineer

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