FanucSeries0iWriteProgramContent 方法 |
[商业授权] 将指定程序内容的NC加工程序,写入到数控机床里,返回是否下载成功
[Authorization] Download the NC machining program to the CNC machine tool, and return whether the download is successful
命名空间:
HslCommunication.CNC.Fanuc
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult WriteProgramContent(
string program,
int everyWriteSize = 512,
string path = ""
)
Public Function WriteProgramContent (
program As String,
Optional everyWriteSize As Integer = 512,
Optional path As String = ""
) As OperateResult
public:
OperateResult^ WriteProgramContent(
String^ program,
int everyWriteSize = 512,
String^ path = L""
)
member WriteProgramContent :
program : string *
?everyWriteSize : int *
?path : string
(* Defaults:
let _everyWriteSize = defaultArg everyWriteSize 512
let _path = defaultArg path ""
*)
-> OperateResult
参数
- program
- 类型:SystemString
程序内容信息 - everyWriteSize (Optional)
- 类型:SystemInt32
每次写入的长度信息 - path (Optional)
- 类型:SystemString
程序路径信息,默认为空,就是 //CNC_MEM/USER/PATH1/ 如果需要指定PATH2,需要输入 //CNC_MEM/USER/PATH2/
返回值
类型:
OperateResult是否下载成功
备注
程序文件的内容必须%开始,%结束,下面是一个非常简单的例子:
%
O0006
G90G10L2P1
M30
%
参见