I have been trying to configure a function through a command.
For example, I am able to configure channel selection/switching using an M code.
Within the M code's metacode, I am able to assign parallel axis for say X axis as U and is working.
However, instead of the M code, if I try to replace it with any other word, it does not work.
Also, the word text becomes red in machine configurator.
For example, I will output CH_1 for channel 1 and configure CH_1 instead of the M code.
Any help on this is greatly appreciated
Solved! Go to Solution.
Usually the Machine configurator shown commands in red if they are not known by the parser. You always need to make sure what you add is part of the controller. When you asking about CH_1 I could imagine in the S840D controller that might be a subprogram and not a extra command.
I am not aware of other controllers that CH_1 is a controller key word command.
Thanks for the reply.
I agree with you ond the default Siemens command.
I am trying to substitute CH_1 with an M code for channel selection.
I have CH_1 in the NC program, and on reading this command I would like to execute say M62.
Under the assumption you get a message like "Subprog CH_1 not found" the solution is easy.
Create such a subprog CH_1.SPF and edit it by adding M62 in it.
Now you can configure M62 in the command section of MC.
Thank You for the support.
As you suggested I have configured the command through a sub program, and is working.