[etherlab-users] Warnings during code generation with simulink

Jannes Kloepfer j.kloepfer at googlemail.com
Fri Feb 5 15:53:02 CET 2010


Hi,

thanks for the fast response.

I looked again at the Etherlab-Library but there wasn't a '*v2' for the
EL4034. Just EL4102v2 and EL4132v2.

And I also wondered that that there is an 'Ain' in the icon drawing of the
simulink-block. And also in the help for EL4xxx the block is declared as
Anlog Input but these Terminals are Analog Output.

Here are the ouptus of the command-line tool:

ethercat slaves -v:

=== Slave 0 ===
State: OP
Flag: +
Identity:
  Vendor Id:       0x00000002
  Product code:    0x044c2c52
  Revision number: 0x00110000
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: yes, 64 bit
  DC system time transmission delay: 0 ns
Port  Type  Link  Loop    Signal  NextSlave  RxTime [ns]  Diff [ns]   NextDc
[ns]
   0  MII   up    open    yes             -   3347476394
0           0
   1  EBUS  up    open    yes             1   3347477154         760
140
   2  MII   down  closed  no              -            -
-           -
   3  N/A   down  closed  no              -            -
-           -
General:
  Group: SystemBk
  Image name:
  Order number: EK1100
  Device name: EK1100 EtherCAT-Koppler (2A E-Bus)
  Flags:
    Enable SafeOp: no
    Enable notLRW: no
  Current consumption: -2000 mA
=== Slave 1 ===
State: OP
Flag: +
Identity:
  Vendor Id:       0x00000002
  Product code:    0x0fc23052
  Revision number: 0x00100000
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: yes, 64 bit
  DC system time transmission delay: 140 ns
Port  Type  Link  Loop    Signal  NextSlave  RxTime [ns]  Diff [ns]   NextDc
[ns]
   0  EBUS  up    open    yes             0   3348914144           0
140
   1  EBUS  up    open    yes             2   3348914624
480           0
   2  N/A   down  closed  no              -            -
-           -
   3  N/C   down  closed  no              -            -
-           -
Mailboxes:
  Bootstrap RX: 0x1000/244, TX: 0x10f4/244
  Standard  RX: 0x1000/128, TX: 0x1080/128
  Supported protocols: CoE, FoE
General:
  Group: AnaOut
  Image name:
  Order number: EL4034
  Device name: EL4034 4K. Ana. Ausgang +/-10V, 12bit
  CoE details:
    Enable SDO: yes
    Enable SDO Info: yes
    Enable PDO Assign: no
    Enable PDO Configuration: no
    Enable Upload at startup: no
    Enable SDO complete access: no
  Flags:
    Enable SafeOp: no
    Enable notLRW: no
  Current consumption: 190 mA
=== Slave 2 ===
State: OP
Flag: +
Identity:
  Vendor Id:       0x00000002
  Product code:    0x0c1e3052
  Revision number: 0x00000000
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: no
Port  Type  Link  Loop    Signal  NextSlave
   0  N/A   down  open    yes             1
   1  N/A   down  open    yes             3
   2  N/A   down  closed  no              -
   3  N/A   down  closed  no              -
Mailboxes:
  Bootstrap RX: 0x1800/244, TX: 0x18f4/244
  Standard  RX: 0x1800/246, TX: 0x18f6/246
  Supported protocols: CoE, FoE
General:
  Group: AnaIn
  Image name:
  Order number: EL3102
  Device name: EL3102 2K. Ana. Eingang +/-10V, DIFF
  CoE details:
    Enable SDO: yes
    Enable SDO Info: yes
    Enable PDO Assign: yes
    Enable PDO Configuration: yes
    Enable Upload at startup: no
    Enable SDO complete access: no
  Flags:
    Enable SafeOp: no
    Enable notLRW: no
  Current consumption: 180 mA
=== Slave 3 ===
State: PREOP
Flag: +
Identity:
  Vendor Id:       0x00000002
  Product code:    0x0c1e3052
  Revision number: 0x00000000
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: no
Port  Type  Link  Loop    Signal  NextSlave
   0  N/A   down  open    yes             2
   1  N/A   down  closed  no              -
   2  N/A   down  closed  no              -
   3  N/A   down  closed  no              -
Mailboxes:
  Bootstrap RX: 0x1800/244, TX: 0x18f4/244
  Standard  RX: 0x1800/246, TX: 0x18f6/246
  Supported protocols: CoE, FoE
General:
  Group: AnaIn
  Image name:
  Order number: EL3102
  Device name: EL3102 2K. Ana. Eingang +/-10V, DIFF
  CoE details:
    Enable SDO: yes
    Enable SDO Info: yes
    Enable PDO Assign: yes
    Enable PDO Configuration: yes
    Enable Upload at startup: no
    Enable SDO complete access: no
  Flags:
    Enable SafeOp: no
    Enable notLRW: no
  Current consumption: 180 mA


ethercat pdos -v:

=== Slave 0 ===
=== Slave 1 ===
SM0: PhysAddr 0x1000, DefaultSize  128, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1080, DefaultSize  128, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1100, DefaultSize    8, ControlRegister 0x24, Enable 1
  RxPDO 0x1600 "RxPDO-Map OutputsCh.1"
    PDO entry 0x7000:01, 16 bit, "Analog output"
  RxPDO 0x1601 "RxPDO-Map OutputsCh.2"
    PDO entry 0x7010:01, 16 bit, "Analog output"
  RxPDO 0x1602 "RxPDO-Map OutputsCh.3"
    PDO entry 0x7020:01, 16 bit, "Analog output"
  RxPDO 0x1603 "RxPDO-Map OutputsCh.4"
    PDO entry 0x7030:01, 16 bit, "Analog output"
