Category: Basic Configuration
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
# 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