just use PLC simulator software ex: PLC sim