Cancel
Showing results for 
Search instead for 
Did you mean: 

Pick and place - getDestination

Valued Contributor
Valued Contributor

Hello guys,

 

is there any way to track the ?.getDestination attribute on PickAndPlace station?

I have an issue with my PickAndPlace station, that places MU differently than staten in @.Destination attribute.

 

Can i kindly ask you for help?

 

Many thanks.

 

AutomaticBoi

 

3 REPLIES 3

Re: Pick and place - getDestination

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

have a look in the Attributes and Method window (F8) -> object in the column Signature means: this is a method

so you cannot watch this directly

 

but you can use a display object --> mode sample

 

as a second check you can use entrance controls in your entrance buffers:

 

if @.destination /= ? then

  debug

end

 

to check if some part is moved to the wrong destination

 

 

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

Re: Pick and place - getDestination

Valued Contributor
Valued Contributor

Hello Steffen,

 

I tried the display object with mode sample as you suggested - it shows the current state.

The entrance method on buffers is unfortunately too late for me, since the part already arrived to the wrong destination.

 

As i was watching my model second by second, it goes like this:

Fanuc2 gets the part with @.Destination defined to "In10", which is correcly next station in production sequence. Therefore the ?.getDestination attribute is "In10".

 

Immediately after that something changes ?.getDestination attribute to "In5" and I cannot track that something.

 

Sorry to bother you, many thanks for suggestions anyway.

 

BR

AutomaticBoi

 

Re: Pick and place - getDestination

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you could check some seconds before, if there are some methods are suspended.

 

GetDestination will return another value,if you set another destination with setDestination. This yould be done by a suspended method (check if the same method is suspended several times).

 

 

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