| FanucSeries0iWriteProgramFileAsync 方法  | 
 [商业授权] 将指定文件的NC加工程序,下载到数控机床里,返回是否下载成功
[Authorization] Download the NC machining program of the specified file to the CNC machine tool, and return whether the download is successful
            
 
        命名空间: 
     HslCommunication.CNC.Fanuc
        程序集:
     HslCommunication (在 HslCommunication.dll 中) 版本:12.5.1.0 (12.5.1.0)
 语法
语法public Task<OperateResult> WriteProgramFileAsync(
	string file,
	int everyWriteSize = 512,
	string path = ""
)
Public Function WriteProgramFileAsync ( 
	file As String,
	Optional everyWriteSize As Integer = 512,
	Optional path As String = ""
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ WriteProgramFileAsync(
	String^ file, 
	int everyWriteSize = 512, 
	String^ path = L""
)
member WriteProgramFileAsync : 
        file : string * 
        ?everyWriteSize : int * 
        ?path : string 
(* Defaults:
        let _everyWriteSize = defaultArg everyWriteSize 512
        let _path = defaultArg path ""
*)
-> Task<OperateResult> 
参数
- file
- 类型:SystemString
 程序文件的路径
- everyWriteSize (Optional)
- 类型:SystemInt32
 [缺少 "M:HslCommunication.CNC.Fanuc.FanucSeries0i.WriteProgramFileAsync(System.String,System.Int32,System.String)" 的 <param name="everyWriteSize"/> 文档] 
- path (Optional)
- 类型:SystemString
 [缺少 "M:HslCommunication.CNC.Fanuc.FanucSeries0i.WriteProgramFileAsync(System.String,System.Int32,System.String)" 的 <param name="path"/> 文档] 
返回值
类型:
TaskOperateResult是否下载成功
 备注
备注
            程序文件的内容必须%开始,%结束,下面是一个非常简单的例子:
            %
            O0006
            G90G10L2P1
            M30
            %
            
 参见
参见