Download Print this page

Siemens SIMATIC Manual page 49

Automation system
Hide thumbs Also See for SIMATIC:

Advertisement

Step
Action
3
Double-click on the "Function blocks" container.
4
Copy all function blocks to your project under
SIMATIC 300 Station > CPU3xx > S7 Program > Function blocks.
Function block Name
OB1:
FB11:
DB11:
SFB47:
DB16:
VAT:
5
Copy the symbol table to your project under
SIMATIC 300 Station > CPU3xx > S7 Pro-
gram.
6
In SIMATIC Manager, select
SIMATIC 300 Station > CPU3xx > S7 Pro-
gram > Function blocks .
7
Download all S7 function blocks contained to
your CPU with PLC > Download to CPU (CPU
in STOP state).
5th step: Test run
Step
Action
1
In your project directory "Function blocks",
double–click on the VAT "VAT_GETST_C".
2
Go Online via PLC > Connect to > Configu-
red CPU.
3
Switch to monitoring mode via
Variable > Monitoring.
4
Switch the CPU to RUN.
5
In the variable S_IMP_H of the VAT, select the count pulse source:
S
S_IMP_H = 0:
The pulse source is a programmable SW clock generator. Its frequency is adjustable
via T_PULSE variable. The clock is connected to the pulse input via a digital output
(see 1st step: Wiring)
S
S_IMP_H = 1:
Specify the count pulses by manually setting and resetting the S_IMP_T variable in the
VAT.
Automation System S7-300, Getting Started – Counting
A5E00105536-01
(in the symbol bar)
CYCLE_EXC
GETST_C
DI_GETST_C
COUNT
DI_COUNT
VAT_GETST_C
Result
You are shown all function blocks of the
S7 program.
Description
Cyclic program
Sample 1: COUNT, First steps
Instance DB to GETST_C
SFB COUNT
Instance DB to SFB COUNT
Variable table
The symbol table is stored in your pro-
ject.
You are shown all function blocks of the
S7 program.
The program and configuration are
downloaded from the PG to the CPU.
Result
You are shown the table of variables for
monitoring and controlling.
The "STOP" status of the CPU pops up
at the lower right.
The "Status value" column displays the
actual values of the operands.
The "RUN" status of the CPU pops up at
the lower right.
7

Advertisement

loading

This manual is also suitable for:

S7-300