Download Print this page

Siemens SIMATIC Manual page 50

Automation system
Hide thumbs Also See for SIMATIC:

Advertisement

Step
Action
6
You can make the following tests.
S
S
Diagnostics/Fault elimination
Errors can occur as a result of operator faults, incorrect wiring or configuration con-
flicts.
How to diagnose such errors and messages is described in the manual, Chapter
Error handling and interrupts".
"
Samples
The
for orientation. You can customize all samples according to your personal applica-
tions.
Siemens AG
Bereich Automatisierungs und Antriebstechnik
Geschaeftsgebiet Industrie Automatisierungssysteme
Postfach 4848, D 90327 Nuernberg
8
Siemens Aktiengesellschaft
Starting/Stopping the counter:
– Start the counter by setting the variables
SW_GATE (SFB parameter SW gate)
and S_HWT (Simulation HW gate) in the
VAT to 1 (logical AND).
– Stop the counter by resetting S_HWT or
SW_GATE to zero.
Loading a count value to the counter:
– JOB_ID = 01 hex ("Write counter di-
rectly")
– JOB_VAL = Count value (-2
– JOB_REQ = 1,
job initiates at the positive edge
ZEn26_02_TF_____31xC_Cnt" project contains more samples you can use
"
Result
S
You can monitor the actual counter
value at the SFB output parameter
COUNTVAL. You can view the status
of the SW or HW gate in the varia-
bles STS_GATE or STS_STRT.
S
You can view the count value loaded
at the SFB output parameter
COUNTVAL. If no load error has oc-
curred, the status at the output para-
31
31
to +2
-1)
meters JOB_DONE = 1 and
JOB_ERROR = 0.
E Siemens AG 2001
Automation System S7-300, Getting Started – Counting
We reserve the right of modifications
A5E00105536 01
Printed in the Fed. Rep. of Germany
A5E00105536-01

Advertisement

loading

This manual is also suitable for:

S7-300