Programming Example for Standard Function Blocks
9.3 Blocks Used
PtP coupling and configuration of CP 340
150
Manual, 04/2011, A5E00369892-03
9.3
Blocks Used
Blocks Used
The table below shows the blocks used for the sample program.
Block
Symbol
Description
OB 1
CYCLE
Cyclic program processing
OB 100
RESTART
Restart processing
DB 2
DB_P_RCV
Instance DB for P_RCV FB
DB 3
DB_P_SEND
Instance DB for P_SEND FB
DB 4
DB_P_PRINT
Instance DB for P_PRINT FB
DB 10
SEND_DB
Send data block
DB 20
RCV_DB
Receive data block
DB 30
DB_PRT_AUFTR
Pointer DB for format string and variables
DB 31
DB_VAR1
DB data for variable 1
DB 32
DB_VAR2
DB data for variable 2
DB 33
DB_VAR3
DB data for variable 3
DB 34
DB_VAR4
DB data for variable 4
DB 35
DB_STRING
DB data for format string
FB 2
P_RCV
Standard FB for receiving data
FB 3
P_SEND
Standard FB for sending data
FB 4
P_PRINT
Standard FB for outputting message
FC 5
V24_STAT
Standard FC for reading CP outputs
FC 6
V24_SET
Standard FC for writing CP outputs
FC 8
DT_TOD
Standard FC for converting the DT format to TOD
FC 9
CPU_TIME
Standard FC for reading CPU time and converting to TOD
FC 10
ORG_CYC
Organization of cycle
FC 11
SEND_CYC
Sending Data
FC 12
RCV_CYC
receiving data
FC 13
PRN_ZYK
Output message
FC 14
V24_CYC
Controlling RS 232C secondary signals
Содержание 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 ...