Hey all!
Well, I've got another interesting question for you.
How can I transfer a value from a ladder logic counter to my NC? I would like to use a custom M-code to count the holes in a part, and then return this to the NC. I will be making some decision logic on further machining depending on the numbe rof holes I find.
I can transfer individual bits, I know, by setting the G1054.0 -> G1055.7 bits to change the state of #1000-#1015. However, those are only 1's and 0's, right?
I want to transfer a number like, say, "9", to one of the custom macro variable values, say, #134.
I need this, because my NC code would say something like:
IF[#134LT12]GOTO 45
...
The number in #134 would come from my counter.
Please, if you can help me out, I'd appreciate it!
Thanks!