Cancel
Showing results for 
Search instead for 
Did you mean: 

Source control with backend

Innovator
Innovator

Hi ,

I have source1 which produces a transporter and source2 which produces entity. I have used TransferStation to load entity on the transporter. The model is connected to the database using ODBC.

 

I want to control the exit of transporter i.e. :

1. Suppose a signal 0 is sent from the backend database, then there should be no transporter produced from Source1.

2. Now if signal 1 is sent from the backend database, only then the transporter should start from source1. The time of creation should be Interval Adjustable to -1 i.e. for signal 1, the transporters should keep coming one after the other, load the entity on to them, transfer to SingleProc and move to drain.

Again when signal is 0, the source1 should stop producing transporter.

 

How to control the exit of transporter using Simtalk.? Please help

2 REPLIES 2

Re: Source control with backend

Phenom
Phenom

Have a look at source1.exitLocked for start-/stopping of transporter generation

 

Entities can be loaded on transporters via assembly station.

Re: Source control with backend

Valued Contributor
Valued Contributor

you  can use method "exitlocked:=true",when you receive a signal 1 ,you can close exit,and when you  receive a signal 0lyou can open exit 捕获.PNG