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 #53 background imageLoading...
Page #53 background image
- 53 -
53
Library for PC Program
FAS_SetIOInput
To set I/O input. For more information, refer to ‘1-1-5. Frame Type and Data Configuration.
Syntax
int FAS_SetIOInput(
BYTE nPortNo,
BYTE iSlaveNo,
DWORD dwIOSetMask,
DWORD dwIOCLRMask
);
Parameters
nPortNo
Port number of relevant drive.
iSlaveNo
Slave number of relevant drive.
dwIOSetMask
Input bitmask value to be set
dwIOCLRMask
Input bitmask value to be clea red
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 relevan t port.
Remarks
Be careful that dwIOSetMask bit and dwIOCLRMask bit are not duplicated.
Example
#include "FAS_EziMOTIONPlusR.h"
void funcIO()
{
BYTE nPortNo = 1; // COMM Port Number
BYTE iSlaveNo = 0; // Slave No (0 ~ 15)
DWORD dwInput, dwOutput;
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 I/O input.
nRtn = FAS_GetIOInput(nPortNo, iSlaveNo, &dwInput);
_ASSERT(nRtn == FMM_OK);
if (dwInput & STEP_IN_BITMASK_LIMITP)
{
// Limit + input is ON.
}

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