网淘巴来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

Visualcomponet Wrapper Error包装错误

2021-08-05 新闻来源:网淘巴 围观:4354
''

Hi,

For some days I have been struggl[文]ing with the Wrapper[章] that I downloa[来]ded form Visual Compone[自]nts.

I am using KUKA SIM PRO 3.1.2.

I changed[网] the height,[淘] width and length of the wrapper[巴] conveyo[文]r but for some reason the program[章] does not allow me to change the Foil Angle and Foil Length.[来]

Basical[自]ly, when the pallet reaches[网] the wrapper[淘], it starts wrappin[巴]g the pallet around with foil but after the first movemen[文]t of the Servo Control[章]ler it gives me an error:

几天来,我一直[来]在为从Visu[自]al Compone[网]nts下载的W[淘]rapper而[巴]烦恼。

我使用的是KU[文]KA SIM PRO 3.1.2。

我改变了高度,[章]宽度和长度的包[来]装输送机,但由[自]于某些原因,程[网]序不允许我改变[淘]箔角度和箔长度[巴]

基本上,当托盘碰到包装时,它开始用箔包裹托盘但在伺服控制器第一次移动后它给了我一个错误:

Traceback (most recent call last):  File "TurnUnit #2::PythonScript", line 37, in OnRun  File "TurnUnit #2::PythonScript", line 61, in createFoilSegmentIndexError: list index out of range

Here is the layout I have:

Visual Components
Visual Components777×392 32.6 KB

 

Best Regards

答案1:Check the ConfigScript in the component. Whenever the simulation or scene is updated, the FoilAngle and FoilLength property values are set by the script. So when you type in a value for FoilAngle, that change in value, triggers a simulation update, e.g. OnSimulationUpdate.

检查组件中的C[文]onfigSc[章]ript。每当[来]模拟或场景被更[自]新时,Foil[网]Angle和F[淘]oilLeng[巴]th属性值都由[文]脚本设置。所以[章]当你为Foil[来]Angle输入[自]值时,值的变化[网]会触发一个模拟[淘]更新,例如On[巴]Simulat[文]ionUpda[章]te。

 

答案2:

Very old compone[来]nt from previou[自]s VC product[网] family.[淘]

I recomme[巴]nd you do the followi[文]ng:

Clear 3D world.
Load the wrapper component
Notice the error in the Output panel. Fix this by adding AmountOfFeet property in component of type integer and set the value to 2 or 4, for example, so the wrapper is not suspended in mid error.
Save with new VCID so it is saved with VCMX file format.
After doing that, the script in the wrapper is expecting the ComponentSignal to have a value, which it assigns to pallet variable. The pallet variable is then added as argument for calling createFoilSegment().

The createF[章]oilSegm[来]ent expects[自] the pallet to be a compone[网]nt and that it is a contain[淘]er type behavio[巴]r, e.g. Compone[文]nt Contain[章]er behavio[来]r. If the pallet is None, you will get an error. If there is no contain[自]er type behavio[网]r, you will get an error.

Long story short, it is an old compone[淘]nt, so you can try to fix the script or update the compone[巴]nt. No guarant[文]ee a VCM file will work properl[章]y in later version[来]s of softwar[自]e. And you might get error that foil variabl[网]e is none.

Conside[淘]r getting[巴] new version[文] of wrapper[章] compone[来]nt or make a new one.

 

非常古老的VC[自]产品组件了。

我建议你做以下[网]事情:

清除3 d世界。
加载包装组件
请注意Output面板中的错误。通过在类型为integer的组件中添加AmountOfFeet属性并将值设置为2或4来解决这个问题,例如,这样包装器就不会在中间错误时挂起。
用新的VCID保存,所以它是以VCMX文件格式保存。
这样做之后,包装器中的脚本将期望ComponentSignal具有一个值,并将该值赋给托盘变量。然后添加托盘变量作为调用createFoilSegment()的参数。

createF[淘]oilSegm[巴]ent期望托盘[文]是一个组件,并[章]且它是一个容器[来]类型的行为,例[自]如组件容器行为[网]。如果托盘为N[淘]one,您将得[巴]到一个错误。如[文]果没有包含容器[章]类型行为,就会[来]得到一个错误。[自]

总而言之,它是[网]一个旧组件,所[淘]以您可以尝试修[巴]复脚本或更新组[文]件。不能保证V[章]CM文件在以后[来]的软件版本中能[自]够正常工作。你[网]可能会得到错误[淘],foil变量[巴]是none。

考虑获取新版本[文]包装器组件或创[章]建一个新版本。[来]

翻译由网淘巴完成,转载必须标明出处:https://www.wtao8.com/post/129.html

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

本文链接:https://www.wtao8.com/post/129.html 转载需授权!

分享到:

相关文章

龙年
大发