Siemens SIMATIC CP 340 User Manual page 115

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

Advertisement

Assignment in the data area, instance DB
The P_PRINT function block works together with an I_PRINT instance DB. The DB number
is specified in the call. The instance data block is 40 bytes long. Access to the data in the
instance DB is not permitted.
Note
Exception: If the error STATUS == W#16#1E0F occurs, you can consult the SFCERR or
SFCSTATUS variables for additional details (see the chapter titled "Diagnostics Messages of
the Function Blocks P_SEND, P_RCV and P_PRINT (Page 134)"). For detailed information
refer to "Calling variable SFCERR or SFCSTATUS".
Assignment in the data area, pointer DB
The P_PRINT FB uses the DB_NO and DBB_NO parameters to access a pointer DB in
which the pointers to the data blocks containing the message texts and variables are stored
in a fixed order. You have to create the pointer DB.
The figure shows the structure of the pointer DB addressed by means of the DB_NO and
DBB_NO parameters of the P_PRINT DB.
Figure 6-3
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03
6.4 Using function blocks for the output of message texts to a printer
Structure of the POINTER DB for the P_PRINT Function Block (FB)
Communication using function blocks
115

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents