it developed a virtual platform used for PLC simulation
based on Visual C++. The ladder of PLC was constructed using the object-oriented method
and the instruction of PLC was transformed from the corresponding ladder with a binary tree. Finally
a virtual experiment of traffic bights at crossroads shows that the virtual PLC simulation software can be used for the training and experiment of PLC.