Created a sequence part if my buffer is empty

28 views
Skip to first unread message

Nicolas

unread,
Dec 4, 2018, 5:06:08 AM12/4/18
to delmia_quest
Hello

I'd like created with a source a sequence if my buffer is empty

1 PartA and
5 PartB and
1 PartA



I did a SCL program but



USER_ATTRIB
count    : Real

procedure source2()

var

the_elem : Element
ii : integer
ee : integer
dd : integer
Part1 : Part_class
Part2 : Part_class

Begin

delay 5
the_elem = get_element('Buffer1')
wait until total part_count 0 for the_elem
for ii=1 to 1 by 1 do
Create(PartA)
for dd=1 to 5 by 1 do
Create(PartB)
for ee=1 to 1 by 1 do
Create(PartA)
Endfor
Endfor
Endfor
Pass()
the_elem = get_element('Buffer1')
wait until total part_count 15 for the_elem

End

Could help me please?

Thank you

higs...@gmail.com

unread,
Dec 4, 2018, 5:49:05 AM12/4/18
to delmia_quest
Hello,
try this
-------------------------------------------------------------------------------
procedure source2()

var

the_elem : element
ii : integer

Begin

the_elem = get_element('Buffer1_1')
wait until total part_count 0 for the_elem

produce(PartA)

for ii=1 to 5 do
produce(PartB)
endfor

produce(PartA)
wait until total part_count 0
End
-----------------------------------------------------------------------------------------

Nicolas

unread,
Dec 4, 2018, 4:14:23 PM12/4/18
to delmia_quest
Thank you so much for your help
I did a mistake
I've understand with your answers
Reply all
Reply to author
Forward
0 new messages