Cancel
Showing results for 
Search instead for 
Did you mean: 

Error in source while reading data from Tablefile

Legend
Legend

Hello Everyone,

In my plantsim model, i want to separate data from order_data to other 3 tablefiles

[Ex: Handmixxer and Highrunner-- Quelle.separate_order(Self.Tablefile)

      Stickmixxer and Highrunner-- Quelle1.separate_order(Self.Tablefile)

      Handmixxer and Stickmixxer both but Lowrunner-- Quelle11.separate_order (Self.Tablefile)]

i defined these all separate_order table in User defined attribute of Quelle,Quelle1 and Quelle11. And i wrote one other method(Self.Reduce_orderlist) which reduce quantity whenever MUs comes out from Quelle.And when quantity of that particular order is 0 then cut that row from separate_table

 

This model is running for some order than its automatically stopped and shows error(check in following image)..I created small model for your reference acoording to my real model(Check attachment)...Thanks in advance

Error.PNG

 

15 REPLIES

Betreff: Error in source while reading data from Tablefile

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Niks1,

 

all methods Reduce_order refer to .Modelle.Handmixxer3.Quelle.separate_order.

Therefore only one table is emptied during the simulation run.

to refer to the separate order list of each individual source object you can use:

var source : object := self.~

QuelleOrderList := source.separate_order

 

Hope this helps.

Regards
GG

------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution

Betreff: Error in source while reading data from Tablefile

Legend
Legend

Hi GG,

 

I think there is some different error. i change Reduce_orde method according to your suggestion. But Quelle and Quelle1 take some order from tablefile(Separate_order) and created entity, then it did not read last 5-6 rows of table and stopped simulation.

Here, my objective is when Quelle complete their all order from(Quelle.Separate_oreder) then it will start to take order from other tablefile for that i wrote m_take_order method. (simillar  concept for other Quelle1 and Quelle11)

plz check attachment

thanks

Betreff: Error in source while reading data from Tablefile

Phenom
Phenom

what it looks like is:

 

the source is reading the separate_order rows from top to bottom

 

and you are - on the other side-  shortening the table by cutting the top rows.

 

At some stage -I guess- you have cut off the branch where you are sitting on.

 

E.g. you have deleted the table row where the source expected data to be.

 

 

 

 

 

 

Betreff: Error in source while reading data from Tablefile

Legend
Legend

Hi Phenom,

 

you can check in Reduce_orderlist methods. whenever any MUs comes out from Quelle then i reduced one number from total number of quantity. when this quantity for that order becomes 0 then i cut that row.

(var source : object := self.~
var QuelleOrderList: table
QuelleOrderList := source.separate_order
Quelleorderlist["Anzahl",1]:=Quelleorderlist["Anzahl",1]-1   --when MUs comes out then reduce
if Quelleorderlist["Anzahl",1]=0       --if quantity becomes 0 then cutrow
    Quelleorderlist.cutrow(1)
end
if Quelleorderlist.YDim = 0
    m_take_order
end)

 

if there is any error in method or concept then plz suggest me.

Betreff: Error in source while reading data from Tablefile

Phenom
Phenom

I think it is not a good idea to touch - in your case -delete rows from the order list during simulation.

 

Why do you have to delete the rows of the order list anyhow ?

 

To notify that the orders in the list have been accomplished ?

 

 

 

Betreff: Error in source while reading data from Tablefile

Legend
Legend

Hi Phenom,

 

Here, my objective is when Quelle complete their all order from(Quelle.Separate_oreder) then it will start to take order from other tablefile for that i wrote m_take_order method. (simillar  concept for other Quelle1 and Quelle11).

Example:-

in this model, there is 3 section (we don't know which section is faster than other,everytimes its different because of diff. proctime and order). so concept is when Quelle complete all order from Self.separate_table then it will pick extra order from other section.

You can check

(if Quelleorderlist["Anzahl",1]=0
    Quelleorderlist.cutrow(1)
end
if Quelleorderlist.YDim = 0
    m_take_order
end)

 

i wrote method: m_take_oreder. it will activate whenever Ydim of separate_table is 0. i mean, now for that particular section available order is 0. so it will help other section.

if do you have any better idea then plz suggest me.

thanks

Betreff: Error in source while reading data from Tablefile

Phenom
Phenom

One way could be through a flowcontrol object which selects the successors

depending on MU availability s. attachment.

 

 

Unbenannt.PNG

Betreff: Error in source while reading data from Tablefile

Legend
Legend

Hi.

thanks for reply.

i think you created it in plantsim 14.1 and i am using plantsim14. so i can not open it.can you explain me in detail..But without flowcontrol. is it possible?

Concept is..when one Quelle is complete their all order then pick new order from other table.

thanks in advance

Betreff: Error in source while reading data from Tablefile

Phenom
Phenom

Here's the model in v14.

 

What do you mean by  explain without flowcontrol ?

 

The idea /model is based on the flowControl,

 

therefore th flowControl objects are a mandatory part of the idea / model.