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 #98 background imageLoading...
Page #98 background image
- 98 -
98
Library for PC Program
FAS_MoveVelocityEx
To move the motor to the relevant direction and velocity. This function is also available
for Jog motion.
Syntax
int FAS_MoveSingleAxisIncPos(
BYTE nPortNo,
BYTE iSlaveNo,
DWORD lVelocity,
int iVelDir,
VELOCITY_OPTION_EX* lpExOption
);
Parameters
nPortNo
Port number of relevant drive.
iSlaveNo
Slave number of relevant drive.
lVelocity
Velocity when the motor moves
iVelDir
Direction which the motor moves ( 0: -Jog, 1: +Jog)
lpExOption
Custom option.
Return Value
FMM_OK : Command has been normally 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
Refer to VELOCITY_OPTION_EX struct.
Example
#include "FAS_ EziMOTIONPlusR.h"
void funcMoveVelocityEx()
{
BYTE nPortNo = 1; // COMM Port Number
BYTE iSlaveNo = 0; // Slave No (0 ~ 15)
long lVelocity;
VELOCITY_OPTION_EX opt = {0};
int nRtn;
// Try to connect
if (FAS_Connect(nPortNo, 115200) == FALSE)
{
// Connection failed.
// The port number may be wrong, or incorrect Baudrate.
return;
}
// Moving motor with different acc/dec time : FAS_MoveSingleAxisIncPos Ex
lVelocity = 30000;
opt.flagOption.BIT_USE_CUSTOMACCDEC = 1;
opt.wCustomAccDecTime = 300;

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