You can use the shared slot communication support - this way you can communicate between Mach4 and PoBlocks project. In Mach4, enable shared slot support in the plugin settings and in PoBlocks use either the dedicated shared data blocks or share the port of an existing one. In LUA, registers can be accessed as 'PoIL shared #num'.