M4 does produce a PWM signal in Linuxcnc Debian Stretch
- Barry
- Offline
- Senior Member
Less
More
- Posts: 54
- Thank you received: 4
31 Aug 2020 01:47 - 31 Aug 2020 02:14 #180126
by Barry
M4 does produce a PWM signal in Linuxcnc Debian Stretch was created by Barry
I am using Debian Stretch LinuxCNC. The M3 command produces a Spindle PWM signal but the M4 command does not. Does anyone know how to resolve this problem?
Channel 14 was selected for the Spindle-PWM signal.
The Hal-Scope shows a square wave on Channel 14 when using the M3 command but when using the M4 command, the Hal-Scope shows no output on channel 14.
The MIDI test commands used were M3 S1000 and then M4 S1000. The M3 command controls spindle speed perfectly.
I just fixed this issue as follows:
The solution was to use pwmgen type 1 by editing the HAL file to say,
loadrt pwmgen output_type=1
Then it worked!
This would be a good upgrade to add into the Linuxcnc Step Conf.
Thank you,
Barry
Channel 14 was selected for the Spindle-PWM signal.
The Hal-Scope shows a square wave on Channel 14 when using the M3 command but when using the M4 command, the Hal-Scope shows no output on channel 14.
The MIDI test commands used were M3 S1000 and then M4 S1000. The M3 command controls spindle speed perfectly.
I just fixed this issue as follows:
The solution was to use pwmgen type 1 by editing the HAL file to say,
loadrt pwmgen output_type=1
Then it worked!
This would be a good upgrade to add into the Linuxcnc Step Conf.
Thank you,
Barry
Last edit: 31 Aug 2020 02:14 by Barry. Reason: I fixed the problem.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19500
- Thank you received: 6539
31 Aug 2020 18:16 #180208
by tommylight
Replied by tommylight on topic M4 does produce a PWM signal in Linuxcnc Debian Stretch
Thanks for reporting back with the solution.
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds