Okuma Macro and writing to file


Results 1 to 6 of 6

Thread: Okuma Macro and writing to file

  1. #1
    Member
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default Okuma Macro and writing to file

    Hi all,

    It's been a while, so a quick re-intro.

    I've been an engineer for 35 years, programming CNC Fanuc for most of those years,

    recently I been introduced to the Okuma MU6300V machines, I'm ok programming in Fanuc Macro B but never programmed Okuma.

    I like the idea of writing reports on the machine,

    I've included a snippet of code below, Is this the best way to do this or is there a better way ?

    Also does anyone have a manual with examples / best practice on this topic.


    Thanks in advance for any help, I think I'll be spending quite a while in the forum.

    Alan

    IF [PRODRUN EQ 1] PT1
    PUT ‘No’
    GOTO PT2
    PT1 PUT 'Yes'
    PT2
    WRITE C

    Similar Threads:


  2. #2
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro and writing to file

    hy, your code is fine pls check attached tiny mess

    with osp installed on windows, all kinds of reports can be created, all kind of apps can be used / kindly

    Attached Thumbnails Attached Thumbnails Okuma Macro and writing to file-untitled-png  
    Last edited by deadlykitten; 05-12-2021 at 02:38 PM.
    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  3. #3
    Member
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro and writing to file

    Thanks for the overcheck and info Kitten.

    Could you give me more info on the OSP software.
    If it’s a download, could you attach a link please.

    Thanks

    Alan



  4. #4
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro and writing to file

    what kind of infos are you interested in ? do you wish for help, or a second opinion on a random code ?

    at this point, you are too general, so i can't give you a specific answer; if you have doubts on something, or you need anything, just say it

    Also does anyone have a manual with examples / best practice on this topic
    don't go that way, it will waste your time; you don't need books; just start with simple stuff, then develop it ( if someone spents a few hours writing his own macro is way much better than reading best books that are out there ); what else to expect from "if-then" and "V2=V1+1" and system variables ? in the end, is all about how you nest the 'if's'; that's all how you allready know fanuc macro b, then i guess all you need is a transition to okuma

    Last edited by deadlykitten; 05-13-2021 at 02:21 AM.
    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  5. #5
    Member JamesQ's Avatar
    Join Date
    Aug 2021
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro and writing to file

    Hi,

    I have similar question regarding writing to file. I added few lines at the start and end of my nc file to calculate and store actual cutting time (refer attachment) in a common variable (e.g. #520). May I know is there there any macro or gcode command to write #520 variable value to the end of corresponded nc file?

    Reason to do so is because my milling machines come with different controllers (Fanuc, Heidenhain etc.), and they are all connected to workshop PC through FTP shared folders to receive NC files from PC. Writing actual cutting time to nc file in shared folder would enable me to retreat this information without having to setting up additional data integration between machines and workshop PC.

    Thank you.

    Attached Thumbnails Attached Thumbnails Okuma Macro and writing to file-cutting-time-program-png  


  6. #6
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro and writing to file

    hy james i have seen others asking same question as you, but there was no simple(cost free) answer; you need file asignemnt functions

    okuma machines have built-in functions, that simply reduces/eliminates costs with integration: receiving timestamp files, sending & autoselection & running program files, and much more, can be done on a default machine / good luck



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Okuma Macro and writing to file

Okuma Macro and writing to file