Involved in the assembly of a N-linked pentasaccharide that decorates the S-layer glycoprotein and flagellins. Involved in the biosynthesis of the hexuronic acid found at position 3 of the pentasaccharide. alpha-D-glucose 1-phosphate + H(+) + UTP = diphosphate + UDP-alpha-D-glucose Cell surface structure biogenesis; S-layer biogenesis. Mutants exhibit defective or limited motility. Belongs to the UDPGP type 2 family.