EasyManua.ls Logo

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

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

Summary

Communication Protocols

Communication Functions and Specifications

Covers communication functions, RS-485 protocol, specifications, and CRC calculation.

Frame Structure and Data Configuration

Details frame types, data configuration, parameter lists, and I/O pin setup.

Status Flags and Motor Information

Explains status flags, position table items, and motor information.

Programming Methods

Describes the primary methods for programming the Ezi-STEP Plus-R.

Library for PC Program

Library Configuration and Drive Link Functions

Details library setup, return values, and core drive link functions.

Parameter, I/O, and Servo Control

Functions for parameter management, servo control, and digital I/O operations.

Motion, Status, and Position Table Control

Covers position, drive status, running control, and position table functions.

Other Control Functions

Specific functions for trigger output control and status.

Protocol for PLC Program

PLC Communication Protocol Details

Guidelines for implementing communication protocols for PLC programming.

Related product manuals