SimGet 方法
描述
获取模拟器中各种对象的属性设置。
语法
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Boolean)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As Boolean)
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Double)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As Double)
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Integer)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As Integer)
Sub SimGet (Object As String, Property As SpelSimProps, ByRef Value As Boolean)
Sub SimGet (RobotName As String, HandName As String, Property As SpelSimProps, ByRef Value As String)
参数
- Object
显示获取属性值的对象名称的字符串变量。 - RobotName
显示安装了“Hand”中指定的夹爪的机器人的名称的字符串变量。 - HandName
显示获取属性值的夹爪名称的字符串变量。 - Property
获取值的属性的名称。 - Value
显示返回值的变量。
备注
本方法用于获取模拟器中各种对象的属性设置。
有关各属性的详细资讯,请参阅以下手册。
"Epson RC+ 8.0 SPEL+ 语言参考 - SimGet"
参阅
SimSet 方法
SimGet 示例
VB 例:
Dim posX As Double
m_spel.SimGet("SBox_1", SpelSimProps.PositionX, posX)
C# 例:
double posX;
SimGet("SBox_1", SpelSimProps.PositionX, out posX);