EasyManuals Logo
Home>Fastech>Controller>Ezi-Step Plus-R

Fastech Ezi-Step Plus-R User Manual

Fastech Ezi-Step Plus-R
114 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #43 background imageLoading...
Page #43 background image
- 43 -
43
Library for PC Program
FAS_SetLogPath
Setup the folder path of Log output files.
Syntax
BOOL FAS_SetLogPath(LPCTSTR lpPath);
Parameters
lpPath
Folder path Character string of Log output file.
Return Value
If the folder name is not exist or can not access, return FALSE.
Remarks
This function have to be called before FAS_Connect library.
If the lpPath value is NULL or the length is 0, the Log path is selected to
Ezi-MOTION Plus-R Library folder. The default value for Log path is NULL that the
current library and program exist folder.
Example
#include "FAS_ EziMOTIONPlusR.h"
void funcEnableLog()
{
BYTE nPortNo = 1; // COMM Port number
// Log output.
FAS_EnableLog(TRUE);
if (!FAS_SetLogPath(_T(“C:\\Logs\\”))) // C:\Logs folder exist.
{
// Log path does not exist.
Return;
}
// All Log output is stored in C: \Logs folder.
// Try to connect.
if (FAS_Connect(nPortNo, 115200) == FALSE)
{
// Connection fail.
// cab be different Port or different Baudrate.
return;
}
// Close connect.
FAS_Close(nPortNo);
}
See Also
FAS_EnableLog

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Fastech Ezi-Step Plus-R and is the answer not in the manual?

Fastech Ezi-Step Plus-R Specifications

General IconGeneral
BrandFastech
ModelEzi-Step Plus-R
CategoryController
LanguageEnglish

Related product manuals