Hi
The short answer is no, not in classic ladder by itself.
Classic ladder generally works on logic inputs / outputs, responding to switches, triggering solenoids, that type of thing.
There are always other ways to do things using external components that can be triggered by logic inputs.
You will have to explain exactly what you are doing.
I suspect you may be trying to mix classic ladder and gcode for a toolchanger or something like that.
Have you looked at re-mapping?
www.linuxcnc.org/docs/html/remap/structure.html
regards