PAM issues
Having some trouble to get PAM working:
Internal error on command: "PAM".
I thought I followed all the steps correctly, but it must be something I'm doing wrong.
Attaching a screenshot of the dashboard and the printer.cfg in the comment section.
25 Replies
foreign-sapphire•17mo ago
We're gonna need your klippy.log
foreign-sapphire•17mo ago
Seems like you didn't follow the steps correctly as you're missing the PAM macros.
GitHub
pam/ratos_v2.cfg at main · HelgeKeck/pam
PAM for RatOS. Contribute to HelgeKeck/pam development by creating an account on GitHub.
It's right here: https://github.com/HelgeKeck/pam#2-activate
GitHub
GitHub - HelgeKeck/pam: PAM for RatOS
PAM for RatOS. Contribute to HelgeKeck/pam development by creating an account on GitHub.
You need to include ratos_v2 in this case
foreign-sapphire•17mo ago
Thanks! I'm not in front of the computer right now, but I'll look into it later today.
Would it be better to just delete all this and do a fresh install, do you think?
I'd try just following the installation steps first i think 😄
foreign-sapphire•17mo ago
All these macros in the first link are located in the pam.cfg and ratos.cfg in the PAM-folder. Do I need to copy all of it into my printer.cfg?
When adding [include pam/ratos.cfg] to my printer.cfg, I get this error message shown in the attached photo
No you need to include pam/ratos_v2.cfg.
foreign-sapphire•17mo ago
Aaaahhh...
Include file '/home/pi/klipper_config/pam/ratos_v2.cfg' does not exist
oh wait sorry @malpa0183 i see you're still on RatOS v1
So it's pam/ratos_v1.cfg
This seems like you haven't included pam/pam.cfg
Oh.. pam.cfg just includes ratos.cfg
Okay.. @Helge Keck i'm gonna need your help here, i'm confused.
reading.....
remove EVERYTHING pam related from your printer cfg, i see a huge pam config, remove all of it
then just use this
[pam]
[gcode_macro _START_PRINT_BED_MESH]
gcode:
{% set default_profile = printer["gcode_macro RatOS"].bed_mesh_profile|default('ratos') %}
BED_MESH_CLEAR
{% if printer["gcode_macro RatOS"].calibrate_bed_mesh|lower == 'true' %}
PAM PROFILE={default_profile}
BED_MESH_PROFILE LOAD={default_profile}
{% elif printer["gcode_macro RatOS"].bed_mesh_profile is defined %}
BED_MESH_PROFILE LOAD={printer["gcode_macro RatOS"].bed_mesh_profile}
{% endif %}
assuming you are using ratos2foreign-sapphire•17mo ago
Still on v1