Staad parameter regarding UNT, UNB, UNR and UNL.

it is confusing. when we say the horizontal axis as principle it means local Z? what if the member is vertical. if local Z is principle axis which side is top? is it the side the local Z arrow pointing to? equally confusing is what does it mean when we say vertical axis as principal. it means the local Y axis? thanks