It's not really complex for a programmer. If you aren't one it is in deed not as easy.It is more or less just adding a "case 456:"..."break;" to the M code list in commands.cpp and add what you want to do. You find lots of samples, e.g. READ(77); reads pin 77 state. Of cours eit must be f´defined as input before.What do you want to achieve with this?