neeed help with additional pwm 6i25 and 7i76
- mmt
- Offline
- Premium Member
-
Less
More
- Posts: 138
- Thank you received: 3
23 Mar 2025 19:21 - 23 Mar 2025 19:28 #324686
by mmt
neeed help with additional pwm 6i25 and 7i76 was created by mmt
I'm trying to get this working. Ive read most of the other relevant threads and the documentation.
I have flashed the 6i25 with 5i25_7i76x2pld.bit
here is my hal and these are the only code i have that references pwm
i get this error
/Laser.hal:26: parameter or pin 'hm2_5i25.0.pwmgen.00.pwm_frequency' not found
and also tried halshow
I have flashed the 6i25 with 5i25_7i76x2pld.bit
here is my hal and these are the only code i have that references pwm
# Generated by PNCconf at Sun Mar 23 11:17:20 2025
# Using LinuxCNC version: Master (2.9)
# If you make changes to this file, they will be
# overwritten when you run PNCconf again
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hostmot2
loadrt hm2_pci config="num_encoders=1 num_pwmgens=1 num_stepgens=4 sserial_port_0=00xxxxxx"
setp hm2_5i25.0.watchdog.timeout_ns 5000000
loadrt pid names=pid.x,pid.y,pid.z,pid.a,pid.s
loadrt pwmgen output_type=0
addf hm2_5i25.0.read servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf pid.x.do-pid-calcs servo-thread
addf pid.y.do-pid-calcs servo-thread
addf pid.z.do-pid-calcs servo-thread
addf pid.a.do-pid-calcs servo-thread
addf pid.s.do-pid-calcs servo-thread
addf hm2_5i25.0.write servo-thread
# external output signals
setp hm2_5i25.0.pwmgen.00.pwm_frequency 1000
setp hm2_5i25.0.pwmgen.00.scale 100
net pwm-output hm2_5i25.0.pwmgen.00.value
net pwm-enable hm2_5i25.0.pwmgen.00.enable
i get this error
/Laser.hal:26: parameter or pin 'hm2_5i25.0.pwmgen.00.pwm_frequency' not found
and also tried halshow
Attachments:
Last edit: 23 Mar 2025 19:28 by mmt.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19902
- Thank you received: 6737
23 Mar 2025 21:05 #324695
by tommylight
Replied by tommylight on topic neeed help with additional pwm 6i25 and 7i76
Omit the offending line and try again
from
setp hm2_5i25.0.pwmgen.00.pwm_frequency 1000
to
#setp hm2_5i25.0.pwmgen.00.pwm_frequency 1000
---I am pretty sure that is for plasma systems, so the spindle encoder inputs are NOT A/B/Z, but are A0/A1/A2 for 1 to 3 of THCAD.
Anyone, do correct me if that is wrong.
Thank you.
from
setp hm2_5i25.0.pwmgen.00.pwm_frequency 1000
to
#setp hm2_5i25.0.pwmgen.00.pwm_frequency 1000
---
I have flashed the 6i25 with 5i25_7i76x2pld.bit
Anyone, do correct me if that is wrong.
Thank you.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18356
- Thank you received: 5004
23 Mar 2025 21:28 #324697
by PCW
Replied by PCW on topic neeed help with additional pwm 6i25 and 7i76
Yes,5i25_7i76x2pld.bit is a plasma configuration with no PWM
5i25_7i76x2_2pd.bit is a 7I76 configuration wit the last 2 stepgens
per 7I76 replaced with PWM/DIR
(so you don't need the software PWMgen)
5i25_7i76x2_2pd.bit is a 7I76 configuration wit the last 2 stepgens
per 7I76 replaced with PWM/DIR
(so you don't need the software PWMgen)
Please Log in or Create an account to join the conversation.
- mmt
- Offline
- Premium Member
-
Less
More
- Posts: 138
- Thank you received: 3
24 Mar 2025 20:34 #324819
by mmt
Replied by mmt on topic neeed help with additional pwm 6i25 and 7i76
ok my mistake i had/have the 5i25_7i76x2_2pd.bit in the 6i25
so my original post is still the same
thanks
so my original post is still the same
thanks
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18356
- Thank you received: 5004
24 Mar 2025 21:08 #324823
by PCW
Replied by PCW on topic neeed help with additional pwm 6i25 and 7i76
What does
sudo mesaflash --device 5i25 --readhmid
report?
sudo mesaflash --device 5i25 --readhmid
report?
Please Log in or Create an account to join the conversation.
- mmt
- Offline
- Premium Member
-
Less
More
- Posts: 138
- Thank you received: 3
24 Mar 2025 21:13 #324824
by mmt
Replied by mmt on topic neeed help with additional pwm 6i25 and 7i76
sudo mesaflash --device 5i25 --readhmid
[sudo] password for pdt:
Configuration Name: HOSTMOT2
General configuration information:
BoardName : MESA5I25
FPGA Size: 9 KGates
FPGA Pins: 144
Number of IO Ports: 2
Width of one I/O port: 17
Clock Low frequency: 33.3333 MHz
Clock High frequency: 200.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256
Modules in configuration:
Module: DPLL
There are 1 of DPLL in configuration
Version: 0
Registers: 7
BaseAddress: 7000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: IOPort
There are 2 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: QCount
There are 4 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: SSerial
There are 1 of SSerial in configuration
Version: 0
Registers: 6
BaseAddress: 5B00
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes
Module: StepGen
There are 10 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Configuration pin-out:
IO Connections for P3
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
1 0 IOPort StepGen 0 Dir/Table2 (Out)
14 1 IOPort StepGen 0 Step/Table1 (Out)
2 2 IOPort StepGen 1 Dir/Table2 (Out)
15 3 IOPort StepGen 1 Step/Table1 (Out)
3 4 IOPort StepGen 2 Dir/Table2 (Out)
16 5 IOPort StepGen 2 Step/Table1 (Out)
4 6 IOPort StepGen 3 Dir/Table2 (Out)
17 7 IOPort StepGen 3 Step/Table1 (Out)
5 8 IOPort StepGen 4 Dir/Table2 (Out)
6 9 IOPort StepGen 4 Step/Table1 (Out)
7 10 IOPort SSerial 0 TXData0 (Out)
8 11 IOPort SSerial 0 RXData0 (In)
9 12 IOPort SSerial 0 TXData1 (Out)
10 13 IOPort SSerial 0 RXData1 (In)
11 14 IOPort QCount 2 Quad-A (In)
12 15 IOPort QCount 1 Quad-A (In)
13 16 IOPort QCount 0 Quad-A (In)
IO Connections for P2
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
1 17 IOPort StepGen 5 Dir/Table2 (Out)
14 18 IOPort StepGen 5 Step/Table1 (Out)
2 19 IOPort StepGen 6 Dir/Table2 (Out)
15 20 IOPort StepGen 6 Step/Table1 (Out)
3 21 IOPort StepGen 7 Dir/Table2 (Out)
16 22 IOPort StepGen 7 Step/Table1 (Out)
4 23 IOPort StepGen 8 Dir/Table2 (Out)
17 24 IOPort StepGen 8 Step/Table1 (Out)
5 25 IOPort StepGen 9 Dir/Table2 (Out)
6 26 IOPort StepGen 9 Step/Table1 (Out)
7 27 IOPort SSerial 0 TXData2 (Out)
8 28 IOPort SSerial 0 RXData2 (In)
9 29 IOPort SSerial 0 TXData3 (Out)
10 30 IOPort SSerial 0 RXData3 (In)
11 31 IOPort QCount 3 Quad-IDX (In)
12 32 IOPort QCount 3 Quad-B (In)
13 33 IOPort QCount 3 Quad-A (In)
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18356
- Thank you received: 5004
24 Mar 2025 21:29 #324826
by PCW
Replied by PCW on topic neeed help with additional pwm 6i25 and 7i76
That's a normal 7I76x2 configuration
I'll check the firmware
Did you power cycle the PC after loading the firmware?
I'll check the firmware
Did you power cycle the PC after loading the firmware?
Please Log in or Create an account to join the conversation.
- mmt
- Offline
- Premium Member
-
Less
More
- Posts: 138
- Thank you received: 3
24 Mar 2025 21:51 #324831
by mmt
Replied by mmt on topic neeed help with additional pwm 6i25 and 7i76
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18356
- Thank you received: 5004
24 Mar 2025 22:06 #324835
by PCW
Replied by PCW on topic neeed help with additional pwm 6i25 and 7i76
That's the plasma config, the configuration with 2 PWMgens per 7I76 is:
5i25_7i76x2_2pd.bit
5i25_7i76x2_2pd.bit
Please Log in or Create an account to join the conversation.
- mmt
- Offline
- Premium Member
-
Less
More
- Posts: 138
- Thank you received: 3
24 Mar 2025 22:24 #324837
by mmt
Replied by mmt on topic neeed help with additional pwm 6i25 and 7i76
that worked sorry for the mix up
thank you
thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.167 seconds