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
114
Manual, 04/2011, A5E00369892-03
The DONE output shows "job completed without errors". ERROR indicates whether an error
has occurred. If an error has occurred, the corresponding event number is displayed in
STATUS (see Chapter "Diagnostics Messages of the Function Blocks P_SEND, P_RCV and
P_PRINT (Page 134)"). If there were no errors, STATUS has the value "0". DONE and
ERROR/STATUS are also output when the P_PRINT function block is reset. In the event of
an error, the binary result BR is reset. If the block is terminated without errors, the binary
result has the status "1".
Note
The P_PRINT function block does not have a parameter check, which means that if there are
invalid parameters, the CPU may switch to STOP mode.
Before the CP 340 can process an activated request after the CPU has changed from STOP
to RUN mode, the CP-CPU startup mechanism of the P_PRINT function block must have
been completed (see Chapter "General Information on Program Processing (Page 124)").
Any requests initiated in the meantime do not get lost. They are transmitted once the start-up
coordination with the CP 340 is finished.
Block call
STL representation
LAD representation
CALL P_PRINT, I_PRINT
REQ: =
R: =
LADDR: =
DB_NO: =
DBB_NO: =
DONE: =
ERROR: =
STATUS: =
(1
(12
5(4
1'5
5
(5525
/$''5
67$786
'%B12
'%%B12
3B35,17
,B35,17
Note
The parameters EN and ENO are only present in the graphical representation (LAD or FBD).
To process these parameters, the compiler uses the binary result BR.
The binary result is set to signal state "1" if the block was terminated without errors. If there
was an error, the BR is set to "0".
Содержание 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 ...