Lancie, I have a very basic level on programming; can you explain better more your programm: for example why do you use a counter on line N°5
The Counter is for the Advanced Exercises. You can skip that if you want (the program will work without it, but not as well. Put if in if you want your program to run without spilling one particle of material. The counter allows you to set up an analog control so that you can stop the fill at any point. If you wait for Input I:1/04 Fill Sensor, then at the highest speeds you will overfill the box (unless you use the counter also).
According to pdf doc I sent; at what part can I insert your programm?
Well, let me see. You had 5 rungs (0 to 4). I would insert the rungs I wrote at Rung 4. Replace your Rung 4 with the 4 new ones (Rungs 4, 5, 6 and 7), because you don't need you old Rung 4 anyway. In fact, I do not recommend using any of the Latch and Unlatch instructions in this program. Latching a motor on is for more advanced users. Beginners should stick to instructions that drop out when the power is lost so your motor will stop and stay stopped.
Other suggestions: For your Rungs 0 and 1, replace with one rung with an Output Energize (OTE instructions) for the Conveyor Motor. Yes, I don't recommend using the Latch instruction for motors. Are you sure about the address that you used (O:100)? Last time I looked, the Silo Simulator used Output O:2/0 for the Conveyor Motor.
On Rung 0 left side, you need 3 "input" contacts to control the conveyor motor: an XIC (Examine if Closed) for System Run (O:2/2), followed by a XIO (Examine if Open) for Box Prox Sensor (I:1/3), and on a parallel branch with I:1/3, an XIC for Box Full Indicatior O:2/4.
For your Rungs 2 & 3, Replace with a new Rung 1: Add a blank rung with an OTE (Output Energize) for the Silo Solenoid Valve O:2/1. To control the Silo Solenoid Valve, add 3 instructions: XIC for System Run Mode, XIC for Box Prox Sensor, XIO for Box Full Indicator.
Rung 2: Add a blank rung with an OTE (Output Energize) for the System Run relay O:2/2. Add Stop pusbutton I:1/1, and Start pushbutton I:1/0, and a seal-in contact O:2/2 to hold the System Run relay on when the Start PB is pressed.
Rung 3: Add a blank rung with an OTE (Output Energize) for the Box Filling Indicator O:2/3. Add XIC contact on left side for Solenoid Valve O:2/1 to turn Box Filling Indicator On and Off.
Rungs 4, 5, 6, and 7: As previously shown. That's the whole program! Put it together, run it, study it, then come back and ask me how it works.