<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <title></title>
  </head>

  <body>
    <p style="margin: 0px;">Hi,</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">I try configure an AnalogIO-Slave like in the User-example, but have problems with the Input-configuration. When running application error message "PDO entry 0x6000:02 does not byte-align in config 0:7.  PDO entry registration failed!" occurs.</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">The mapping looks like this:</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;"> const static ec_pdo_entry_reg_t domain1_regs[] = {<br />
                 {AnaIO, Alex_1, 0x7010, 1, &off_ana_out1},<br />
                 {AnaIO, Alex_1, 0x7010, 2, &off_ana_out2},<br />
                 {AnaIO, Alex_1, 0x6000, 1, &off_ana_in1},<br />
                 {AnaIO, Alex_1, 0x6000, 2, &off_ana_in2},<br />
                 {AnaIO, Alex_1, 0x6000, 3, &off_ana_in3},<br />
                 {AnaIO, Alex_1, 0x6000, 4, &off_ana_in4},<br />
                 {AnaIO, Alex_1, 0x6000, 5, &off_ana_in5},<br />
                 {AnaIO, Alex_1, 0x6000, 7, &off_ana_in7},<br />
                 {AnaIO, Alex_1, 0x0000, 0, &off_ana_in0},<br />
                 {AnaIO, Alex_1, 0x6000, 11, &off_ana_in11},<br />
                 {AnaIO, Alex_1, 0x6000, 12, &off_ana_in12},<br />
                 {AnaIO, Alex_1, 0x6000, 15, &off_ana_in15},<br />
                 {AnaIO, Alex_1, 0x6000, 16, &off_ana_in16},<br />
                 {AnaIO, Alex_1, 0x6000, 19, &off_ana_in19},<br />
                 {AnaIO, Alex_1, 0x6000, 13, &off_ana_in13},<br />
                 {AnaIO, Alex_1, 0x6000, 14, &off_ana_in14},<br />
                 {}<br />
          };</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">static ec_pdo_entry_info_t alex_1_channels[] = {<br />
                {0x7010, 1, 16},<br />
                {0x7010, 2, 16}<br />
         };</p>

    <p style="margin: 0px;">static ec_pdo_entry_info_t alex_in_channels[] = {<br />
                 {0x6000, 1, 1},<br />
                 {0x6000, 2, 1},<br />
                 {0x6000, 3, 1},<br />
                 {0x6000, 4, 1},<br />
                 {0x6000, 5, 2},<br />
                 {0x6000, 7, 2},<br />
                 {0x0000, 0, 8},<br />
                 {0x6000, 11, 32},<br />
                 {0x6000, 12, 32},<br />
                 {0x6000, 15, 16},<br />
                 {0x6000, 16, 16},<br />
                 {0x6000, 19, 16},<br />
                 {0x6000, 13, 16},<br />
                 {0x6000, 14, 16}<br />
         };<br />
     </p>

    <p style="margin: 0px;">static ec_pdo_info_t alex_1_pdos[] = {<br />
                {0x1601, 2, alex_1_channels}<br />
       };<br />
        </p>

    <p style="margin: 0px;">static ec_pdo_info_t alex_in_pdos[] = {<br />
                {0x1a00, 14, alex_in_channels}<br />
         };<br />
       </p>

    <p style="margin: 0px;">static ec_sync_info_t alex_1_syncs[] = {<br />
                {2, EC_DIR_OUTPUT, 1, alex_1_pdos},<br />
                {3, EC_DIR_INPUT, 1, alex_in_pdos},<br />
                {0xff}<br />
         };</p>

    <p style="margin: 0px;"></p>

    <p style="margin: 0px;">hope some one can help me to solve the "byte-align"-problem</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">best regards</p>

    <p style="margin: 0px;">Christian Richter</p>
  </body>
</html>