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