Skip to main content

SEW MOVITRAC modbus control

% start synopsis % start main

This is a simple controller for SEW MOVITRAC motor controllers.

% end synopsis % end main

Instructions

Read section 10 of the controller's documentation (that's the "installation" chapter).

Configure the controller. Minimum initial configuration:

  • P1-10: nominal motor speed in r/min.

  • P1-01: max motor speed

  • P1-02: min motor speed

  • P1-07: motor voltage (V)

  • P1-08: motor current (1/10 A)

  • P1-09: motor AC frequency (50Hz)

  • P4-01: control mode. See the documentation. You probably want 2.

  • P1-12: 7 (Modbus)

  • P1-15: 201 (extended control)

  • P5-03: 0-4 (Baud rate, 9600 … 115200)

  • P5-04: 0-3 (parity: no/no2/odd/even)

  • P5-06: timeout in 1/10 sec, zero to disable (this is NOT recommended!)

  • P5-09: 1 (speed as percentage of max)

Check that the motor can turn freely without injuring somebody or breaking something. Check again.

Now connect the emergency switch. See section 6.3.2 in the documentation. DO NOT proceed if this switch is not installed correctly.

The controller should now auto-tune its motor parameters. This process takes up to two minutes and may engage the motor. You can also trigger this process manually by setting P4-02 to 1.

Write a config file along these lines::

link:
  root: !P moat.com.example
dev:
  sew:
    power: !P moat.sew.power
    state: !P moat.sew.state
    modbus:
      port: "/dev/ttyUSB0"
      serial:
        rate: 19200
        parity: N
      unit: 1

Run "moat -c CONFIG dev sew run".

You now can operate the motor. Send a percentage to the topic moat.sew.power. You probably should use QOS=1.

MoaT-Link messages are sent as CBOR-encoded data, under the topic configured in link.root. If you need them as ASCII or JSON, set up a MoaT-Link MQTT gateway.

TODO

  • Add more control.

Metadata

Release files for moat-dev-sew 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moat-dev-sew 0.1.9
File Size Uploaded Provenance Actions
moat_dev_sew-0.1.9.tar.gz 7.3 kB Without provenance Details for moat_dev_sew-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moat-dev-sew 0.1.9
File Interpreter ABI Platform Actions
moat_dev_sew-0.1.9-py3-none-any.whl Python 3 none any Details for moat_dev_sew-0.1.9-py3-none-any.whl

Total release size: 14.0 kB

Release files / moat_dev_sew-0.1.9.tar.gz

Download URL moat_dev_sew-0.1.9.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cc871689917f795d25c706403b5d1c2b11c919f5c860f0dd4ea42f864d4c262f
BLAKE2b-256 checksum
How to use checksums
0657236629f2cd7b48b64e6967c9d278dfadec9b5f4ff7c64261ce2f37bb0da1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / moat_dev_sew-0.1.9-py3-none-any.whl

Download URL moat_dev_sew-0.1.9-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd717827ca2cd91ad0bcac8c2ab31dcd3cb799a520344da22cf65073fc5852df
BLAKE2b-256 checksum
How to use checksums
1f8c8be8ce2be14ac5fd11d4b1bc2138c6335ec69a525c69aa56bda3493f459a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for moat-dev-sew 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page