设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4313|回复: 9

[原创] Plant Simulation9.0 新模型PickAndPlace

  [复制链接]
发表于 2010-11-2 22:09:50 | 显示全部楼层 |阅读模式
各位学习Plant的朋友,相信大家都发现了9.0的版本新增了一个叫PickAndPlace的模型,我姑且自行翻译它为抓取装置,这个模型大为实用,使我直接pass掉原本想用Turntable来模拟的方案。我已将PickAndPlace部分的英文帮助粗略地翻译了一下,并且会发布我编写的例子。由于今天忘记带回家了,所以明天我会记得放上来与大家共享。
0 N* o1 g  s& O$ r# ?  如果有朋友对英文帮助读得很深很懂的话,可以指点我的翻译。毕竟本人水平有限....

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2010-11-3 18:47:46 | 显示全部楼层

The pick-and-place robot picks a part up at one station and places it onto another station. It moves a single part at any one time.

The pick-and-place robot moves the part on to its successors within the flow of materials like this:

    • The part arrives at the exit of the predecessor. It notifies the pick-and-place robot that it wants to be picked up.
    • The pick-and-place robot then decides if it picks the part up or not.
    • Without a Pull control, the robot will be notified that a part wants to be picked up and it accepts it.
    • When you entered a Pull Controlthe robot executes it, and when the part is selected, it will be picked up.
    • The pick-and-place robot rotates to the respective predecessor and picks the part up.
    • For determining the target station, the robot either uses its default exit strategies or the Target Control Within this method you set the target station.
    The target control is called, when the robot picks up or when it places a part. Within the method setDestinationthe boolean argument controls, if the robot waits at the target station.
    • Then the pick-and-place robot rotates to the places station and places the part. Finally it rotates back to the standard position.

) Q) B. C$ h2 x* S% {; L! a5 p

抓取装置(机器人)在一个工位抓起一个工件并将之放到另一个工位。它任何时候只能移动一个工件。" N; h3 |; {9 A& J+ q, Z( ]5 n9 A
抓取装置将物流材料移动到它的后续对象,其机制为:
( x5 n8 v1 Q8 A* c' f·工件到达前驱对象的出口处。向抓取装置表明,希望它将之抓起来。# n8 L+ T# `9 M4 P
·抓取装置决定是否将之抓取。* C, O7 x3 ~4 ^' n
·如果没有“拉动”控制,装置将按照工件希望被抓起来处理,并且接受该请求。  o) h; [) E( n3 p$ e4 A: e& x9 C
·当你设定了“拉动”控制,装置会执行它,当工件满足你的设定时,才会执行抓取动作。
7 U! i& T% _+ s! l1 A·装置旋转至前驱对象,抓起工件。
9 t, Q# m8 T3 f: A, t8 Z! }% I·为了确定目标位置,装置要么使用默认的出口策略,要么执行“目标”控制。使用method函数来实现“目标”控制。; v: e1 y7 u  D1 j( p  i7 `
何时抓取或是何时放下都将由被调用的目标函数决定。需要时可以使用setDestination函数来确定目标位置。
3 a( @; C7 v  k·然后抓取装置旋转到目标位置,并将工件放下。最后,它将返回标准位置(笔者注:可以在“属性”,“默认角度”里进行设置)。
, k1 s4 e( e# Z* r) W

  翻译比较粗略,还请见谅~~附件是我做的一个小例子。过程解释一下:有一道工序需要前一道工序和流水线上的物料进行组装,组装使用无人设备完成,而抓取装置需要严格地将前道工序和流水线上的按顺序放上设备,如果缺少物料,需要在流水线工位进行等待,一旦有物料过来马上抓取至设备。而当设备没有完成工作时,就算有物料,物料装置也必须等待设备完成工作才能进行抓取。

% e/ h, J! u  A% l% V

  我编的程实现是实现了,但是感觉有点繁,哪位大侠可以指点一番,更加简化地完成这个控制。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2010-11-4 18:32:25 | 显示全部楼层
回复 4# mengling ! i% }* }1 W; z7 N$ b2 ~+ c, {3 q( b
那请问版主,可有替代的方案?
发表于 2010-11-7 13:37:47 | 显示全部楼层
用相互判断来代替waituntil
 楼主| 发表于 2010-11-11 18:12:06 | 显示全部楼层
用相互判断来代替waituntil
. b  |) E; _. C- o小李无刀 发表于 2010-11-7 13:37
3 D+ ^# o. X# I: U

+ ~' |: k7 [4 c, u% P/ N1 S+ B不知道可否几个例子?这样比较容易理解
发表于 2010-11-11 23:04:09 | 显示全部楼层
比如,A是抓件机器人,B是工作站。A抓完件复位后判断B是否加工完成,若完成则继续抓件,如没有完成A等待;B完成后判断A是否已经复位,已经复位则给A发信号过来抓件,若没有复位则等待。
% e% X- Z# C" ^0 @% [% O这样避免外waituntil
 楼主| 发表于 2010-11-13 18:32:35 | 显示全部楼层
比如,A是抓件机器人,B是工作站。A抓完件复位后判断B是否加工完成,若完成则继续抓件,如没有完成A等待;B ...( V2 l9 R# H& j' h7 P5 f, @
小李无刀 发表于 2010-11-11 23:04
& W& z% ^/ }7 u1 w# n0 h

) K5 b1 j4 m% r6 p8 u! q了解,弱弱地问一下,你提到的等待是如何不用waituntil实现的呢?
 楼主| 发表于 2010-11-19 20:25:57 | 显示全部楼层
回复  djl421
2 c$ f' ?8 g0 M6 ^& y1 i" s' G  \: U
不给它赋予任何的后续动作就可以了& U" O! n4 [7 K% p/ t2 o
mengling 发表于 2010-11-15 16:07
4 `( K  u( K# J% W
6 z1 Y, J+ F& l. o
明白!感谢版主不厌其烦地赐教!
发表于 2010-11-21 11:33:30 | 显示全部楼层
不错
发表于 2013-8-22 15:10:40 | 显示全部楼层
楼主可否贴下Target Control 的method的写法~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2024-5-20 09:40 , Processed in 0.016679 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表