Ecat_Master_Get_Cardseq - Delta EtherCAT Programming Manual

Table of Contents

Advertisement

EtherCAT Programming Guide

6.5 _ECAT_Master_Get_CardSeq

Syntax
U16 PASCAL _ECAT_Master_Get_CardSeq (U16 CardSeq, U16 * CardNo)
Purpose
This is for acquiring motion card No.
After acquiring the quantity of EtherCAT master, you can get the number of EtherCAT master in
sequence by the master sequence ID, which starts from 0. And the card No. of EtherCAT master
is the number on the knob exactly. If you are using RTX version of Delta PAC, the master's No. is
always 16.
Parameter
Name
CardSeq
CardNo
Example
U16 Status;
U16 CardNo=0;
U16 Cardnum=0;
Status = _ECAT_Master_Open(&Cardnum);
for (U16 CardSeq = 0; CardSeq < Cardnum; CardSeq ++)
{
Status = _ECAT_Master_Get_CardSeq (CardSeq, &CardNo);
Status = _ECAT_Master_Initial(CardNo);
Status = _ECAT_Master_Reset(CardNo);
}
Status = _ECAT_Master_Close();
March, 2017
Data type
Property
U16
Number
U16*
Number
Description
Sequence ID of the motion card.
Card No.
Master Initialization
6
6-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents