Testing
Start a pulse output with SW_ENABLE=1 and monitor the STS_ENABLE and STS_DO
feedback bits using "Monitor/Modify Variables".
1. Select the "Block" folder in your project. Choose the "Insert > S7 Block > Variable Table"
2. Open the VAT 1 variable table, and enter the following variables in the "Address" column:
3. Choose "PLC > Connect To > Configured CPU" to switch to online.
4. Choose "Variable > Monitor" to switch to monitoring.
5. Switch the CPU to RUN mode.
Result
The following table shows you which activity triggers which result.
Activity
When you switch the CPU to RUN, the following results are
obtained:
Start the pulse output by setting memory bit 30.0 (Variable →
Modify → )
Directly after the start...
After the 5 s pulse duration has expired
To start further pulse output, you must delete SW_ENABLE (memory bit M30.0 = 0) and
reset it (memory bit M30.0 = 1).
You can change the pulse duration in the control program.
Technological Functions
Operating Instructions, 02/2007, A5E00124867-05
menu command to insert the VAT 1 variable table, and then confirm with
M20.0 (STS_ENABLE)
M20.1 (STS_DO)
M30.0 (SW_ENABLE)
Result
All the LEDs are turned off
•
STS_ENABLE = 0
•
STS_DO = 0
•
STS_ENABLE = 1
•
STS_DO = 1
•
LED 4 for DO 0 lights up
•
STS_ENABLE = 0
•
STS_DO = 0
•
LED 4 for DO 0 is turned off
•
2PULSE
5.2 Example: Starting 2PULSE
OK
.
257