SM3: PhysAddr 0x1180, DefaultSize    0, ControlRegister 0x20, Enable 0
=== Slave 2 ===
SM0: PhysAddr 0x1800, DefaultSize  246, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x18f6, DefaultSize  246, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x24, Enable 1
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x20, Enable 1
  TxPDO 0x1a00 "TxPDO 001 mapping"
    PDO entry 0x3101:01,  8 bit, "Status"
    PDO entry 0x3101:02, 16 bit, "Value"
  TxPDO 0x1a01 "TxPDO 002 mapping"
    PDO entry 0x3102:01,  8 bit, "Status"
    PDO entry 0x3102:02, 16 bit, "Value"
=== Slave 3 ===
SM0: PhysAddr 0x1800, DefaultSize  246, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x18f6, DefaultSize  246, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x24, Enable 1
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x20, Enable 1
  TxPDO 0x1a00 "TxPDO 001 mapping"
    PDO entry 0x3101:01,  8 bit, "Status"
    PDO entry 0x3101:02, 16 bit, "Value"
  TxPDO 0x1a01 "TxPDO 002 mapping"
    PDO entry 0x3102:01,  8 bit, "Status"
    PDO entry 0x3102:02, 16 bit, "Value"
=== Slave 0 ===
=== Slave 1 ===
SM0: PhysAddr 0x1000, DefaultSize  128, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1080, DefaultSize  128, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1100, DefaultSize    8, ControlRegister 0x24, Enable 1
  RxPDO 0x1600 "RxPDO-Map OutputsCh.1"
    PDO entry 0x7000:01, 16 bit, "Analog output"
  RxPDO 0x1601 "RxPDO-Map OutputsCh.2"
    PDO entry 0x7010:01, 16 bit, "Analog output"
  RxPDO 0x1602 "RxPDO-Map OutputsCh.3"
    PDO entry 0x7020:01, 16 bit, "Analog output"
  RxPDO 0x1603 "RxPDO-Map OutputsCh.4"
    PDO entry 0x7030:01, 16 bit, "Analog output"
SM3: PhysAddr 0x1180, DefaultSize    0, ControlRegister 0x20, Enable 0
=== Slave 2 ===
SM0: PhysAddr 0x1800, DefaultSize  246, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x18f6, DefaultSize  246, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x24, Enable 1
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x20, Enable 1
  TxPDO 0x1a00 "TxPDO 001 mapping"
    PDO entry 0x3101:01,  8 bit, "Status"
    PDO entry 0x3101:02, 16 bit, "Value"
  TxPDO 0x1a01 "TxPDO 002 mapping"
    PDO entry 0x3102:01,  8 bit, "Status"
    PDO entry 0x3102:02, 16 bit, "Value"
=== Slave 3 ===
SM0: PhysAddr 0x1800, DefaultSize  246, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x18f6, DefaultSize  246, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x24, Enable 1
SM3: PhysAddr 0x1100, DefaultSize    0, ControlRegister 0x20, Enable 1
  TxPDO 0x1a00 "TxPDO 001 mapping"
    PDO entry 0x3101:01,  8 bit, "Status"
    PDO entry 0x3101:02, 16 bit, "Value"
  TxPDO 0x1a01 "TxPDO 002 mapping"
    PDO entry 0x3102:01,  8 bit, "Status"
    PDO entry 0x3102:02, 16 bit, "Value"


ethercat config -v:

0:0  0x00000002/0x044c2c52  0  OP
0:1  0x00000002/0x0fc23052  1  OP
0:2  0x00000002/0x0c1e3052  2  OP
Alias: 0
Position: 0
Vendor Id: 0x00000002
Product code: 0x044c2c52
Attached slave: 0 (OP)
SDO configuration:
  None.

Alias: 0
Position: 1
Vendor Id: 0x00000002
Product code: 0x0fc23052
Attached slave: 1 (OP)
SM2 (Output)
  PDO 0x1600
    PDO entry 0x7000:11, 16 bit
  PDO 0x1601
    PDO entry 0x7010:11, 16 bit
  PDO 0x1602
    PDO entry 0x7020:11, 16 bit
  PDO 0x1603
    PDO entry 0x7030:11, 16 bit
SDO configuration:
  None.
DC configuration:
  AssignActivate: 0x0700
         Cycle [ns]   Shift [ns]
  SYNC0            0            0
  SYNC1      1000000            0

Alias: 0
Position: 2
Vendor Id: 0x00000002
Product code: 0x0c1e3052
Attached slave: 2 (OP)
SM3 (Input)
  PDO 0x1a00
    PDO entry 0x3101:01,  8 bit
    PDO entry 0x3101:02, 16 bit
  PDO 0x1a01
    PDO entry 0x3102:01,  8 bit
    PDO entry 0x3102:02, 16 bit
SDO configuration:
  None.

Thanks for your help!

Best regards,

Jannes Kloepfer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20100205/b2af3ea6/attachment-0005.htm>


More information about the Etherlab-users mailing list