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 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.
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
'%QXPEHU
'%%QXPEHU
/HQJWK
3RLQWHUWRVWYDULDEOH
3RLQWHUWRQGYDULDEOH
3RLQWHUWRUGYDULDEOH
3RLQWHUWRWKYDULDEOH
3RLQWHUWRWKHIRUPDWVWULQJ
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)
Содержание 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 ...