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

    Errors in the sysfs documentation

    Scheduled Pinned Locked Moved Neuron Series
    4 Posts 2 Posters 1.9k Views 2 Watching
    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

            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