YRC1000TcpNetReadByCommand 方法 |
根据指令来读取设备的信息,如果命令数据为空,则传入null即可,注意,所有的命令不带换行符
Read the device information according to the instructions. If the command data is empty, pass in null. Note that all commands do not have a newline character
命名空间:
HslCommunication.Robot.YASKAWA
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<string> ReadByCommand(
string command,
string commandData
)
Public Function ReadByCommand (
command As String,
commandData As String
) As OperateResult(Of String)
public:
OperateResult<String^>^ ReadByCommand(
String^ command,
String^ commandData
)
member ReadByCommand :
command : string *
commandData : string -> OperateResult<string>
参数
- command
- 类型:SystemString
命令的内容 - commandData
- 类型:SystemString
命令数据内容
返回值
类型:
OperateResultString最终的结果内容,需要对IsSuccess进行验证
备注
此处举几个例子
"RALARM", NULL 错误报警代码读取。
"RPOSJ", NULL 关节坐标系的坐标位置读取。
"RJSEQ", NULL 读取当前的程序名,行编号,步编号。
"SAVEV", "7,000" 读取变量数据。字符串变量
参见