Hallo, copy the output of etherlab --skin etherlab -p xx to your m-file. Add sdo configuration as show in attached example. Call the m-file from an generic slave block.
Attached an example for EL7041. Sometimes one has to examine the configuration from TwinCat. Regards Wilhelm. Am 26.01.2016 um 20:08 schrieb Rehberger, Sebastian:
Dear Etherlab Users, has anyone already used a Beckhoff EL6224 bus clamp? This is a IO-Link terminal and we are having some RFID reader/writers connected to it. I recently tried to use the generic slave block for interfacing it, but failed. I therefore generated the .m configuration file for the generic configuration with "--skin" option on command line. Any idea how I should approach this? Thank you for any advice and help. Kind regards, Sebastian _______________________________________________ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users
% % Master 0, Slave 17, "EL7041-1000" % function rv = el7041_1000() % Slave configuration rv.SlaveConfig.vendor = 2; rv.SlaveConfig.product = hex2dec('1b813052'); rv.SlaveConfig.description = 'EL7041-1000'; rv.SlaveConfig.sm = { ... {0, 0, { }}, ... {1, 1, { }}, ... {2, 0, { {hex2dec('1600'), [ hex2dec('7000'), hex2dec('01'), 1; ... hex2dec('7000'), hex2dec('02'), 1; ... hex2dec('7000'), hex2dec('03'), 1; ... hex2dec('7000'), hex2dec('04'), 1; ... hex2dec('0000'), hex2dec('00'), 4; ... hex2dec('0000'), hex2dec('00'), 8; ... hex2dec('7000'), hex2dec('11'), 16; ... ]}, ... {hex2dec('1602'), [ hex2dec('7010'), hex2dec('01'), 1; ... hex2dec('7010'), hex2dec('02'), 1; ... hex2dec('7010'), hex2dec('03'), 1; ... hex2dec('0000'), hex2dec('00'), 5; ... hex2dec('0000'), hex2dec('00'), 8; ... ]}, ... {hex2dec('1604'), [ hex2dec('7010'), hex2dec('21'), 16; ... ]}, ... }}, ... {3, 1, { {hex2dec('1a00'), [ hex2dec('6000'), hex2dec('01'), 1; ... hex2dec('6000'), hex2dec('02'), 1; ... hex2dec('6000'), hex2dec('03'), 1; ... hex2dec('6000'), hex2dec('04'), 1; ... hex2dec('6000'), hex2dec('05'), 1; ... hex2dec('0000'), hex2dec('00'), 2; ... hex2dec('6000'), hex2dec('08'), 1; ... hex2dec('6000'), hex2dec('09'), 1; ... hex2dec('6000'), hex2dec('0a'), 1; ... hex2dec('6000'), hex2dec('0b'), 1; ... hex2dec('0000'), hex2dec('00'), 1; ... hex2dec('6000'), hex2dec('0d'), 1; ... hex2dec('6000'), hex2dec('0e'), 1; ... hex2dec('0000'), hex2dec('00'), 1; ... hex2dec('6000'), hex2dec('10'), 1; ... hex2dec('6000'), hex2dec('11'), 16; ... hex2dec('6000'), hex2dec('12'), 16; ... ]}, ... {hex2dec('1a03'), [ hex2dec('6010'), hex2dec('01'), 1; ... hex2dec('6010'), hex2dec('02'), 1; ... hex2dec('6010'), hex2dec('03'), 1; ... hex2dec('6010'), hex2dec('04'), 1; ... hex2dec('6010'), hex2dec('05'), 1; ... hex2dec('6010'), hex2dec('06'), 1; ... hex2dec('6010'), hex2dec('07'), 1; ... hex2dec('0000'), hex2dec('00'), 4; ... hex2dec('6010'), hex2dec('0c'), 1; ... hex2dec('6010'), hex2dec('0d'), 1; ... hex2dec('6010'), hex2dec('0e'), 1; ... hex2dec('0000'), hex2dec('00'), 1; ... hex2dec('6010'), hex2dec('10'), 1; ... ]}, ... }}, ... }; % Port configuration rv.PortConfig.input(1).pdo = [2, 0, 0, 0]; rv.PortConfig.input(1).pdo_data_type = 1001; rv.PortConfig.input(2).pdo = [2, 0, 1, 0]; rv.PortConfig.input(2).pdo_data_type = 1001; rv.PortConfig.input(3).pdo = [2, 0, 2, 0]; rv.PortConfig.input(3).pdo_data_type = 1001; rv.PortConfig.input(4).pdo = [2, 0, 3, 0]; rv.PortConfig.input(4).pdo_data_type = 1001; rv.PortConfig.input(5).pdo = [2, 0, 6, 0]; rv.PortConfig.input(5).pdo_data_type = 1016; rv.PortConfig.input(6).pdo = [2, 1, 0, 0]; rv.PortConfig.input(6).pdo_data_type = 1001; rv.PortConfig.input(7).pdo = [2, 1, 1, 0]; rv.PortConfig.input(7).pdo_data_type = 1001; rv.PortConfig.input(8).pdo = [2, 1, 2, 0]; rv.PortConfig.input(8).pdo_data_type = 1001; rv.PortConfig.input(9).pdo = [2, 2, 0, 0]; rv.PortConfig.input(9).pdo_data_type = 1016; rv.PortConfig.output(1).pdo = [3, 0, 0, 0]; rv.PortConfig.output(1).pdo_data_type = 1001; rv.PortConfig.output(2).pdo = [3, 0, 1, 0]; rv.PortConfig.output(2).pdo_data_type = 1001; rv.PortConfig.output(3).pdo = [3, 0, 2, 0]; rv.PortConfig.output(3).pdo_data_type = 1001; rv.PortConfig.output(4).pdo = [3, 0, 3, 0]; rv.PortConfig.output(4).pdo_data_type = 1001; rv.PortConfig.output(5).pdo = [3, 0, 4, 0]; rv.PortConfig.output(5).pdo_data_type = 1001; rv.PortConfig.output(6).pdo = [3, 0, 6, 0]; rv.PortConfig.output(6).pdo_data_type = 1001; rv.PortConfig.output(7).pdo = [3, 0, 7, 0]; rv.PortConfig.output(7).pdo_data_type = 1001; rv.PortConfig.output(8).pdo = [3, 0, 8, 0]; rv.PortConfig.output(8).pdo_data_type = 1001; rv.PortConfig.output(9).pdo = [3, 0, 9, 0]; rv.PortConfig.output(9).pdo_data_type = 1001; rv.PortConfig.output(10).pdo = [3, 0, 11, 0]; rv.PortConfig.output(10).pdo_data_type = 1001; rv.PortConfig.output(11).pdo = [3, 0, 12, 0]; rv.PortConfig.output(11).pdo_data_type = 1001; rv.PortConfig.output(12).pdo = [3, 0, 14, 0]; rv.PortConfig.output(12).pdo_data_type = 1001; rv.PortConfig.output(13).pdo = [3, 0, 15, 0]; rv.PortConfig.output(13).pdo_data_type = 1016; rv.PortConfig.output(14).pdo = [3, 0, 16, 0]; rv.PortConfig.output(14).pdo_data_type = 1016; rv.PortConfig.output(15).pdo = [3, 1, 0, 0]; rv.PortConfig.output(15).pdo_data_type = 1001; rv.PortConfig.output(16).pdo = [3, 1, 1, 0]; rv.PortConfig.output(16).pdo_data_type = 1001; rv.PortConfig.output(17).pdo = [3, 1, 2, 0]; rv.PortConfig.output(17).pdo_data_type = 1001; rv.PortConfig.output(18).pdo = [3, 1, 3, 0]; rv.PortConfig.output(18).pdo_data_type = 1001; rv.PortConfig.output(19).pdo = [3, 1, 4, 0]; rv.PortConfig.output(19).pdo_data_type = 1001; rv.PortConfig.output(20).pdo = [3, 1, 5, 0]; rv.PortConfig.output(20).pdo_data_type = 1001; rv.PortConfig.output(21).pdo = [3, 1, 6, 0]; rv.PortConfig.output(21).pdo_data_type = 1001; rv.PortConfig.output(22).pdo = [3, 1, 8, 0]; rv.PortConfig.output(22).pdo_data_type = 1001; rv.PortConfig.output(23).pdo = [3, 1, 9, 0]; rv.PortConfig.output(23).pdo_data_type = 1001; rv.PortConfig.output(24).pdo = [3, 1, 10, 0]; rv.PortConfig.output(24).pdo_data_type = 1001; rv.PortConfig.output(25).pdo = [3, 1, 12, 0]; rv.PortConfig.output(25).pdo_data_type = 1001; %%Einstellungen für Jat 17H19 %%Strom auf 1.8 A begrenzt um das Moment nicht zu hoch werden zu lassen rv.SlaveConfig.sdo = { hex2dec('8000'),hex2dec('0E'),8,0; %Revert Direction hex2dec('8010'),hex2dec('01'),16,1800; % Max Current, in mA je Phase hex2dec('8010'),hex2dec('03'),16,24000; % Nominal Voltage, 24V hex2dec('8010'),hex2dec('06'),16,50; % Motor fullsteps, 50 hex2dec('8012'),hex2dec('01'),8,1; %Mode direct speed hex2dec('8012'),hex2dec('45'),8,5; %Micro Stepping hex2dec('8014'),hex2dec('05'),8,30; % Red Current, 30% }; end
_______________________________________________ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users