Cancel
Showing results for 
Search instead for 
Did you mean: 

Different works in the same assembly

Pioneer
Pioneer

Hallo guys,

 

I try to simulate an assembly workplace in which the worker assembly different final products.

I found Different works in the same assembly-Discussion. I tried to simulate this but couldn't do it. I attached a screenshot.

 

Different works in the same assembly-Discussion:

https://community.plm.automation.siemens.com/t5/Plant-Simulation-Forum/Diferent-works-in-the-same-As...

 

Could you look at it?

 

Best regards,

Beril

 

6 REPLIES

Re: Different works in the same assembly

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
I guess the new syntax is activated; delete is, do and the last end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Different works in the same assembly

Pioneer
Pioneer

I have done but still it doesn't work...  I added the simulation.

If you have some Time, could you look at it?

Re: Different works in the same assembly

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

the conversion to new syntax damaged some line in your program. Activate new syntax;

this should work

 

var t:table[string,integer]
t.create
if @.name="FinalproductA" then
 --write the parts into the table (name, quantity)
  t.writeRow(1,1,"A",1)
  t.writeRow(1,2,"B",1)
  t.writeRow(1,3,"C",1)
elseif @.name="FinalproductB" then
  --write the parts into the table (name, quantity)
  --- ...
  t.writeRow(1,1,"A",0)
  t.writeRow(1,2,"B",2)
  t.writeRow(1,3,"C",2)
  
elseif @.name="FinalproductC" then
  --write the parts into the table (name, quantity)
  --- ...
  t.writeRow(1,1,"A",0)
  t.writeRow(1,2,"B",1)
  t.writeRow(1,3,"C",1)
end
--set t as the assemblyList
?.assemblyList:=t
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Different works in the same assembly

Pioneer
Pioneer

I try but it doesn't work. I added a screnshot.

Re: Different works in the same assembly

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

okay, you are using version 12, so you need the old syntax (SimTalk 2.0 is in this version not available)

 

see model

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Different works in the same assembly

Pioneer
Pioneer

Thank you very much Smiley Happy it is working now.

Best wishes.

Beril