added initial EL7031 and EL7041_0052 support
This commit is contained in:
40
src/lcec_el70x1.h
Normal file
40
src/lcec_el70x1.h
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// Copyright (C) 2015 Jakob Flierl <jakob.flierl@gmail.com>
|
||||
// Copyright (C) 2011 Sascha Ittner <sascha.ittner@modusoft.de>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
//
|
||||
#ifndef _LCEC_EL70x1_H_
|
||||
#define _LCEC_EL70x1_H_
|
||||
|
||||
#include "lcec.h"
|
||||
|
||||
#define LCEC_EL70x1_VID LCEC_BECKHOFF_VID
|
||||
#define LCEC_EL7031_PID 0x1B773052
|
||||
#define LCEC_EL7041_0052_PID 0x1B813052
|
||||
|
||||
#define LCEC_EL70x1_PDOS 15 //34
|
||||
|
||||
#define LCEC_EL70x1_PARAM_MAX_CURR 1
|
||||
#define LCEC_EL70x1_PARAM_RED_CURR 2
|
||||
#define LCEC_EL70x1_PARAM_NOM_VOLT 3
|
||||
#define LCEC_EL70x1_PARAM_COIL_RES 4
|
||||
#define LCEC_EL70x1_PARAM_MOTOR_EMF 5
|
||||
|
||||
int lcec_el7031_init(int comp_id, struct lcec_slave *slave, ec_pdo_entry_reg_t *pdo_entry_regs);
|
||||
int lcec_el7041_0052_init(int comp_id, struct lcec_slave *slave, ec_pdo_entry_reg_t *pdo_entry_regs);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user