Siemens SIMATIC ET 200S Operating Instructions Manual page 256

Technological functions
Hide thumbs Also See for SIMATIC ET 200S:
Table of Contents

Advertisement

2PULSE
5.2 Example: Starting 2PULSE
Configuring with STEP 7 using HW Config
You must first adapt the hardware configuration of your existing ET 200S station.
1. Open the relevant project in SIMATIC Manager.
2. Open the HW Config configuration table in your project.
3. Select the 2PULSE from the hardware catalog. The number 6ES7 138-4DD00-0AB0
4. Double-click this number to open the
5. Save and compile your configuration, and download the configuration in STOP mode of
Integration into the Control Program
Create block FC101 and integrate it in your control program (in OB1, for example). This
block works in this example with the MB10, MB20 and M30.0 memory bits.
In block FC101, the start address of the inputs and outputs of the 2PULSE is 256. If
necessary, take the address from the hardware configuration.
This block sets a pulse duration of 5000 ms and starts pulse output as soon as you have
issued the enable using your control program (SW_ENABLE=1).
STL
Block: FC101
PIB256
L
MB20
T
5000
L
PQW256
T
0
L
MB10
T
M30.0
U
M10.0
=
MB10
L
PQB258
T
256
appears in the infotext. Drag the entry to the slot at which you have installed your
2PULSE.
Addresses tab
On the
the 2PULSE. Make a note of these addresses for subsequent programming.
Parameters
On the
tab, you will find the default settings for the 2PULSE. Leave the
default settings unchanged.
the CPU by choosing "PLC > Download to Module".
Description
//Read feedback messages from channel 0 of the 2PULSE
//Write pulse duration of 5000 ms to channel 0 of the 2PULSE
//Generate SW_ENABLE control signal
//Query start of pulse output
//Set SW_ENABLE=1
//Write control signals to channel 0 of the 2PULSE
DP Slave Properties
you will find the addresses of the slot to which you have dragged
dialog box.
Technological Functions
Operating Instructions, 02/2007, A5E00124867-05

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents