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
_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to