[etherlab-users] el9820 Etherlab CANopen

Edgar Garzon edgarcgarzon at gmail.com
Wed Jul 15 17:40:16 CEST 2009


Please post
- EtherLab version: is not installed. (graphical interface is not used).
- EtherCAT master version: 1.4.0
- EtherCAT master logs containing the exact error message (after setting
'ethercat debug 1' and loading your application).
Two different proves:
1. Using the user command interface. Trying to pass the slave in OP states
using: /opt/etherlab/bin/ethercat states OP. And correspoonds to the master
logs: "ethercat.log" (File attached).
2. Using a application "mini.c". And corresponds to the master log:
etherlab.log1.

- Output of 'ethercat slave -p<your-slave> -v'
=== Slave 0 ===
Alias: 5
State: PREOP
Flag: +
Identity:
  Vendor Id:       0x00000002
  Product code:    0x26483052
  Revision number: 0x00000064
  Serial number:   0x00000000
Mailboxes:
  RX: 0x1000/128, TX: 0x1400/128
  Supported protocols: EoE, CoE, FoE
General:
  Group: EvaBoardDemo
  Image name: DEVICE
  Order number: EL9800-0100
  Device name: EL9800 (V4.08) (SPI, ET1100)
  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: 0 mA


- Output of 'ethercat pdos -p<your-slave> -v'

SM0: PhysAddr 0x1000, DefaultSize  128, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1400, DefaultSize  128, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1800, DefaultSize    2, ControlRegister 0x24, Enable 1
  RxPDO 0x1601 "DO RxPDO-Map"
    PDO entry 0x7010:01,  1 bit, "LED 1"
    PDO entry 0x7010:02,  1 bit, "LED 2"
    PDO entry 0x7010:03,  1 bit, "LED 3"
    PDO entry 0x7010:04,  1 bit, "LED 4"
    PDO entry 0x0000:00, 12 bit, "Gap"
SM3: PhysAddr 0x1c00, DefaultSize    6, ControlRegister 0x20, Enable 1
  TxPDO 0x1a00 "DI TxPDO-Map"
    PDO entry 0x6000:01,  1 bit, "Switch 1"
    PDO entry 0x6000:02,  1 bit, "Switch 2"
    PDO entry 0x6000:03,  1 bit, "Switch 3"
    PDO entry 0x6000:04,  1 bit, "Switch 4"
    PDO entry 0x0000:00, 12 bit, "Gap"
  TxPDO 0x1a02 "AI TxPDO-Map"
    PDO entry 0x6020:01,  1 bit, "Underrange"
    PDO entry 0x6020:02,  1 bit, "Overrange"
    PDO entry 0x6020:03,  2 bit, "Limit 1"
    PDO entry 0x6020:05,  2 bit, "Limit 2"
    PDO entry 0x0000:00,  8 bit, "Gap"
    PDO entry 0x1802:07,  1 bit, ""
    PDO entry 0x1802:09,  1 bit, ""
    PDO entry 0x6020:11, 16 bit, "Analog input"


Following the PIC debbug tool we identified that the problem could be that
the space memory according sync manager it's empty (0x0810:0x081F). We
figurated out that the master didn't write the data of those SyncManager
(SM2 and SM3).

-- 
Edgar Camilo Garzon Coral
Studente Politecnico di Torino
Laurea Specialistica Ingegneria Elettronica
Cel. +39 320 2979984
edgarcgarzon at gmail.com
s145329 at studenti.polito.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090715/f01d45dd/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethercat.log
Type: text/x-log
Size: 11015 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090715/f01d45dd/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mini.c
Type: text/x-csrc
Size: 11254 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090715/f01d45dd/attachment-0004.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethercat.log1
Type: application/octet-stream
Size: 4994 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090715/f01d45dd/attachment-0004.obj>


More information about the Etherlab-users mailing list