Skip to main content

Python library to control an DeltaX robot

Project description

Python library to control a robot from 'Delta X Robot'

exemple

DeltaX S

robot = DeltaX(port = "COM4", model=DeltaX.DeltaX_S)
if robot.connect() == True:
    print("connected")
robot.syncPosition()
robot.wait_for_robot_response()
print(robot.position())
robot.syncInput(I=[0, 1], A=[0])
robot.wait_for_robot_response()
print(robot.getDigitalInput(I=[0, 1]))
print(robot.getAnalogInput(A=[0]))
robot.setDO(D=[0,1], value=DeltaX.ON)
robot.wait_for_robot_response()
while 1:
    robot.moveL([20,0,-800])
    robot.moveL([-20,0,-800])
    robot.moveC(offset=[-30,-30], point=[-20, 0])
    robot.wait_for_robot_response()

DeltaX V2

robot = DeltaX(port = "COM4", model=DeltaX.DeltaX_V2)
if robot.connect() == True:
    print("connected")
robot.syncPosition()
robot.wait_for_robot_response()
print(robot.position())
robot.setEndEffector(name=DeltaX.Vacuum)
robot.wait_for_robot_response()
robot.controlEndEffector(value=DeltaX.ON)
robot.wait_for_robot_response()
while 1:
    robot.moveL([20,0,-270])
    robot.moveL([-20,0,-270])
    robot.moveC(offset=[-30,-30], point=[-20, 0])
    robot.wait_for_robot_response()

list func

- connect
- disconnect
- is_connected
- sendGcode
- wait_for_robot_response
- robot_response
- isResponded
- lastGcodeState
- syncMotionParameters
- motionParameters
- sleep
- position
- angle
- homing
- syncPosition
- syncAngle
- syncInput
- getDigitalInput
- getAnalogInput
- setDO
- controlEndEffector
- setEndEffector
- disableSteppers
- setAcceleration
- setStartingAndEndingSpeeds
- setXYZOffset
- moveL
- moveC

DeltaX S

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deltax-0.0.1.6.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

deltax-0.0.1.6-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file deltax-0.0.1.6.tar.gz.

File metadata

  • Download URL: deltax-0.0.1.6.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for deltax-0.0.1.6.tar.gz
Algorithm Hash digest
SHA256 c13e6244bb4646708423dab828a695c2c4402788a6bc9583aea20801244cd129
MD5 580ca7cd63c8655f03916df9b550d680
BLAKE2b-256 17d310598ce4bb902fc59a1ea4e5140335b9ab1a9a0da4bec2213673490a9a18

See more details on using hashes here.

File details

Details for the file deltax-0.0.1.6-py3-none-any.whl.

File metadata

  • Download URL: deltax-0.0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for deltax-0.0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 da169d869d1ed43d22d4af221ff30e2c99ca7de8e229491f96be3a51fa84f307
MD5 98ed1d6ec14b580cf8e860b38d9a5131
BLAKE2b-256 e89e48b47ebf523d1127fa103da75a3e3688b977626d7a6c8639bdc5f126d2fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page