EasyManuals Logo

Siemens SIMATIC CP 340 User Manual

Siemens SIMATIC CP 340
200 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #115 background imageLoading...
Page #115 background image
Communication using function blocks
6.4 Using function blocks for the output of message texts to a printer
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03
115
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 a
nd P_PRINT (Page 134)"). For detailed information
refer to "Calling variable SFCERR or S
FCSTATUS".
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.
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
3RLQWHUWRVWYDULDEOH
3RLQWHUWRQGYDULDEOH
3RLQWHUWRUGYDULDEOH
3RLQWHUWRWKYDULDEOH
3RLQWHUWRWKHIRUPDWVWULQJ
3RLQWHU'%'%B12
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
'%:Q
Figure 6-3 Structure of the POINTER DB for the P_PRINT Function Block (FB)

Table of Contents

Other manuals for Siemens SIMATIC CP 340

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC CP 340 and is the answer not in the manual?

Siemens SIMATIC CP 340 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC CP 340
CategoryComputer Hardware
LanguageEnglish

Related product manuals