CK-InoDrive-API


NameCK-InoDrive-API JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://cardinalkinetic.com
SummaryInoDrive API Library
upload_time2024-09-09 17:20:56
maintainerNone
docs_urlNone
authorCardinal Kinetic
requires_pythonNone
licensehttps://www.cardinalkinetic.com/user-manual/api/inodrive-py
keywords inoworx inodrive inosync motioncontrol servocontrol
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            #### **Installation**

Install and Update package via [pip](https://pip.pypa.io/en/stable/getting-started/)

```
pip install CK-InoDrive-API
```

#### **Usage**

Importing Library

```python
# Import InoDrive API library
import CkInoDriveAPI
```

Create InoDrive Object using WebSocket

```python
# Create instance to InoDrive module object
# Connect by Name
Drive = CkInoDriveAPI.InoDrive(target='Name')

# Connect by Serial Number
Drive = CkInoDriveAPI.InoDrive(target='SN')

# Connect by IP Address
Drive = CkInoDriveAPI.InoDrive(target='IPv4 Address')

# Auto connect
Drive = CkInoDriveAPI.InoDrive(target='IPv4 Address', autoConnect=True)
```

Read and Write Variable's

```python
# Connect to the drive
Drive.connect()

# Read variable with name 'VariableName'
Drive.UserApp.read_var('VariableName')

# Write variable with name 'VariableName' and value equal to 1
Drive.UserApp.write_var('VariableName', 1)

# Disconnect from the drive
Drive.disconnect()

# Drive object cleanup
Drive.dispose()
```

Get and Set Output's

```python
# Connect to the drive
Drive.connect()

# Read Output 2
state = Drive.IO.get_output(2)

# Take control of InoDrive module to override output state
Drive.SysControl.take_control(True)

# Set Output 2 to On state
Drive.IO.set_output(2, True)
state = Drive.IO.get_output(2)

# Disable module override
Drive.SysControl.take_control(False)

# Disconnect from the drive
Drive.disconnect()

# Drive object cleanup
Drive.dispose()
```

Change Module Name (Power cycle InoDrive for changes to take effect)

```python
# Connect to the drive
Drive.connect()

# Read module configuration file
config_file = Drive.File.read_module_config()

# Set new module name
config_file['name'] = "NewName"

# Write configuration changes out
Drive.File.write_module_config(config_file)

# Disconnect from the drive
Drive.disconnect()

# Drive object cleanup
Drive.dispose()
```

#### **Links**

- [API Documentation](https://www.cardinalkinetic.com/user-manual/api/inodrive-py)
- [Company Website](https://www.cardinalkinetic.com)

            

Raw data

            {
    "_id": null,
    "home_page": "https://cardinalkinetic.com",
    "name": "CK-InoDrive-API",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "InoWorx InoDrive InoSync MotionControl ServoControl",
    "author": "Cardinal Kinetic",
    "author_email": "support@cardinalkinetic.com",
    "download_url": "https://files.pythonhosted.org/packages/ae/fd/092b1db439b7e6968c3470ec682744de5f222e1f1c404e3a1b2a5de9fd62/ck_inodrive_api-1.0.0.tar.gz",
    "platform": null,
    "description": "#### **Installation**\r\n\r\nInstall and Update package via [pip](https://pip.pypa.io/en/stable/getting-started/)\r\n\r\n```\r\npip install CK-InoDrive-API\r\n```\r\n\r\n#### **Usage**\r\n\r\nImporting Library\r\n\r\n```python\r\n# Import InoDrive API library\r\nimport CkInoDriveAPI\r\n```\r\n\r\nCreate InoDrive Object using WebSocket\r\n\r\n```python\r\n# Create instance to InoDrive module object\r\n# Connect by Name\r\nDrive = CkInoDriveAPI.InoDrive(target='Name')\r\n\r\n# Connect by Serial Number\r\nDrive = CkInoDriveAPI.InoDrive(target='SN')\r\n\r\n# Connect by IP Address\r\nDrive = CkInoDriveAPI.InoDrive(target='IPv4 Address')\r\n\r\n# Auto connect\r\nDrive = CkInoDriveAPI.InoDrive(target='IPv4 Address', autoConnect=True)\r\n```\r\n\r\nRead and Write Variable's\r\n\r\n```python\r\n# Connect to the drive\r\nDrive.connect()\r\n\r\n# Read variable with name 'VariableName'\r\nDrive.UserApp.read_var('VariableName')\r\n\r\n# Write variable with name 'VariableName' and value equal to 1\r\nDrive.UserApp.write_var('VariableName', 1)\r\n\r\n# Disconnect from the drive\r\nDrive.disconnect()\r\n\r\n# Drive object cleanup\r\nDrive.dispose()\r\n```\r\n\r\nGet and Set Output's\r\n\r\n```python\r\n# Connect to the drive\r\nDrive.connect()\r\n\r\n# Read Output 2\r\nstate = Drive.IO.get_output(2)\r\n\r\n# Take control of InoDrive module to override output state\r\nDrive.SysControl.take_control(True)\r\n\r\n# Set Output 2 to On state\r\nDrive.IO.set_output(2, True)\r\nstate = Drive.IO.get_output(2)\r\n\r\n# Disable module override\r\nDrive.SysControl.take_control(False)\r\n\r\n# Disconnect from the drive\r\nDrive.disconnect()\r\n\r\n# Drive object cleanup\r\nDrive.dispose()\r\n```\r\n\r\nChange Module Name (Power cycle InoDrive for changes to take effect)\r\n\r\n```python\r\n# Connect to the drive\r\nDrive.connect()\r\n\r\n# Read module configuration file\r\nconfig_file = Drive.File.read_module_config()\r\n\r\n# Set new module name\r\nconfig_file['name'] = \"NewName\"\r\n\r\n# Write configuration changes out\r\nDrive.File.write_module_config(config_file)\r\n\r\n# Disconnect from the drive\r\nDrive.disconnect()\r\n\r\n# Drive object cleanup\r\nDrive.dispose()\r\n```\r\n\r\n#### **Links**\r\n\r\n- [API Documentation](https://www.cardinalkinetic.com/user-manual/api/inodrive-py)\r\n- [Company Website](https://www.cardinalkinetic.com)\r\n",
    "bugtrack_url": null,
    "license": "https://www.cardinalkinetic.com/user-manual/api/inodrive-py",
    "summary": "InoDrive API Library",
    "version": "1.0.0",
    "project_urls": {
        "Documentation": "https://www.cardinalkinetic.com/user-manual/api/inodrive-py",
        "Homepage": "https://cardinalkinetic.com"
    },
    "split_keywords": [
        "inoworx",
        "inodrive",
        "inosync",
        "motioncontrol",
        "servocontrol"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57a2fcf5d437cbfa26953aa588f0559ae3ad766fec0c1e6f48898d0c0923cdb0",
                "md5": "624a301b780c447621f7b3a69a04fd91",
                "sha256": "04fb6d0e7c354b57bd40f03a2997bb141969f775db3c29268be9604f7e120831"
            },
            "downloads": -1,
            "filename": "CK_InoDrive_API-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "624a301b780c447621f7b3a69a04fd91",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 49576,
            "upload_time": "2024-09-09T17:20:55",
            "upload_time_iso_8601": "2024-09-09T17:20:55.089392Z",
            "url": "https://files.pythonhosted.org/packages/57/a2/fcf5d437cbfa26953aa588f0559ae3ad766fec0c1e6f48898d0c0923cdb0/CK_InoDrive_API-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aefd092b1db439b7e6968c3470ec682744de5f222e1f1c404e3a1b2a5de9fd62",
                "md5": "8a71d017d54282aa18d4a373fcd1e939",
                "sha256": "c153d4b4cdf8416c4c6a73d848c3bbdd74af712cb40a793dac0ded77e5577793"
            },
            "downloads": -1,
            "filename": "ck_inodrive_api-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8a71d017d54282aa18d4a373fcd1e939",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 46172,
            "upload_time": "2024-09-09T17:20:56",
            "upload_time_iso_8601": "2024-09-09T17:20:56.493461Z",
            "url": "https://files.pythonhosted.org/packages/ae/fd/092b1db439b7e6968c3470ec682744de5f222e1f1c404e3a1b2a5de9fd62/ck_inodrive_api-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-09 17:20:56",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ck-inodrive-api"
}
        
Elapsed time: 2.57048s