Ok, as I read this (and please correct me if I'm wrong) you are trying to use an M21 (or 22 or.. ) in combination with a robot system. The way this works in the company I work at is as follows:
...