Siemens SIMATIC S7-300 Quick Start Manual page 68

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

Advertisement

Downloading and Testing Your User Program
How Do You Test Your STL Program?
Introduction
You test your STL program by displaying the program status for each STL
statement in the status fields you have selected. Program status display is
updated cyclically and only displayed for the area visible to the STL editor.
Prerequisites
In order to be able to display the program status, the following prerequisites
must be fulfilled:
How Do You
The table below shows you how to test an STL program:
Proceed?
Step
Select the "Blocks" container in your online
project "TLIGHT".
In the right-hand window, select the block you
1.
want to test (here FC1), and open the block with
the menu command Edit
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 'LAD/STL/FBD' dialog box, select the
'STL' tab with the menu command Options
4.
Customize... and click here on 'Default'. 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-6
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 STL program test.
Status bit, RLO, and standard status will be
displayed.
The STL program status is displayed in the code
section of FC1 in the form of a table.
Display of the STL 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