Communication via Function Blocks
6.1 Overview of the Function Blocks
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
128
Manual, 09/2008, A5E02191071-01
6.1
Overview of the Function Blocks
The S7-300 programmable controller provides you with a number of function blocks which
initiate and control communication between the CPU and the CP 341 in the user program.
Function blocks/functions
The table below lists the function blocks/functions of the CP 341 and describes their
purpose.
Table 6- 1
Function blocks / functions of the CP 341
FB/FC
Meaning
Protocol
FC 5 V24_STAT
(Version 2.0)
The V24_STAT function allows you to read the signal states at the
RS 232C interface of the CP 341-RS 232C.
ASCII driver
FC 6 V24_SET
(Version 2.0)
The V24_SET function allows you to set/reset the outputs at the
RS 232C interface of the CP 341-RS 232C.
ASCII driver
FB 7 P_RCV_RK
The P_RCV_RK function block allows you to receive data from a
communication partner and place it in a data block or to provide data to
the communication partner.
3964(R) procedure,
ASCII driver, RK 512
computer link
FB 8 P_SND_RK
The P_SND_RK function block allows you to send an entire area or
subarea of a data block to a communication partner or fetch data from
the communication partner.
3964(R) procedure,
ASCII driver, RK 512
computer link
FB 13 P_PRINT_RK
The P_PRINT_RK function block enables you to output a message text
with up to 4 variables to a printer.
Printer driver
Scope of supply and installation
The function blocks of the CP 341, together with the parameter assignment interface and the
programming example, are supplied on CD which comes with this manual.
The function blocks are installed together with the parameter assignment interface. After
installation, the function blocks can be found in the library:
●
CP 341: FC 5 V24_STAT (Version 2.0), FC 6 V24_SET (Version 2.0), FB 7 P_RCV_RK,
FB 8 P_SND_RK and FB 13 P_PRINT_RK
You open the library under "CP PTP\CP 341\Blocks" in the STEP 7 SIMATIC Manager by
selecting the File > Open > Library menu command.
When working with the function blocks, you only have to copy each function block to your
project.
长沙工控帮教育科技有限公司
www.gkbpx.com