Siemens SIMATIC CP 340 User Manual page 158

Ptp coupling and configuration
Hide thumbs Also See for SIMATIC CP 340:
Table of Contents

Advertisement

Programming Example for Standard Function Blocks
9.7 Activation, Start-Up Program and Cyclic Program
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
158
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents