Could i make the output of product at my own desire value

17 views
Skip to first unread message

lee chung

unread,
Oct 12, 2018, 11:20:29 AM10/12/18
to delmia_quest
Hello All, 

Capture.PNG

    if i run the time 1000 sec then the output of product is 993. Could i control it exactly 1000 onward of my output of product? Is that possible at any of time value on run simulation, the result will be also produce only 1000 product?

BARNES Martin

unread,
Oct 12, 2018, 12:41:15 PM10/12/18
to delmia...@googlegroups.com

Hi:

 

Yes, this can be done.

Replace the Sink process logic with the logic below, modifying the end part number (currently 20).

 

Regards,

Martin

 

 

 

 

-- -------------------------------------------------------------

--

--             Modified Sink Process Logic

--

-- -------------------------------------------------------------

Procedure my_sink_proc_logic()

Var

               load_proc   : Process

               idx                         : Integer

               my_int_var          : Integer

 

Begin

                             

     require part ANY

 

     -- Before deleting the part, if any Load process is

     -- attached to the sink do it

 

     if( celem->class->load_process <> NULL ) then

               load_proc = do_load_process( )

        if (load_proc == NULL) then

            --

            -- No pass till load process pre_req are available

            --

 

            return

        endif

     endif

 

     for idx = 1 to celem->num_in_parts do

               destroy( celem->in_parts[1] )

     endfor

              

               if (celem->num_processed == 20) then

                              my_int_var = sim_terminate(0)

               endif

 

End

 

Martin BARNES

Senior Software Consultant , Manufacturing - Consulting & Technical Services

cid:image001.jpg@01D37F27.E988DFF0

Office: +1 248 205 5227
Mobile: +1 248 762 1775
Fax: 248 267 8585
martin...@3ds.com

3DS Logo

3DS.COM

DS Americas Corp. | 900 North Squirrel Road, Suite 100 | Auburn Hills, MI 48326 | United States

--
You received this message because you are subscribed to the Google Groups "delmia_quest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delmia_quest...@googlegroups.com.
To post to this group, send email to delmia...@googlegroups.com.
Visit this group at https://groups.google.com/group/delmia_quest.
For more options, visit https://groups.google.com/d/optout.

This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer at 3DS.complia...@3ds.com


For other languages, go to https://www.3ds.com/terms/email-disclaimer

Reply all
Reply to author
Forward
0 new messages