Macro help please
Close
Login to Your Account
Likes Likes:  0
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2016
    Country
    UNITED STATES
    State/Province
    Florida
    Posts
    23
    Post Thanks / Like
    Likes (Given)
    5
    Likes (Received)
    1

    Default Macro help please

    Hey folks I am hoping to get a few things straight on the Okuma control. I am working with two l300 genos lathes with live tooling. I am used to fanuc macro B but so far I have been able to easily carry what I know over to the okumas. What I actually need to know is Can I call a subroutine from a if statement? I.E If[v1=1]CALL 0BORE. I am setting up a generic face/turn/drill/tap subprogram for some of our easier stuff. Thanks in advance

  2. #2
    Join Date
    Jul 2018
    Country
    UNITED STATES
    State/Province
    Virginia
    Posts
    1
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    0

    Default

    It's been a while since I ran an Okuma with macro programming; but I'm not familiar with the CALL command... That isn't C++, is it? If I was going to attempt that, I would just put M98 P#### after my IF statement; where #### is the 4-digit program number.

  3. #3
    Join Date
    Jun 2017
    Country
    NETHERLANDS
    Posts
    43
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    4

    Default

    100% sure what you want, can be made.
    First it has te to be IF [V1 EQ 1]
    Second it has to be OBORE not 0BORE

    But maybe you have to do it an other way.

    IF[V1 NE 1] NSRN
    CALL OBORE
    NSRN
    ....continue the
    .... rest of
    .... the program

    Hope this helps you


Tags for this Thread

Bookmarks

Posting Permissions

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