YRC1000TcpNetReadByCommandAsync 方法 |
根据指令来读取设备的信息,如果命令数据为空,则传入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 Task<OperateResult<string>> ReadByCommandAsync(
string command,
string commandData
)
Public Function ReadByCommandAsync (
command As String,
commandData As String
) As Task(Of OperateResult(Of String))
public:
Task<OperateResult<String^>^>^ ReadByCommandAsync(
String^ command,
String^ commandData
)
member ReadByCommandAsync :
command : string *
commandData : string -> Task<OperateResult<string>>
参数
- command
- 类型:SystemString
命令的内容 - commandData
- 类型:SystemString
命令数据内容
返回值
类型:
TaskOperateResultString最终的结果内容,需要对IsSuccess进行验证
备注
此处举几个例子
"RALARM", NULL 错误报警代码读取。
"RPOSJ", NULL 关节坐标系的坐标位置读取。
"RJSEQ", NULL 读取当前的程序名,行编号,步编号。
"SAVEV", "7,000" 读取变量数据。字符串变量
参见