Welcome! Log In Create A New Profile

Advanced

"Error: Protected Pin" - M42 P4 S200 gcode RRD Fan extender

Posted by behn66 
"Error: Protected Pin" - M42 P4 S200 gcode RRD Fan extender
April 12, 2017 12:16AM
Dear all,

kindly asking for help.

I followed this instructable [www.clickoslo.com] to get the RRD Fan extender up and running.

I changed in Configuration_adv.h those two lines and uploaded it to the Mega:
#define CONTROLLERFAN_PIN 5
#define E0_AUTO_FAN_PIN 4

When setting M42 P4 S200 or M42 P5 S200 to test the RRD I am getting this error:

Send: M42 P5 S200
Recv: Error Protected Pin
Changing monitoring state from 'Operational' to 'Error: Protected Pin\x0a'

Is there any need to make a change in pins.h as well to avoid this error?
e.g.
#ifndef CONTROLLERFAN_PIN
#define CONTROLLERFAN_PIN -1 <<<<< setting to 5 ??
#endif


I am using 1.1.0-RCBugFix.

any help appreciated

many thanks

christian

Edited 2 time(s). Last edit at 04/12/2017 12:18AM by behn66.
Re: "Error: Protected Pin" - M42 P4 S200 gcode RRD Fan extender
April 12, 2017 03:04AM
firmware stops you directly playing with IO pins that are under control of the controller

ie in pins.h

#define SENSITIVE_PINS { 0, 1, \
X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, FAN1_PIN, FAN2_PIN, CONTROLLERFAN_PIN, \
_E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS BED_PINS \
_H0_PINS _H1_PINS _H2_PINS _H3_PINS _H4_PINS \
_X2_PINS _Y2_PINS _Z2_PINS \
X_MS1_PIN, X_MS2_PIN, Y_MS1_PIN, Y_MS2_PIN, Z_MS1_PIN, Z_MS2_PIN \
}

you can remove it from the above list... but it will confuse the controller, thinking fan is on when your turn it off etc...

Edited 1 time(s). Last edit at 04/12/2017 03:06AM by Dust.
Re: "Error: Protected Pin" - M42 P4 S200 gcode RRD Fan extender
April 15, 2017 03:27PM
Dear Dust,

many thanks for your useful feedback. Finally the RRD is fully working as expected - just as you say the M42 does not work when trying to test it overall.


many thanks

christian
Sorry, only registered users may post in this forum.

Click here to login