plc pulse signal dividing program

this is plc ladder diagram,about plc pulse signal dividing program
the rising edge of the X20 is used to trigger the output of the M0 coil, and the output of the M0 normally open contact is used to lock the output.