RCpwmgen
- Project_Hopeless
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 200
- Thank you received: 10
24 Jul 2024 23:48 #305981
by Project_Hopeless
Replied by Project_Hopeless on topic RCpwmgen
I'm struggling trying to get the HAL setup correctly. 1st the vBox slider value doesn't appear to be scaled.
Are the controls for rcpwmgen only rate, width, offset, and scale?
What am I missing, seems like a simple control
Are the controls for rcpwmgen only rate, width, offset, and scale?
What am I missing, seems like a simple control

Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18458
- Thank you received: 5041
25 Jul 2024 01:26 #305988
by PCW
Replied by PCW on topic RCpwmgen
That should be sufficient
(if your RC-servo has a 1.5 ms center value and 1 ms is -90 degrees and 2 ms is +90 degrees)
(if your RC-servo has a 1.5 ms center value and 1 ms is -90 degrees and 2 ms is +90 degrees)
Please Log in or Create an account to join the conversation.
- Project_Hopeless
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 200
- Thank you received: 10
25 Jul 2024 23:33 #306042
by Project_Hopeless
Replied by Project_Hopeless on topic RCpwmgen
Ok, I think I know the issue, The firmware I'm using has the rcPWM on the Mach 3 BOB P11 an opto output. Should be on P1 the PWM for the BOB ???
Is Xilinx Design Suite still used to compile firmware for the 7i96s?
Is Xilinx Design Suite still used to compile firmware for the 7i96s?
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18458
- Thank you received: 5041
25 Jul 2024 23:46 #306043
by PCW
Replied by PCW on topic RCpwmgen
The RCPWM outputs 0..3 are on DB25 pins 6,7,8,9
with 7i96s_5abobrcd.bin firmware. These are fast 5V
CMOS buffered outputs on the common Mach 5 axis BOB
P1-01/DB25-01 34 IOPort PWM 1 PWM (Out)
P1-02/DB25-14 35 IOPort None
P1-03/DB25-02 36 IOPort StepGen 5 Step/Table1 (Out)
P1-04/DB25-15 37 IOPort None
P1-05/DB25-03 38 IOPort StepGen 5 Dir/Table2 (Out)
P1-06/DB25-16 39 IOPort None
P1-07/DB25-04 40 IOPort StepGen 6 Step/Table1 (Out)
P1-08/DB25-17 41 IOPort None
P1-09/DB25-05 42 IOPort StepGen 6 Dir/Table2 (Out)
P1-11/DB25-06 43 IOPort RCPWM 0 PWM (Out)
P1-13/DB25-07 44 IOPort RCPWM 1 PWM (Out)
P1-15/DB25-08 45 IOPort RCPWM 2 PWM (Out)
P1-17/DB25-09 46 IOPort RCPWM 3 PWM (Out)
P1-19/DB25-10 47 IOPort None
P1-21/DB25-11 48 IOPort None
P1-23/DB25-12 49 IOPort None
The 7I96S requires Efinix's Efinity toolset to compile new bitfiles
with 7i96s_5abobrcd.bin firmware. These are fast 5V
CMOS buffered outputs on the common Mach 5 axis BOB
P1-01/DB25-01 34 IOPort PWM 1 PWM (Out)
P1-02/DB25-14 35 IOPort None
P1-03/DB25-02 36 IOPort StepGen 5 Step/Table1 (Out)
P1-04/DB25-15 37 IOPort None
P1-05/DB25-03 38 IOPort StepGen 5 Dir/Table2 (Out)
P1-06/DB25-16 39 IOPort None
P1-07/DB25-04 40 IOPort StepGen 6 Step/Table1 (Out)
P1-08/DB25-17 41 IOPort None
P1-09/DB25-05 42 IOPort StepGen 6 Dir/Table2 (Out)
P1-11/DB25-06 43 IOPort RCPWM 0 PWM (Out)
P1-13/DB25-07 44 IOPort RCPWM 1 PWM (Out)
P1-15/DB25-08 45 IOPort RCPWM 2 PWM (Out)
P1-17/DB25-09 46 IOPort RCPWM 3 PWM (Out)
P1-19/DB25-10 47 IOPort None
P1-21/DB25-11 48 IOPort None
P1-23/DB25-12 49 IOPort None
The 7I96S requires Efinix's Efinity toolset to compile new bitfiles
Please Log in or Create an account to join the conversation.
- Project_Hopeless
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 200
- Thank you received: 10
07 Aug 2024 23:14 #307229
by Project_Hopeless
Can one of the step/gen pin be used for a RCPWM signal or perhaps the spindle PWM pin.
Replied by Project_Hopeless on topic RCpwmgen
My 5-axis bob is a HW-356 Mach3 bob (inexpensive chinese bob). Those pins correspond to opto isolated inputs.The RCPWM outputs 0..3 are on DB25 pins 6,7,8,9
with 7i96s_5abobrcd.bin firmware. These are fast 5V
CMOS buffered outputs on the common Mach 5 axis BOB
Can one of the step/gen pin be used for a RCPWM signal or perhaps the spindle PWM pin.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18458
- Thank you received: 5041
08 Aug 2024 00:06 #307235
by PCW
Replied by PCW on topic RCpwmgen
DB25 pins 5,6,7,8 are step/dir pins on the common 5 Axis Mach BOB
The inputs are DB 25 pins 10,11,12,13,15
The inputs are DB 25 pins 10,11,12,13,15
Please Log in or Create an account to join the conversation.
- Project_Hopeless
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 200
- Thank you received: 10
13 Aug 2024 01:10 #307604
by Project_Hopeless
Replied by Project_Hopeless on topic RCpwmgen
After some time away I got this working with the 7i96_5abobrcd firmware. The physical pins DB25 vs. HAL pins had me twisted around.
Just a general question, on this function. To get the servo to physically rotate 180 degrees (+-90) I need a scale of 95. 180 gave ~90degrees, and 90 gave ~190-200 degrees. Is this just the variability of the servo potentiometer?
setp hm2_[MESA](BOARD).0.rcpwmgen.rate 50setp hm2_[MESA](BOARD).0.rcpwmgen.00.width 1
setp hm2_[MESA](BOARD).0.rcpwmgen.00.offset 1.5
setp hm2_[MESA](BOARD).0.rcpwmgen.00.scale 180
Just a general question, on this function. To get the servo to physically rotate 180 degrees (+-90) I need a scale of 95. 180 gave ~90degrees, and 90 gave ~190-200 degrees. Is this just the variability of the servo potentiometer?
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18458
- Thank you received: 5041
13 Aug 2024 01:23 - 13 Aug 2024 01:59 #307605
by PCW
Replied by PCW on topic RCpwmgen
I would expect you use a scale of 180
and get 90 degrees for a value of 90 (2 ms width)
and -90 degrees for a value of -90 (1 ms width)
You could also set the offset to 1 and then use a 0..180 value
to get 1 to 2 ms
and get 90 degrees for a value of 90 (2 ms width)
and -90 degrees for a value of -90 (1 ms width)
You could also set the offset to 1 and then use a 0..180 value
to get 1 to 2 ms
Last edit: 13 Aug 2024 01:59 by PCW.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.068 seconds