Welcome! Log In Create A New Profile

Advanced

M42 code not Working

Posted by DarkScreama 
M42 code not Working
July 26, 2017 07:15AM
Hello,

M42 code isn't working. Can't switch AUX Pins or Servo Pins.

FAN Pins are protected. Error: Protected Pin.

I delet the sensitive List (FAN). Error message doesn't come, but still doesn't work.

Ned 5v TTL Pin, which I can control with M code.

Please Help
Re: M42 code not Working
July 26, 2017 08:11AM
What syntax are you using? egs?

What board are you using?

guessing a ramps 1.4,

NB D0 and D1 on aux-1 are the serial port, rx and tx, so you cant use those....

D4,D5,D6,D11 on servo should all be fine...
your not using the 5v line on the servos are you as that is not connected to anything (until you jumper it to vcc)

or is it a ramps 1.3 in which case the ports on the servo change to
D4,D5,D6,D7

Edited 1 time(s). Last edit at 07/26/2017 08:30AM by Dust.
Re: M42 code not Working
July 26, 2017 08:24AM
Board is an TriGorilla 3D ATMEGA2560-16U Chip, replaced RAMPS1.4 + Mega 2560

Firmeware is Marlin attached to Pronterface
Re: M42 code not Working
July 26, 2017 08:32AM
totally differnt pinout... (well just a few differences)



Edited 1 time(s). Last edit at 07/26/2017 08:43AM by Dust.
Re: M42 code not Working
July 26, 2017 08:40AM
So what motherboard type did you set in firmware?

Edited 1 time(s). Last edit at 07/26/2017 08:42AM by Dust.
Re: M42 code not Working
July 26, 2017 08:44AM
Yes...

here: (its' the config from producer)

//// The following define selects which electronics board you have. Please choose the one that matches your setup
// 10 = Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"
// 11 = Gen7 v1.1, v1.2 = 11
// 12 = Gen7 v1.3
// 13 = Gen7 v1.4
// 2 = Cheaptronic v1.0
// 20 = Sethi 3D_1
// 3 = MEGA/RAMPS up to 1.2 = 3
// 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)
// 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
// 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)
// 4 = Duemilanove w/ ATMega328P pin assignment
// 5 = Gen6
// 51 = Gen6 deluxe
// 6 = Sanguinololu < 1.2
// 62 = Sanguinololu 1.2 and above
// 63 = Melzi
// 64 = STB V1.1
// 65 = Azteeg X1
// 66 = Melzi with ATmega1284 (MaKr3d version)
// 67 = Azteeg X3
// 68 = Azteeg X3 Pro
// 7 = Ultimaker
// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
// 77 = 3Drag Controller
// 8 = Teensylu
// 80 = Rumba
// 81 = Printrboard (AT90USB1286)
// 82 = Brainwave (AT90USB646)
// 83 = SAV Mk-I (AT90USB1286)
// 9 = Gen3+
// 70 = Megatronics
// 701= Megatronics v2.0
// 702= Minitronics v1.0
// 90 = Alpha OMCA board
// 91 = Final OMCA board
// 301 = Rambo
// 21 = Elefu Ra Board (v3)

#ifndef MOTHERBOARD
#define MOTHERBOARD 33
#endif
Re: M42 code not Working
July 26, 2017 08:45AM
i can send you the .ino, if you want
Re: M42 code not Working
July 26, 2017 08:47AM
the thing is, 3d printing with this firmware works fine.
don't understand---differnt pinout
Re: M42 code not Working
July 26, 2017 10:15AM
i tested the pins from your pic, doesn't work
Re: M42 code not Working
July 26, 2017 08:54PM
the fact that it says a number for the motherboard shows that the firmware is actually really old, nothing like the current firmware

Pick one pin. which pin have you selected. What exact command are you sending to try it.
Re: M42 code not Working
July 27, 2017 11:04AM
Also... You can use M43 to scan for a pin.

If you connect up an LED or volt meter to a pin, using M43 you can find the pin's logical value.

This is helpful when you are not sure the board is slik screened correctly, or maybe the pins are not labeled at all.
Sorry, only registered users may post in this forum.

Click here to login