Coder Social home page Coder Social logo

Comments (6)

vimior avatar vimior commented on July 17, 2024

@AtariaLee
What is the SDK version you are using?
To set the end tool digital output IO please use set_tgpio_digital(ionum, val) (ionum: 0 or 1, val: 0 or 1)
To set the controller digital output IO please use set_cgpio_digital (ionum: 0 ~ 8 or 0 ~15(1300), val: 0 or 1)

from xarm-python-sdk.

AtariaLee avatar AtariaLee commented on July 17, 2024

0.2.1
I always use the previous SDK. I didn't update it.

from xarm-python-sdk.

vimior avatar vimior commented on July 17, 2024

@AtariaLee
why can't update?
Download the latest source code and install it using your current python environment.

from xarm-python-sdk.

AtariaLee avatar AtariaLee commented on July 17, 2024

@vimior
Because the code I wrote before was written on the original API, many interfaces are no longer used or updated after the update. I don't want to find and modify the original code again. If I have time later, I will use the new SDK to modify it.
So the original IO port setting value 1 is equal to the current IO port setting value 0 "(2=1)". Is this correct?

from xarm-python-sdk.

vimior avatar vimior commented on July 17, 2024

@AtariaLee
After 0.4.0 and 0.4.0, set_tgpio_digital(0, 1) is equivalent to set_tgpio_digital(1, 1) before 0.4.0, that is to say, after 0.4.0 and 0.4.0, the subscript of IO starts from 0.

from xarm-python-sdk.

AtariaLee avatar AtariaLee commented on July 17, 2024

@vimior
OK,Thank you for answering my questions!
thanks for your help !

from xarm-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.