Specify the dimensions of your main frame and subframes and this online utility will create them for you.
Four status bits accompany each subframe.