[LinuxCNC/linuxcnc PR#118] Allow specifying of device on wj200_vfd init

未分类 bolang 4个月前 (10-15) 29次浏览

Issue #118 | 状态: 已关闭 | 作者: jamwaffles | 创建时间: 2016-07-23


Make sure you can check all these boxes before submitting your issue—Thank you!
– [x] The submitted code is available under the GNU GPL version 2 with the “or later” clause
– [x] You have certified that this is the case by including a “Signed-off-by” message in each commit
– [x] You used your real name and a working e-mail address in this message

I had the need to use the wj200_vfd module over a USB to RS485 converter, so I’m making this pull request.

This commit adds the –device option to the wj200_vfd HAL component.
It allows the user to select which device to use for Modbus communication
to the VFD. For example, to use a USB to RS485 converter on /dev/ttyUSB0
you would run this command:

loadusr -W wj200_vfd --device /dev/ttyUSB0

The default is /dev/ttyS0 if --device is not specified.

Signed-off-by: James Waples jamwaffles@gmail.com

原始Issue: https://github.com/LinuxCNC/linuxcnc/pull/118

喜欢 (0)