The manual talks about output 8 & 9 but how do you map to an M Code?
TB300 does not have any information about that.
You have to change the PLC program.
The request flow is generally like this:
1) Custom M function macro files "mfuncxx.mac" uses M94 and M95 to turn a request bit on and off.
2) The PLC program sees that M function request bit, combines it with any other relevant logic, and uses that to turn an output on or off.
The request bit number (the number which follows M94 or M95) does not necessarily have to be the same as the associated CNC M function, but your program will be a little easier to understand if you do it that way.
Neither the request bit number nor the associated CNC M functions need to match the number of the output to be controlled.
Suppose you want to use M71 to turn on OUT9, and M72 to turn it off, and there are no limitations or interlocks associated with it.
Then you might choose request bit #71. You do not need to use another request bit for turning off. In simple cases like this, the second M function just turns off the request that was set by the first one.
So your mfunc71.mac file might read:
and your mfunc72.mac file might read:
Your PLC program would include the following definitions in the definitions sections:
Code: Select all
M71Out IS OUT9
;...
M71 IS SV_M94_M95_71
and it would include the following code in MainStage somewhere:
In the original inquiry, Moose said that there was some type of logic already in place which turns OUT9 on and off using the Aux3 key. That will have to be located and removed in order for replacement code to work correctly. As a starting point, search the PLC source file to find the definition of OUT9, then search for references to whatever name was given to it.