Communication With The User Program - YASKAWA CP 341 Manual

Rs422/485
Table of Contents

Advertisement

VIPA System 300S

5.3 Communication with the user program

Overview
FB 80 - MODB_341 with
Modbus Slave protocol
Installation
HB130 | CP | 341-1CH01 | en | 18-40
For the processing of the connecting jobs at PLC side a user program is necessary in the
CPU. Here the following VIPA specific blocks are used for communication between CPU,
CP and a communication partner:
Block
Symbol
FB 7
P_RCV_RK
FB 8
P_SND_RK
Please note that this blocks calls the FC or SFC 192 CP_S_R internally.
These must not be overwritten! The direct call of an internal block leads
to errors in the corresponding instance DB!
CAUTION!
Calling of these blocks within process or diagnostics interrupt is not
allowed.
Please regard this FBs do not have a parameter check, which means
that if there are invalid parameters, the CPU may switch to STOP
mode.
More information about the usage of these blocks may be found in the
manual "SPEED7 Operation List" from VIPA.
With the Modbus Slave protocol the communication FB 80 - MODB_341 is used. Within
the FB 80 the blocks FB 7 and FB 8 are called. More about installation and deployment of
the FB 80 may be found at Modbus Slave in Chapter "Communication protocols".
Ä Chap. 6.4.7.1 'Send data FB 80 - MODB_341' page 74
The function blocks are online available from Siemens together with the plugin "Point-to-
Point-Communication, Parameter Assignment".
1.
The installation of the function blocks happens together with the plugin.
2.
Start the installation program and follow the instructions.
3.
The FBs may be found in the block library after installation.
4.
The library may be opened in the Siemens SIMATIC manager by 'File è Open
è Libraries' and here "CP PtP".
5.
The blocks may be found at "Blocks" of the CP 341.
ð For deployment of a block this is to be copied into your project.
Communication with the user program
Comment
Block for data receipt from a communication partner.
Block for data send to a communication partner.
Deployment
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vipa system 300s

Table of Contents