| View previous topic :: View next topic |
| Author |
Message |
oldsnake Junior

Joined: 24 Jun 2012 Posts: 14
|
Posted: 19/11/2012 15:16 Post subject: S7 300+CP341 Modbus Master Not Work |
|
|
Hi Everyone
I have cpu 312+Cp341 and i want to connect external device by using Modbus RTU Master(2 wire RS 485) ,but it is not worked. what should i do?
this is my program which i have made my self.could you suggest me about the configuration of hardware and give me some examples about sand and receiving data From external device
Thank
[url=http://www.girlshare.ro/31915580.4]Modbus+Test.rar[/url] |
|
| Back to top |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 19/11/2012 21:54 Post subject: Re: S7 300+CP341 Modbus Master Not Work |
|
|
| oldsnake wrote: | Hi Everyone
I have cpu 312+Cp341 and i want to connect external device by using Modbus RTU Master(2 wire RS 485) ,but it is not worked. what should i do?
this is my program which i have made my self.could you suggest me about the configuration of hardware and give me some examples about sand and receiving data From external device
Thank
[url=http://www.girlshare.ro/31915580.4]Modbus+Test.rar[/url] |
Did you see these topics:
http://plc.myforum.ro/simatic-s7-modbus-programs-vt2653.html
http://plc.myforum.ro/s7-200-lt-gts7-1200-profibus-or-modbus-vt2628.html |
|
| Back to top |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 19/11/2012 22:09 Post subject: Re: S7 300+CP341 Modbus Master Not Work |
|
|
| oldsnake wrote: | Hi Everyone
I have cpu 312+Cp341 and i want to connect external device by using Modbus RTU Master(2 wire RS 485) ,but it is not worked. what should i do?
this is my program which i have made my self.could you suggest me about the configuration of hardware and give me some examples about sand and receiving data From external device
Thank
[url=http://www.girlshare.ro/31915580.4]Modbus+Test.rar[/url] |
Dear oldsnake,
Unfortunately your project is edited on Thai language and I cannot open it.
Try the variant in English language. |
|
| Back to top |
|
 |
oldsnake Junior

Joined: 24 Jun 2012 Posts: 14
|
Posted: 20/11/2012 06:52 Post subject: Program |
|
|
| This is English language.[url=http://www.girlshare.ro/31917462.5]Modbus+Test.rar[/url] |
|
| Back to top |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 24/11/2012 23:45 Post subject: Re: Program |
|
|
| oldsnake wrote: | | This is English language.[url=http://www.girlshare.ro/31917462.5]Modbus+Test.rar[/url] |
Hello oldsnake,
At the first sight of your project there is one mistake:
The new standard function blocks of the CP341
FB7 ≥ V3.0 (P_RCV_RK)
FB8 ≥ V3.0 (P_SND_RK)
and
and FB13 ≥ V1.0 (P_PRT341)
operate with the new system function blocks SFB52 (RDREC) or SFB53 (WRREC) that are supported by the latest CPU versions (*) only.
This conversion was necessary because the old system calls SFC58 (WR_REC) and SFC59 (RD_REC) are not suitable for operation following an IE/PB link or a PROFINET header.
Users with older CPU versions that do not support SFB52 (RDREC) or SFB53 (WRREC) yet will find the older versions of FB7 and FB8 with the designations FB107 (P_RCV_RK_OLD) and FB108 (P_SND_RK_OLD) in their regular location.
(*) All S7-300 CPUs with MMC and S7-400-CPUs as of firmware status V3.0.0 support the new system function blocks SFB52 and SFB53.
So,
you need to add in your project SFB52 (RDREC) or SFB53 (WRREC) with FB7 and FB8..
or you need to use the older function block FB107 (P_RCV_RK_OLD) and FB108 (P_SND_RK_OLD) and in that case you do not need the System Function Blocks. |
|
| Back to top |
|
 |
oldsnake Junior

Joined: 24 Jun 2012 Posts: 14
|
Posted: 26/11/2012 14:03 Post subject: Re: Program |
|
|
| rott wrote: | | oldsnake wrote: | | This is English language.[url=http://www.girlshare.ro/31917462.5]Modbus+Test.rar[/url] |
Hello oldsnake,
At the first sight of your project there is one mistake:
The new standard function blocks of the CP341
FB7 ≥ V3.0 (P_RCV_RK)
FB8 ≥ V3.0 (P_SND_RK)
and
and FB13 ≥ V1.0 (P_PRT341)
operate with the new system function blocks SFB52 (RDREC) or SFB53 (WRREC) that are supported by the latest CPU versions (*) only.
This conversion was necessary because the old system calls SFC58 (WR_REC) and SFC59 (RD_REC) are not suitable for operation following an IE/PB link or a PROFINET header.
Users with older CPU versions that do not support SFB52 (RDREC) or SFB53 (WRREC) yet will find the older versions of FB7 and FB8 with the designations FB107 (P_RCV_RK_OLD) and FB108 (P_SND_RK_OLD) in their regular location.
(*) All S7-300 CPUs with MMC and S7-400-CPUs as of firmware status V3.0.0 support the new system function blocks SFB52 and SFB53.
So,
you need to add in your project SFB52 (RDREC) or SFB53 (WRREC) with FB7 and FB8..
or you need to use the older function block FB107 (P_RCV_RK_OLD) and FB108 (P_SND_RK_OLD) and in that case you do not need the System Function Blocks. |
thanks so much . Now I can use slave function but not master function. It show error 830h .Can u suggest me anything? |
|
| Back to top |
|
 |
rott Senior

Joined: 23 Aug 2011 Posts: 2266
|
Posted: 26/11/2012 22:46 Post subject: Re: Program |
|
|
| oldsnake wrote: | | rott wrote: | | oldsnake wrote: | | This is English language.[url=http://www.girlshare.ro/31917462.5]Modbus+Test.rar[/url] |
Hello oldsnake,
At the first sight of your project there is one mistake:
The new standard function blocks of the CP341
FB7 ≥ V3.0 (P_RCV_RK)
FB8 ≥ V3.0 (P_SND_RK)
and
and FB13 ≥ V1.0 (P_PRT341)
operate with the new system function blocks SFB52 (RDREC) or SFB53 (WRREC) that are supported by the latest CPU versions (*) only.
This conversion was necessary because the old system calls SFC58 (WR_REC) and SFC59 (RD_REC) are not suitable for operation following an IE/PB link or a PROFINET header.
Users with older CPU versions that do not support SFB52 (RDREC) or SFB53 (WRREC) yet will find the older versions of FB7 and FB8 with the designations FB107 (P_RCV_RK_OLD) and FB108 (P_SND_RK_OLD) in their regular location.
(*) All S7-300 CPUs with MMC and S7-400-CPUs as of firmware status V3.0.0 support the new system function blocks SFB52 and SFB53.
So,
you need to add in your project SFB52 (RDREC) or SFB53 (WRREC) with FB7 and FB8..
or you need to use the older function block FB107 (P_RCV_RK_OLD) and FB108 (P_SND_RK_OLD) and in that case you do not need the System Function Blocks. |
thanks so much . Now I can use slave function but not master function. It show error 830h .Can u suggest me anything? |
Did you see the what this error means?
It seems you put an incorrect parametrization on your project for CP341... |
|
| Back to top |
|
 |
oldsnake Junior

Joined: 24 Jun 2012 Posts: 14
|
Posted: 27/11/2012 12:45 Post subject: |
|
|
| now i can use modbus function thank rott |
|
| Back to top |
|
 |
|