motion-capi.zmotion 1.0.8
motion-capi.zmotion
正运动 ZMotion / ZAux(EtherCAT 总线控制器)专用 motion_capi(Motion_* C ABI)。
Built with:
cargo build -p motion-capi --no-default-features --features zmotion
Headers
| File | Use |
|---|---|
motion_capi.h |
C / C++ / other languages(Motion_* ABI) |
Include path is configured via motion-capi.zmotion.targets。
Link / runtime
Ships win32 / win64 × debug / release:
- Import lib:
motion_capi.dll.lib - Runtime:
motion_capi.dllplus vendor SDK DLLs fromvendor_sdk/zmotion(zauxdll.dll、zmotion.dll) - After Build,
*.targets将上述 DLL 全部拷到输出目录
无需再单独安装 NuGet 包 zmotion 才能跑起来(头文件若仍需要可另引厂商 SDK 包)。
Load vendor
At runtime open the matching registry key(Zmotion / alias zmotion、zaux、zmc)via Motion_* APIs — see docs/MOTION_API.md。
连接 settings(可选)
| 键 | 含义 | 缺省 |
|---|---|---|
motion/zmotionConn |
eth / pci / com |
eth |
motion/zmotionIp |
以太网 IP | 192.168.0.11 |
motion/zmotionPciCard |
PCI 卡号 | 0 |
motion/zmotionComId |
串口号 | 1 |
motion/zmotionInitBus |
开卡后 InitBus |
true |
motion/zmotionBusReadyTimeoutMs |
等待总线就绪(ms,0=只查一次) |
3000 |
motion/zmotionBusHome |
回零优先 BusCmd_Datum |
true |
motion/zmotionDatumMode |
回零模式号 | 4 |
比较 / 凸轮(C ABI)
- 比较:
Motion_SetComparePosition/Motion_SetCompareTable(HwPswitch2;Compare.mode见motion/README.md) - 凸轮:
Motion_CamSetTable/Motion_CamGetTable/Motion_CamStart/Motion_CamBox/Motion_SetEncoderRatio - 连接诊断:
Motion_GetConnectionStatusEx→kind=MOTION_CONN_KIND_ZMOTION,字段bus_ready/node_count
命名 IO 联用:motion-io 的 card_type=zmotion(Cached GetInMulti,共享 ZMC_HANDLE)。
No packages depend on motion-capi.zmotion.
This package has no dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 1.3.1 | 5 | 2026/11/7 |
| 1.3.0 | 6 | 2026/11/6 |
| 1.2.9 | 5 | 2026/11/6 |
| 1.2.8 | 4 | 2026/11/6 |
| 1.2.7 | 11 | 2026/11/4 |
| 1.2.6 | 5 | 2026/11/4 |
| 1.2.5 | 5 | 2026/11/4 |
| 1.2.4 | 5 | 2026/11/4 |
| 1.2.3 | 5 | 2026/11/3 |
| 1.2.2 | 5 | 2026/11/3 |
| 1.2.1 | 5 | 2026/11/3 |
| 1.2.0 | 6 | 2026/11/3 |
| 1.1.9 | 5 | 2026/11/3 |
| 1.1.8 | 5 | 2026/11/3 |
| 1.1.7 | 5 | 2026/11/3 |
| 1.1.6 | 10 | 2026/11/2 |
| 1.1.5 | 8 | 2026/11/2 |
| 1.1.4 | 6 | 2026/11/2 |
| 1.1.3 | 5 | 2026/11/2 |
| 1.1.2 | 10 | 2026/10/30 |
| 1.1.1 | 5 | 2026/10/30 |
| 1.1.0 | 14 | 2026/10/23 |
| 1.0.9 | 9 | 2026/10/22 |
| 1.0.8 | 17 | 2026/10/18 |