  With the advent of 5G era, factories are transitioning towards wireless
networks to break free from the limitations of wired networks. In 5G-enabled
factories, unmanned automatic devices such as automated guided vehicles and
robotic arms complete production tasks cooperatively through the periodic
control loops. In such loops, the sensing data is generated by sensors, and
transmitted to the control center through uplink wireless communications. The
corresponding control commands are generated and sent back to the devices
through downlink wireless communications. Since wireless communications,
sensing and control are tightly coupled, there are big challenges on the
modeling and design of such closed-loop systems. In particular, existing
theoretical tools of these functionalities have different modelings and
underlying assumptions, which make it difficult for them to collaborate with
each other. Therefore, in this paper, an analytical closed-loop model is
proposed, where the performances and resources of communication, sensing and
control are deeply related. To achieve the optimal control performance, a
co-design of communication resource allocation and control method is proposed,
inspired by the model predictive control algorithm. Numerical results are
provided to demonstrate the relationships between the resources and control
performances.
