The work proposed in this thesis concerns the automation and monitoring of a semi-automatic ESM 10-100 bagging machine.The first part is entirely devoted to studying the operating principle of the bagging machine, by presenting the various components of the bagging machine.The second part is dedicated to the automation of the bagging machine and simulation using a S7-300 PLC.The third part deals with the monitoring of the bagging machine, using the Petri net (RdP) modeling and monitoring tool.