Design a virtual simulation system for material sorting based on PLC simulation software PLCSIM and virtual factory software FactoryIO.Configure the transmission belt,motor,sensor,sorter,and switch buttons of the material sorting system in FactoryIO,configure the I/O port drive between FactoryIO and PLCSIM,write PLC control programs and configure the touch screen,download the PLC program to PLCSIM to start running,and start the touch screen simulation run at the same time,Implement the simulation operation and debugging of a virtual simulation system for material sorting.