FanucSeries0iReadProgram 方法 (Int32, String) |
[商业授权] 读取指定程序号的程序内容,可以指定路径信息,路径默认为空就是主路径,//CNC_MEM/USER/PATH1/ ,也可以指定其他路径
[Authorization] Read the program content of the specified program number
命名空间:
HslCommunication.CNC.Fanuc
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<string> ReadProgram(
int program,
string path = ""
)
Public Function ReadProgram (
program As Integer,
Optional path As String = ""
) As OperateResult(Of String)
public:
OperateResult<String^>^ ReadProgram(
int program,
String^ path = L""
)
member ReadProgram :
program : int *
?path : string
(* Defaults:
let _path = defaultArg path ""
*)
-> OperateResult<string>
参数
- program
- 类型:SystemInt32
程序号或是程序名称 - path (Optional)
- 类型:SystemString
程序路径信息,默认为空,就是 //CNC_MEM/USER/PATH1/ 如果需要指定PATH2,需要输入 //CNC_MEM/USER/PATH2/
返回值
类型:
OperateResultString程序内容
参见