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.