Yes, compile from source. That is the only way to chance Marlin' config. There is not config file that it reads.
NO and NC are the wrong way to think about these sensors. They are NPN or PNP transistors, not switches. The output signal is determined by if the signal is pulled up or pulled down by a resistor. They make both npn and pnp versions. Think of then as transistors and it will make sense and read the state at the junction of the resister and transistor. You must recompile anyway to enable bed leveling with the sensor. The firmware will measure the z-height of the bed in a grid pattern and then will know if the build plate is flat or leaning and will compensate. You can't turn this feature on and off unless it is enabled at compile time. You also need enough memory on the controller. Every feature you enable makes the firmware larger. On Fri, Aug 26, 2022 at 11:30 AM gene heskett <[email protected]> wrote: > I bought a bag of npn-no 2mm prox switches. > > I either do not grok the nomemclature or the label on the connecting 3 wire > cord is wrong. > > They claim to be NO, the contact is made, NC in my book, until they are > tripped by detecting something ferrous, at which point they are then open. > > I'm having trouble gaining terminal access to this machine but I assume > a gcode > but in a file with the extension .gcode, will work if printed from an sd > card. > > It looks as if M119 might NOT be the command I need to invert the sense > logic, > as its currently moving away from the nozzle while trying to home Z. > > From the marlin pages, M119 is to get the current states of all endstops. > M120 enables them, M121 disables them. > > But I don't see a command to invert that logic. So other than making a > board with a 4049 > or similar inverter on it and hiding it in the junction box I've made, > what use of these > prox switches is possible? Or rebuilding marlin from the src, provided I > can get the > config from creality, they have been considerably less than helpful in > the past. > > Thanks all. > > Cheers, Gene Heskett. > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/> > > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > -- Chris Albertson Redondo Beach, California _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
