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 #45 background imageLoading...
Page #45 background image
- 45 -
45
Library for PC Program
FAS_SaveAllParameters
Save all edited parameters up to now and assigned I/O signals to the ROM area .
Syntax
Int FAS_SaveAllParameters(
BYTE nPortNo,
BYTE iSlaveNo
);
Parameters
nPortNo
Port number of relevant drive
iSlaveNo
Slave number of relevant drive
Return Value
FMM_OK : Command has been successfully performed.
FMM_NOT_OPEN : The drive has not been connected yet.
FMM_INVALID_PORT_NUM : There is no nPort in the connected ports.
FMM_INVALID_SLAVE_NUM : There is no drive of iSlaveNo in the relevant port.
Remarks
Parameter values set to ‘FAS_SetIOAssignMap library as well as current parameter values are
saved to the ROM.
Example
#include "FAS_EziMOTIONPlusR.h"
void funcModifyParameter()
{
BYTE nPortNo = 1; // COMM Port Number
BYTE iSlaveNo = 0; // Slave No (0 ~ 15)
long lParamVal;
int nRtn;
// Try to connect
if (FAS_Connect(nPortNo, 115200) == FALSE)
{
// Connection failed.
// The port is not connected or the baudrate may be wrong.
return;
}
// Check Axis Start Speed Parameter.
nRtn = FAS_GetParameter(nPortNo, iSlaveNo, STEP_AXISSTARTSPEED, &lParamVal);
if (nRtn != FMM_OK)
{
// Command has not been performed properly.
// Refer to ReturnCodes_Define.h.
_ASSERT(FALSE);
}
else
{
// Parameter value saved in Ezi -STEP Plus-R.
printf("Parameter [before] : Start Speed = %d \n", lParamVal);
}

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