Programming Example for Standard Function Blocks
9.7 Activation, Start-Up Program and Cyclic Program
PtP coupling and configuration of CP 340
158
Manual, 04/2011, A5E00369892-03
Data is sent to the communication partner on a signal change from "0" → "1" at input I 0.6
(PRINT REQ).
A RESET PRINT can be sent to the CP 340 when the signal at input I 0.2 is at "1". If the
signal state is statically "1", the sending of data has been deactivated.
In the example, the standard function V24_STAT is also still being called cyclically. The state
of the CP 340 inputs/outputs is displayed at output byte QB 5.
Example
Example of a printout with the example program for the CP 340:
SIMATIC S7/CP 340
Example for print mode
At 23:32:07.754 hours: Level reaches upper limit
At 23:32:16.816 hours: Level exceeds upper limit
At 23:32:21.681 hours: Level falls below upper limit
The level 200 l was reached at 23:32:26.988 hours
Copyright © Siemens AG 1996. All rights reserved
Содержание SIMATIC CP 340
Страница 6: ...Preface PtP coupling and configuration of CP 340 6 Manual 04 2011 A5E00369892 03 ...
Страница 10: ...Table of contents PtP coupling and configuration of CP 340 10 Manual 04 2011 A5E00369892 03 ...
Страница 186: ...Accessories and Order Numbers PtP coupling and configuration of CP 340 186 Manual 04 2011 A5E00369892 03 ...
Страница 190: ...Literature on SIMATIC S7 PtP coupling and configuration of CP 340 190 Manual 04 2011 A5E00369892 03 ...
Страница 200: ...Index PtP coupling and configuration of CP 340 200 Manual 04 2011 A5E00369892 03 ...