528,037 active members*
3,447 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Fanuc Ladder question WINDW(SUB52) to macro variable (FUNC 22)
Results 1 to 6 of 6
  1. #1
    Registered
    Join Date
    Aug 2010
    Posts
    27

    Fanuc Ladder question WINDW(SUB52) to macro variable (FUNC 22)

    Fanuc WINDW(SUB52) to macro variable (FUNC 22)

    Can someone provide an example rung of the SUB52 WINDW to macro variables -function 22. I have looked through my archives and can't find any. I am having problems with the input data structure/format. I have the manuals and just not getting it. I always wished the Fanuc manuals would show examples.
    The builder(Murata MW) is using all the Macro DI/O F54.s and we need to pass a few more inputs. Example:
    When X4.0 =1 write to #700=1, when =0 write #700=0
    Thanks in advance
    Burke

  2. #2
    Registered
    Join Date
    Jun 2010
    Posts
    161
    I've attached a page that shows an example of writing a macro variable wth Window Function 22 that would apply to a Series 16/18/21 CNC control. Once you get the example working and are able to see the formatting of the decimal places, you can tailor it to your own application. When working with Window Functions, I often prefer to use Data Tables for my Input and Output data. It helps with the debugging, inputting and display of the data.
    Attached Files Attached Files

  3. #3
    Registered
    Join Date
    Aug 2010
    Posts
    27

    Thanks cnc2149

    Thanks for the quick help.
    Now that I want to toggle it always a 1 or a 0, I will have another data table with the oposite value and always hold one active with a NO and NC contact. Agreed?
    Question. What is the importance of your example R500? Do I just throw any open register on the coil?

    Burke

  4. #4
    Registered
    Join Date
    Jun 2010
    Posts
    161
    This function is a "low speed response" function as it can require 2 or more sweeps of the ladder to execute. You would want to use the R500 contact to interlock with any other Low Speed response functions you may be using. Window Functions are powerful, but are CPU hogs, so use them only when you need them. You want to avoid running them continuously - even the high speed ones.

    When R500.0 = 1, the function is executing. You can release the ACT signal when R500.0 goes back to 0.

  5. #5
    Registered
    Join Date
    Aug 2010
    Posts
    27
    perfect

    Thanks again

    burke

  6. #6
    Member
    Join Date
    Jan 2020
    Posts
    1

    Re: Fanuc Ladder question WINDW(SUB52) to macro variable (FUNC 22)

    Please send attachment

Similar Threads

  1. Macro variable #1000, how to edit
    By hydrospin01 in forum Hyundai Kia
    Replies: 1
    Last Post: 08-03-2012, 02:43 AM
  2. Fanuc custom Macro Question????
    By ixoxi999 in forum Fanuc
    Replies: 9
    Last Post: 12-08-2011, 11:31 AM
  3. macro b local variable
    By samu in forum Fanuc
    Replies: 4
    Last Post: 12-19-2010, 12:55 AM
  4. Macro Variable Lock
    By James L in forum Haas Mills
    Replies: 2
    Last Post: 07-23-2009, 02:29 PM
  5. Replies: 4
    Last Post: 10-26-2008, 04:42 PM

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
  •