question

Gulati avatar image
0 Likes"
Gulati asked Gulati commented

About source logic

dummy-model.fsmHello everyon

In the attached model one by one item is going from queue1 to processor 1.at the same time a batch of 500 item going to sink2 from source 2 from those 500 we are using lot size of 90 items just to track them i used labels. i am getting one problem here:- i want next batch of 500 items must come as 80% of item get use from previous batch. for example in this case i assinged few labels in sink 2 i want as current content become 400 and threshold become 100 Processor1 or sink2 must send message to source2 to send next batch to the sink. also first time only one item is going to sink rest 499 is not going.i am not getting where is the mistake.

FlexSim 17.2.5
source message
dummy-model.fsm (16.9 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Gulati avatar image Gulati commented ·

@Jeff Nordgren can you give your suggestion for this problem.?

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren commented ·

@Gulati,

You do realize what the Sink object is used for, right? Its sole purpose is to remove flowitems from the model. I see that you have an output port going from Sink2 to Processor1. Although FlexSim allows you to make that connection, it is NOT a valid connection and will do nothing. There is no internal code that will handle any kind of output port connection. That being said, that may be part or all of the problem(s) you are experiencing.

I can't tell from your explanation exactly what is supposed to happen in your model. I think your problem would be easy to solve if I just understood exactly what need to happen, in the model as a whole. Any information would be helpful.

Thanks.

0 Likes 0 ·
Gulati avatar image Gulati commented ·

Thanks for your time. Well i am aware about sink can not send flowitems to processor. I don't want here flowitem goes to processor i am just tracking with the help of label that flowitems is decreasing.(just to save memory of pc if i use sink instead of queue). Here my problem is not to send item from sink to processor problem is items is not going from source to sink.

Thanks

0 Likes 0 ·

1 Answer

·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Gulati commented

@Gulati,

Is this basically the same question that you asked here? If so, take a look at that response to see if it will answer your question.

Thanks.

· 12
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Gulati avatar image Gulati commented ·

Yes i got the point. Thanks for your response

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren commented ·
@Gulati

Let us know if you don't understand something or need more help.

Thanks.

0 Likes 0 ·
Gulati avatar image Gulati Jeff Nordgren commented ·

@Jeff NordgrenIn the given model one by one item is coming from source1 and going to processor 1. Once 1 item reach processor one AGV must transfer one item from queue2 to sink2. Problem which I am getting here is that if I put AGV near to queue2 it transfer the item in desired time (before first item leave the Processor1) but if I put AGV a bit far or if I increase Process time it take time to reach queue2 and then sink2 by that time first item which get inside the processor1 left processor1. Like this purpose of my model doesn’t full fill. I am not getting how to make item wait in processor1 till AGV transport item from queu2 to sink2.Except using buffer at Processor1 is there any other way to perform this?dumy-model-with-agv.fsm

Purpose of model:- one item coming from queue1 reaching processor1 at the same time one item containing 500 items batch reaching sink 2 to use 50 with one coming from queue1 on Processor1. Here I do not want lot size of 50 go from sink to processor1 just I am tracking them with labels assigned into sink. Once 80% items get used new batch is coming from queue2.

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren Gulati commented ·
@Gulati

Here is your model with the changes that I made. I'll admit, I'm still not certain what you are trying to accomplish with the way that you have your model setup. If I understood better, I might be able to suggest an easier way to accomplish what it is you are trying to do.

I removed the ouput port connection from Sink2 to the Processor. IMO, they shouldn't allow that connection to be made but it can. It just looks bad looking at the model knowing that that can't be right. So I reference the objects directly without using a port connection for reference.

That said, all I've basically done is to put a stop object command (OnEntry trigger of the Processor-line 21) when a flowitem enters the Processor. Then, when a flowitem enters Sink2, in the OnEntry trigger I resume the Processor (line 13). As near as I understand what is going on, I think this does what you want. Please let me know if it doesn't.

Thanks.

dumy-model-with-agv-jn1.fsm

0 Likes 0 ·
Show more comments
Gulati avatar image Gulati commented ·

@Jeff Nordgren .yes sir i am agree with you about combiner Properties. but here in my model i am restricted to use only processor. I also agree combiner could be an better option here. thanks for your time.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Gulati commented ·

Why are you restricted to using only processors?

1 Like 1 ·
Jeff Nordgren avatar image Jeff Nordgren Gulati commented ·
@Gulati

In your reply you mention that you are restricted to use only a Processor. I'm with @Matthew Gillespie, why do you think that you can only use a Processor in your model? A Combiner is just a Processor with more functionality so I'm confused as to why you believe that only a Processor will work in your situation.

Thanks.

0 Likes 0 ·
Gulati avatar image Gulati Jeff Nordgren commented ·

@Matthew Gillespie @Jeff Nordgren. i am totaly agree here combiner is the best option. flexsim give more facility with combiner in my case. here in my case first thing which i want now that my items if will not combine manually for me it is fine. i am just simply tracking them with the help label in sink. sink is represting here that lot size is getting use. like this one by one items is coming from main queue and passing through processor. a more simply model to understand during run. by click on sink during run i can visualize lot size is getting consume. Sorry again for not using things in Proper way.

0 Likes 0 ·
Show more comments
Gulati avatar image Gulati commented ·

@Jeff Nordgren Dear sir,

Thanks for changes in the model you suggested.i discussed with my mates. just we are using sink here just to count items and destroy them immediately in order to even make our model more light in term of storing data. the model you suggested is perfect for our situation also, i admit it. I apologized for the misinterpretation about what we are trying here to do not for asking question or help. this community and you all support here a lot . i feel always free to ask any help here. thanks for this platform.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.