problem with cp342-5 as aProfibus DP master

shoka

Member
Join Date
Feb 2010
Location
cairo
Posts
5
i have a confusion about how to use CP342-5 as a Profibus DP master with FC1(DP-send) and FC2(DP-recv),the system HW configuration is below.
my points of confusion are:
1- i can't access the ET200-M ( represents in HW config as IM 153 ) directly through the I and Q address ,but CP342-5 occupies 16 I bytes and 16 Q bytes starting from 288, what is the purpose of them ?
2-the modules of the 2 ET200-M have I , Q addresses from 0 to 31 , what are these addresses?
3-when using DP-SEND, CPLADDR=#16#120 (= 188) which specify which CP to use.
How to assign the parameter "SEND" to send data to the required module (say the module with redrectangular),please
give me example to do that?

note: i know that the CPU 315-2 DP has bulit in DP but i nees to make another network.

thanks in advance
 
When using a CP module as a PROFIBUS master, the IO data does not go through the image tables. FC1-DP_Send and FC-2 DP_Receive are used instead.

The data will be sourced or stored at the location specified by the ANY pointers in the call to FC1 or FC2. The I and Q addresses shown in the hardware are offsets into the area specfied by the ANY pointers.

If you use the online help for FC, it shows the SEND parameter example as P#db17.dbx 0.0 byte 103 So, in this example, the output data would be sourced starting at DB17.DBB0 and would be 103 bytes long.

Your highlighted Q address QB10 & QB11 using the help example would be DB17.DBB10 and DB11.

Hope this helps
 
eg:replace p#db17.dbx0.0 byte 103 with p#m0.0 byte 103
which as mike explained above would now start at the 1st value (mb0) and be 103 bytes long
 
Last edited:

Similar Topics

Hello I sent a massage about cp342-5 yesterday. I have errors in diagonostic buffer that send (in attach file)them please help me please i am...
Replies
0
Views
1,435
Hello I have problems with cp342-5 configuration that i told them in older massage.I checked the buffer diagonostic and have errors that i'll...
Replies
0
Views
1,598
Hello, I need to write the following program in Ladder language, but I could not integrate the Fibonacci sequence into the ladder. Can you help...
Replies
22
Views
446
On all pages of my project i have a lot of information, texts and details that should not not be shown. I can remove them for each part apart from...
Replies
0
Views
45
Hi, I have had problem with upgrading some projects from v16 to v18. I tried it on 3 diffrent computers. I want to post this so that anyone that...
Replies
3
Views
189
Back
Top Bottom