Siemens SIMATIC ET 200S Operating Instructions Manual page 269

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

Advertisement

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 "2 PULSE" with the number 6ES7 138-4DD01-0AB0 in the hardware catalog. Drag
4. Double-click this slot to open the "Properties - 2PULSE" dialog box.
5. Save and compile your configuration, and download the configuration in STOP mode of
Integration into the Control Program
Create block FC 101 and integrate it in your control program (in OB 1, for example). This
block works in this example with the MB10, MB20 and M30.0 memory bits.
In block FC 101, 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 500 ms and starts pulse output as soon as you have
issued the enable using your control program (SW_ENABLE = 1).
STL
Block: FC101
L
PEB256
T
MB20
L
5000
T
PAW256
L
0
T
MB10
U
M30.0
=
M10.0
L
MB10
T
PAB258
Technological Functions
Operating Instructions, 06/2010, A5E00124867-07
the entry to the slot at which you have mounted your 2PULSE.
Note
Do not use the entry "2 PULSE ext. control interface", otherwise the example program
below will not function.
On the "Addresses" tab, you will find the addresses of the slot to which you have dragged
the 2PULSE. Make a note of these addresses for subsequent programming.
On the "Parameters" tab, you will find the default settings for the 2PULSE. Set the
operating mode to "Pulse output". Leave the other 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 500 ms to Channel 0 of the 2PULSE
//Create control signal SW_ENABLE
//Query start of pulse output
//Set SW_ENABLE = 1
//Write control signals to Channel 0 of the 2PULSE
2PULSE
5.3 Example: Starting 2PULSE
269

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents