plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

importing the Modbus block into the CFC char

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems
View previous topic :: View next topic  
Author Message
grig100
Member 3
Member 3
grig100

Joined: 01 Jan 2015
Posts: 752

PostPosted: 22/11/2019 16:51    Post subject: importing the Modbus block into the CFC char Reply with quote

Why does an error message appear when importing the Modbus block into the CFC chart?
https://support.industry.siemens.com/cs/document/109772165/why-does-an-error-message-appear-when-importing-the-modbus-block-into-the-cfc-chart
To be able to import a function block into a CFC chart it is necessary for all the blocks called at a lower level to be in the block folder.
Otherwise the following error message is displayed:
importing the Modbus block into the CFC char importing the Modbus block into the CFC char
Fig. 1

The Modbus blocks are in the Modbus/TCP libraries. You import internally called communication blocks from the libraries of STEP 7:
Standard Library
SIMATIC_NET_CP
Proceed as follows for the Modbus libraries "SIMATIC Modbus/TCP PN CPU" and "SIMATIC Modbus/TCP PN Red":

Open the library entitled "Standard Library".
In the "Communication Blocks" folder you copy the function blocks FB65 "TCON", FB63 "TSEND", FB64 "TRCV" and FB66 "TDISCON".
Import the copied FBs into the Modbus library.
The Modbus block can be imported into the CFC chart from the Modbus library.
Proceed as follows for the Modbus libraries "SIMATIC Modbus/TCP CP" and "SIMATIC Modbus/TCP CP Red":

Open the library entitled "SIMATIC_NET_CP".
If you are using a SIMATIC S7-300, in the "CP 300" folder you copy the blocks FC5 "AG_SEND", FC6 "AG_RECV" and FC10 "AG_CTRL".
If you are using a SIMATIC S7-400, in the "CP 400" folder you copy the blocks FC50 "AG_LSEND", FC60 "AG_LRECV" and FC10 "AG_CTRL".
Import the copied FCs into the Modbus library.
The Modbus block can be imported into the CFC chart from the Modbus library.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro