SimSet 方法
描述
在模拟器中设置各种对象的属性。还能进行机器人动作和对象操作,以及模拟器设置等操作。
语法
Sub SimSet (Object As String, Property As SpelSimProps, Value As Boolean)
Sub SimSet (RobotName As String, HandName As String, Property As SpelSimProps, Value As Boolean)
Sub SimSet (Object As String, Property As SpelSimProps, Value As Integer)
Sub SimSet (RobotName As String, HandName As String, Property As SpelSimProps, Value As Integer)
Sub SimSet (Object As String, Property As SpelSimProps, Value As Double)
Sub SimSet (RobotName As String, HandName As String, Property As SpelSimProps, Value As Double)
Sub SimSet (Object As String, Property As SpelSimProps, Value As String)
Sub SimSet (RobotName As String, HandName As String, Property As SpelSimProps, Value As String)
参数
- Object
显示获取属性值的对象名称的字符串变量。 - RobotName
显示安装了“Hand”中指定的夹爪的机器人的名称的字符串变量。 - HandName
显示获取属性值的夹爪名称的字符串变量 - Property
要为其设置新值的属性名称。 - Value
新数值的表达式
备注
本方法用于更改模拟器中各种对象的属性设置和操作,机器人操作和模拟器设置。
无法使用属性指定SpelSimProps.Type。
有关各属性的详细资讯,请参阅以下手册。
"Epson RC+ 8.0 SPEL+ 语言参考 - SimSet"
参阅
SimGet 方法
SimSet 示例
VB 例:
m_spel.SimSet ("SBox_1", SpelSimProps.PositionX, 100.0)
C# 例:
m_spel.SimSet("SBox_1", SpelSimProps.PositionX, 100.0);