Sample Project Cfc - Siemens SIMATIC S7 Manual

Open modbus / tcp
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

7.2

Sample project CFC

General
Information
Used Blocks
OPEN MODBUS / TCP communication via CP343-1 and 443-1
2XV9450-1MB00; Manual edition 4.3
The sample project written in CFC includes two Simatic S7-400 stations, one
is parameterized as client, the other one as server.
The subsequent listed blocks are used in the provided example project with
FB MODBUSCP. The system functions, system function blocks and the
blocks which are generated by CFC are not listed in the following table.
Block
Symbol
CYC_INT5
OB 35
COMPLETE
OB 100
RESTART
OB 121
PROG_ERR
FB 8
R_TRIG
FB 24
CTU
FB 99
Save_STATUS
FB 106
MB_CPCLI
FB 107
MB_CPSRV
FB 108
MODBUSCP
FC 500
AG_LSEND
FC 600
AG_LRECV
DB1
MEMORY_DB
DB 3
LICENSE_DB
DB 11
DATA_AREA_1
DB 12
DATA_AREA_2
DB 13
DATA_AREA_3
DB 14
DATA_AREA_5
DB 15
DATA_AREA_6
DB 16
DATA_AREA_7
Comment
Cyclic program processing
Start-Up OB for Re-Start
Programming error OB
Recognition of positive edge
Upwards counter
FB to save the error number and the name of the
according function
Internally called FB MB_CPCLI
Internally called FB MB_CPSRV
User block FB MODBUSCP
FC to send data
FC to receive data
Help DB in server mode
License DB for FB MODBUSCP
Value DB for area 1
Value DB for area 2
Value DB for area 3
Value DB for area 5
Value DB for area 6
Value DB for area 7
Application Sample
7-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp 443-1Simatic net cp 343-1

Table of Contents