网淘巴来吧,欢迎您!

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

Visualcomponet Wrapper Error包装错误

2021-08-05 新闻来源:网淘巴 围观:433
电脑广告
手机广告

Hi,

For some days I have been struggling with the Wrapper that I downloaded form Visual Components.

I am using KUKA SIM PRO 3.1.2.

I changed the height, width and length of the wrapper conveyor but for some reason the program does not allow me to change the Foil Angle and Foil Length.

Basically, when the pallet reaches the wrapper, it starts wrapping the pallet around with foil but after the first movement of the Servo Controller it gives me an error:

几天来,我一直在为从Visual Components下载的Wrapper而烦恼。

我使用的是KUKA 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 createFoilSegment
IndexError: 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.

检查组件中的ConfigScript。每当模拟或场景被更新时,FoilAngle和FoilLength属性值都由脚本设置。所以当你为FoilAngle输入值时,值的变化会触发一个模拟更新,例如OnSimulationUpdate。

 

答案2:

Very old component from previous VC product family.

I recommend you do the following:

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 createFoilSegment expects the pallet to be a component and that it is a container type behavior, e.g. Component Container behavior. If the pallet is None, you will get an error. If there is no container type behavior, you will get an error.

Long story short, it is an old component, so you can try to fix the script or update the component. No guarantee a VCM file will work properly in later versions of software. And you might get error that foil variable is none.

Consider getting new version of wrapper component or make a new one.

 

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

我建议你做以下事情:

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

createFoilSegment期望托盘是一个组件,并且它是一个容器类型的行为,例如组件容器行为。如果托盘为None,您将得到一个错误。如果没有包含容器类型行为,就会得到一个错误。

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

考虑获取新版本包装器组件或创建一个新版本。

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

打赏 支付宝打赏 微信打赏
免责申明
一、网淘巴提供的资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱:
jjq_hn@wtao8.com ,我们会在看到邮件的第一时间内为您处理。
二、网友通过wtao8.com途径发表的一切信息,本站有权在本网站范围内引用、发布、转载用户在本站发布的内容。本站对于用户发布的内容所引发的版权、署名权的异议、纠纷不承担任何责任。传统媒体转载须事先与原作者和本站联系。提交者发言纯属个人行为,与本网站立场无关。
文章底部电脑广告
手机广告位-内容正文底部

相关文章

学习使人进步

这是我学习的历程,分享给大家。