Re: Mitsubishi m700 Marco
Quote:
Originally Posted by
got2be
Hi everyone.
We have a Wuhan CH5116B Vertical Lathe machine with Mitsubishi M700. We have an issue with ATC. Can anybody explain me, how can I use PLC devices with global variables to create a macro for tool change?
I found some information about variables #50000-52749. By using these variables, I can read data from R8300-R29799, but unfortunately it doesn't work at all.
My LADDER looks like.
TF1-------------[MOV R536 R8300]
%
O7755()
(test)
#2=#50000 (R8300, R8301)
IF[#2EQ1]GOTO10
N10
#1=30
N300
G53G00A#1
%
Thank you in advance.
Hello got2be,
For a start, your program code is flawed. The Conditional Statement "IF[#2EQ1]GOTO10" is irrelevant; the program will execute the same way whether the Conditional Statement is included or not.
In the above program, if #2=1. then the Conditional Block will test True and the program would branch to N10, which happens to be the Next Block. If #2 doesn't equal 1, then the Conditional Block will test False and therefore will not specifically branch to N10. When the Conditional Statement tests False, the program will simply step on to the Next Block, which just happens to be the N10 Block. Accordingly, the program executes in the same way irrespective of the value of #2.
Regards,
Bill
Re: Mitsubishi m700 Marco
Quote:
Originally Posted by
angelw
Hello got2be,
For a start, your program code is flawed. The Conditional Statement "IF[#2EQ1]GOTO10" is irrelevant; the program will execute the same way whether the Conditional Statement is included or not.
In the above program, if #2=1. then the Conditional Block will test True and the program would branch to N10, which happens to be the Next Block. If #2 doesn't equal 1, then the Conditional Block will test False and therefore will not specifically branch to N10. When the Conditional Statement tests False, the program will simply step on to the Next Block, which just happens to be the N10 Block. Accordingly, the program executes in the same way irrespective of the value of #2.
Regards,
Bill
Thank you Bill
I found a way how to use these variables, but right now I'm looking for Register in PLC of the axe direction (CW or CCW). Anyway thank very much.