"combiner" PROBLEM WITH WRITING LOGIC WORK

"combiner" PROBLEM WITH WRITING LOGIC WORK

St_shi
Not applicable
50 Views
3 Replies
Message 1 of 4

"combiner" PROBLEM WITH WRITING LOGIC WORK

St_shi
Not applicable

[ FlexSim 22.2.0 ]

Hi, I recently started using this program and I have problems with the logic of the model.


I am creating a simulation in "flexsim 2022 update 2", using the "combiner" element. This element in the simulation connects the "pallet" object and the "Box" object in the amount of 60. I need to create a logic in which the "combiner" connected the "pallet" and the "Box" object in the right amount of the "Box" object with the label "Typ" and a value of 1 on the "pallet", but at the same time if the "Procesor" element is idle, and the next element is "queue" , which is the warehouse for the "Box" object before it enters the "combiner", will be empty. "combiner" will be able to start the process of processing their combination, provided that there is at least one "Box" element on it.


The code looks like this:

work.png


Do you have any thoughts that could solve this problem?

0 Likes
Accepted solutions (1)
51 Views
3 Replies
Replies (3)
Message 2 of 4

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

“c” is a reference to the current code node. Currently your code travers through subnodes of current code node. This makes only sense, if you have subnodes for your code node or your code node is a container node. References in a programming language have a meaning. Please test it or read about it in reference manual before you assume something that does not exists. We recommend to attach example models to questions, because then we can identify the environment your code is meant for.

0 Likes
Message 3 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Also - if you're unsure, you can place breakpoints in the code and look to see the local variable values when they are set.
Message 4 of 4

Jeanette_Fullmer
Community Manager
Community Manager

Hi @St_shi, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes