Siemens SIMATIC S7-300 Quick Start Manual page 70

Hide thumbs Also See for SIMATIC S7-300:
Table of Contents

Advertisement

Downloading and Testing Your User Program
How Do You Test Your LAD Program?
Introduction
You can test your LAD program by defining how you want to display the
signal flow within the networks of a block.
Prerequisites
To display the signal flow, the following prerequisites must be fulfilled:
How Do You
The table below shows you how to test a LAD program:
Proceed?
Step
Select the "Blocks" container in your online
project "TLIGHT".
1.
In the right-hand window, select the block you
want to test (here FC1), and open it with the menu
command File
Select the menu command Debug
Environment... and click 'No Condition' as the
2.
trigger condition in the dialog box which follows.
Close the dialog box with "OK".
Select the 'Process' test environment via the menu
3.
command Debug
Process.
In the 'STL/LAD/FBD' dialog box, select the
'LAD/FBD' tab with the menu command
4.
Options
Customize... and click here on the
settings you want for color and line thickness.
Exit the dialog box with "OK".
Start recording the program status with the menu
5.
command Debug
Stop recording the program status with the same
6.
menu command Debug
7-8
You must have saved the block without errors and downloaded it to the
CPU.
The CPU is in RUN and the user program is running.
You must open the block to be tested online.
Procedure
Open Object.
Call
Test Environment
Monitor
Monitor.
Result
FC1 is opened online.
This means that you have selected no trigger
condition for the call environment of the block.
This means that the status of the statements for
your program test will only be detected on the
first loop run.
This defines the options for the LAD program
test. Current flow is displayed in the colors and
line thicknesses selected.
The LAD program status is displayed in the code
section of FC1 in the form of a signal flow.
Display of the LAD program status is switched
off again.
Primer: S7-300 Programmable Controller, Quick Start
C79000-G7076-C500-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents