Table:
begin	end	state
1	28	non-cytoplasmic
29	51	transmembrane
52	65	cytoplasmic
66	86	transmembrane
87	105	non-cytoplasmic
106	123	transmembrane
124	168	cytoplasmic
169	190	transmembrane
191	203	non-cytoplasmic
204	226	transmembrane
227	242	cytoplasmic

Input:
>Pf6N2E2_2959 Histidine ABC transporter, permease protein HisQ (TC 3.A.1.3.1)
MFEQLLQNLGLSAFSLQGFGPLLMQGTWMTIKLSALSLLLSVLLGLLGASAKLSSVKLLR
IPAQLYTTLIRGVPDLVLMLLIFYSLQTWLTSLTDFMEWEYIEIDPFGAGVITLGFIYGA
YFTETFRGAILSVPRGQVEAATAYGLKRGQRFRFVVFPQMMRFALPGIGNNWMVMLKATA
LVSIIGLADLVKAAQDAGKSTYQLFYFLVLAALIYLLITSASNFILRWLERRYAAGAREA
VR

Or try the official Phobius web server, which has a different display

Reference: Advantages of combined transmembrane topology and signal peptide prediction - the Phobius web server