Technical Forum

SIMATIC S7-200

Invalid network, or network too complex to compile.

Thread Starter: Henio   Started: 6/22/2009 9:23 AM   Replies: 17

« Previous thread Next thread »
12» Page 1 of 2 (18 items)
  6/22/2009, 9:23 AM
Joined 8/9/2007
Last visit: 11/24/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,
i made a subrutine with 10 in parametrs and 2 out parameters, and some TEMP variables inside, and everything was working ok, i could compile, download etc. Now i use the same amount of in/out parametrs, but inside im using V area variable too, and cannot compile (compile result is Error 47: Invalid network, or network too complex to compile). Any idea what is wrong ? I couldnt find anything more about this error so dont know how to continue ...
Thx for help.

Henio.
Top
  6/22/2009, 10:33 AM
Joined 5/28/2008
Last visit: 9/17/2014
Posts: 1013
Rating:
Rated: Excellent [4.03 out of 5 / rated 66 time(s)]. (66) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
I think you created one network in your subroutine that is very big and complex. So try to split this one network into two networks. Then it should work.

Top
  6/22/2009, 11:04 AM
Joined 8/9/2007
Last visit: 11/24/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
So i did, and nothing changed cry.
Btw how big (how many and/or/other blocks) can be in one network ? Didnt find anything about it.
And with tha same structure, but other variable it was working ....
And this error apear not when im compiling this subroutine, but when im calling it.
Any other idea ?

Thx for help.

Henio.
Top
  6/22/2009, 11:23 AM
Joined 8/9/2007
Last visit: 11/24/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Nice, now i realized that even i delete all code inside subroutine, i have still the same problem ...
So it seems there is problem in in/out varriable, i used to have in this suroutine 11 IN and 2 OUT parametrs (without problem), now i have only 10 IN and 2 OUT and i have a problem ... strange.

Henio
Top
  6/22/2009, 11:29 AM
Joined 8/9/2007
Last visit: 11/24/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
OMG,
now i return back as a first INPUT parametr pointer to Variable area and everything is ok astonished
Can any1 explain it ?

Henio.
Top
  6/22/2009, 11:43 AM
Joined 5/28/2008
Last visit: 9/17/2014
Posts: 1013
Rating:
Rated: Excellent [4.03 out of 5 / rated 66 time(s)]. (66) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Strange. I don't know a limit of in/outputs. I only know, that ja have about 48 byte (some more, some less) for usage in a subroutine.
What also can be in your case is a copy/paste error of some block inside the routine. Also some bad adress ranges. But its difficult to say because don't know your program.

Top
  6/22/2009, 2:05 PM
Joined 8/9/2007
Last visit: 11/24/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,
there is limit 16 input/in-out/out parameters, but my problem is that i cannot compile when i have only 12 parameters.
Can any1 try make a subroutine with 10 Input parametrs and 2 output, all BOOL type ? Pls try make this subroutine and call it somewhere and try to compile (just parametrs, dont need to put any code inside). For me it doesnt work, but if i put first parametr as nonBOOL everything is alright blush. For me it looks like some strange BUG, because i didnt find nothing about that ...

Thc for help and info.

Henio
Top
  6/22/2009, 2:24 PM
Joined 5/28/2008
Last visit: 9/17/2014
Posts: 1013
Rating:
Rated: Excellent [4.03 out of 5 / rated 66 time(s)]. (66) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Ok, I have the same behavoir.
You get an range error by compiling 12 Bool inputs. The network where subroutine is called, is to big.
With a byte at first input you can compile, but not download.
I think you have to make it smaller. e.g. you can input 8 bool as a byte and in subroutine you can read bit by bit from that byte.

Top
  6/23/2009, 4:08 AM
Joined 12/13/2006
Last visit: 10/3/2014
Posts: 191
Rating:
Rated: Outstanding [3.46 out of 5 / rated 57 time(s)]. (57) 
Rated: Good [1 out of 5 / rated 1 time(s)]. (1) 
Hi!!

¿¿ have you declared the variable in the symbol table ??

some times if you declare a variable as an integer and you try to use it in an instruction which uses a word variable it sees this as an error...

please post your program so we can see what is happening...

ROSA
Top
  6/23/2009, 8:55 AM
Joined 8/9/2007
Last visit: 11/24/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

here is the program, look, test and replay ...
For me still the same situation, need nonBOOL variable at first place in SBR Ofukovac to be able to call it and compile (btw can download it and it is working propertly).

Thx for help.

Henio.
Top
12» Page 1 of 2 (18 items)
Actions