Sample Application - Siemens SIMATIC S7 Manual

S7 open modbus / tcp communication via the integrated pn interface of the plc
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

8

Sample Application

General
Information
Example Project
on the CD
Sample Program
Used Blocks
MODBUS / TCP communication via the integrated PN interface of the CPU
2XV9450-1MB02; Manual edition 2.1
The following simple programming example illustrates the use of
FB MODBUSPN.
Please note, the provided example project is meant for information
purposes only. It displays the handling of the Modbus blocks and is not
to be understood as a solution for a customer-specific installation
configuration.
On the CD you can find an extensive example project which offers all varieties
of parameterization possibilities for the Simatic stations.
Simatic Station is S7-300, S7-400 or IM 151-8 PN/DP CPU
Simatic Station is client or server
The programming example consists of the blocks:
• Start-Up OB100 with call of FB102
• Programming error OB121 with call of FB102
• Cyclic program processing OB1 with call of FB102
• Global DBs for job trigger (e.g. with variable table) and for licensing
• Data blocks for register and bit values
The following blocks are used in the provided sample project for S7 stations
with FB MODBUSPN.
Block
Symbol
CYCL_EXC
OB 1
COMPLETE
OB 100
RESTART
OB 121
PROG_ERR
FB 102
MODBUSPN
FB 103
TCP_COMM
FB 104
MOD_CLI
FB 105
MOD_SERV
CONTROL_DAT
DB 1
MODBUS_PARAM
DB 2
LICENSE_DB
DB 3
IDB_MODBUS
DB 102
DATA_AREA_1
DB 11
DATA_AREA_2
DB 12
DATA_AREA_3
DB 13
DATA_AREA_4
DB 14
DATA_AREA_5
DB 15
Comment
cyclic program processing
start-up OB for restart
programming error OB
FB MODBUSPN
FB TCP_COMM
FB MOD_CLI
FB MOD_SERV
work DB CONTROL DAT for FB MODBUSPN
parameter DB PARAM_DB for FB MODBUSPN
license data block for FB MODBUSPN
instance DB for FB MODBUSPN
value DB for area 1
value DB for area 2
value DB for area 3
value DB for area 4
value DB for area 5
Application Sample
8-1

Advertisement

Table of Contents
loading

Table of Contents