Starting the simulation

Top  Previous  Next

 

Change again into the machine by clicking the machine-window, or select the gearwheel on the toolbar.

 

1.) Start the simulation

Now start the simulation by clicking on the -symbol. Now the machine simulation and the PLC-program will be executed alternatively.

 

2.) Start the simulated machine

Click on the Start-button you have generated. Now, when all is done according to plan, the box should go to the right until it reaches the limit switch, then turn to the left limit switch, and go on forwards and backwards continually.

If the wagon does not move back and forth, see here: Possible errors in the example

 

3.) Adjustment of the start and stop ramps

When activated, the limit switches will turn red, which you can hardly detect, as the wagon will immediately move to the other direction again. You can take preventive measures by prolonging the ramp time of the motor:

       Stop the simulation by clicking on . You can also stop by clicking anywhere on the white of the window with right mouse button.

 

 Open the edit mask of the linear mover by clicking right (the cursor must have already the form of a hand when clicking) and click on the button Drive. Now the edit mask of the motor of the linear mover is opened. Enter 2 s into the field Duration                (tabsheet Ramps). Confirm 2 times by OK and start the machine again. Now you can see clearly how the limit switches will change their color. In case the wagon moves too slowly, click on the rabbit in order to accelerate the procedure.

 

Monitor program execution