540,719 active members*
7,620 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2021
    Posts
    2

    Mitsubishi m700 Marco

    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.

  2. #2
    Registered
    Join Date
    Sep 2010
    Posts
    1229

    Re: Mitsubishi m700 Marco

    Quote Originally Posted by got2be View Post
    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

  3. #3
    Member
    Join Date
    Mar 2021
    Posts
    2

    Re: Mitsubishi m700 Marco

    Quote Originally Posted by angelw View Post
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •