[etherlab-users] Beckhoff EL2252 EL3702
mfyhit
mafeiyang1995 at 163.com
Tue May 15 03:18:08 CEST 2018
Dear etherlab-users:
we are trying to use the Beckhoff EL2252 and EL3702.
Before, I only test these modules by Twincat, I don't know how to use these with Etherlab. So I have read programs in examples, it can not solve my problems. Do you mind if I ask you a favor? Could I have a look about the program of EL2252? Is there another one program about El3702?
----------------------------------------------------------------
ec_pdo_entry_info_t slave_1_pdo_entries[] = {
{0x1d09, 0x81, 8}, /* Activate */
{0x1d09, 0x90, 64}, /* StartTime */
{0x7000, 0x01, 1}, /* Output */
{0x7000, 0x02, 1}, /* TriState */
{0x7010, 0x01, 1}, /* Output */
{0x7010, 0x02, 1}, /* TriState */
{0x0000, 0x00, 4}, /*Reserved*/
{0x1d09, 0x10, 64}, /*Systime*/
{0x1d09, 0x11, 8}, /*Feedback*/
};
ec_pdo_info_t slave_1_pdos[] = {
{0x1602, 1, slave_1_pdo_entries + 0}, /* DC Sync Activate */
{0x1603, 1, slave_1_pdo_entries + 1}, /* DC Sync Start */
{0x1600, 2, slave_1_pdo_entries + 2}, /* Channel 1 */
{0x1601, 3, slave_1_pdo_entries + 4}, /* Channel 2 */
{0x1604, 0, NULL}, /* Reserved */
{0x1a00, 1, slave_1_pdo_entries + 7}, /*systime*/
{0x1a01, 1, slave_1_pdo_entries + 8}, /*feedback*/
};
static ec_sync_info_t slave_1_pdo_syncs[] = {
{0, EC_DIR_OUTPUT, 1, slave_1_pdos + 0},
{1, EC_DIR_OUTPUT, 1, slave_1_pdos + 1},
{2, EC_DIR_OUTPUT, 1, slave_1_pdos + 2},
{3, EC_DIR_INPUT, 1, slave_1_pdos + 4},
{4, EC_DIR_INPUT, 1, slave_1_pdos + 5},
{5, EC_DIR_INPUT, 1, slave_1_pdos + 6},
{0xff}
};
---------------------------------------------------------------
Best Regards
Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20180515/80c4f8fe/attachment-0002.htm>
More information about the Etherlab-users
mailing list