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 #114 background imageLoading...
Page #114 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
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_SE
ND, P_RCV and
P_
PRINT (Page 134)"). If there were no errors, STATUS has the value "0". DONE and
ERRO
R/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 Pro
cessing (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".

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