Hi Christian,
the application starts without any error.
ethercat slaves says, my slave is in PREOP state (see slaves.txt - how to get
it in operational?).
In debug outputs I see, that frames are sent (containing my data) and received.
The received frames mostly look like the sent ones and also contain the sent
data (see dmesg.txt).
So I think communication is working fine, maybe the slave is miss-configured. I
received a new configuration file from the board vendor but I don't know how to
transform the XML to SII format to send it to the slave via the ethercat
utility.
Do you have any further suggestions or do you see something strange in the
files?
regards,
Clemens
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Christian Gieseler
Gesendet: Donnerstag, 12. Februar 2009 14:46
An: [email protected]
Betreff: Re: [etherlab-users] EtherCAT newbie - NXIO 100-RE
Hi Clemens,
If you don´t get any error messages when you start your application the master
is running. If not check the debug output and make sure the configuration looks
the same like "ethercat pods" says. If you get no error you can check in the
output of "ethercat slaves" if your NXIO slave is in operational state. If so
you can receive and send data in the cyclic task by using the EC_Read and
EC_Write macros that the master offers, and do whatever you want with the data.
See in the html output of the doxygen documentation how to use the read an
write macros.
Regards
Christian
If you want to communicate
> Hi all,
>
> I'm a bloody EtherCAT newbie and I'd like to implement a simple
> application, which communicates with the NXIO 100-RE board, which has 16
> digital in-/ and outputs. Via the ethercat utility I exported the slave
> configuration to XML (see attachment) and I tried to adapt the user
> example, to communicate with the board - without any succes right now.
>
> Could anyony give me some hints, how I have to proceed?
>
> thanks,
> Clemens
>
> Important Notice:
> This electronic transmission (including any attachments) is intended
> solely for the use and information
> of the addressee(s). It may contain confidential or legally privileged
> information. Any unauthorized use
> or disclosure of this message is strictly prohibited.If you are not the
> intended recipient, please notify
> the sender immediately and delete the message and its attachments.
> The sender does not guarantee the integrity of this transmission and shall
> therefore never be liable if
> the message is altered or falsified nor for any virus, interception or
> damage to your system.
>
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
http://www.gmx.net/de/go/multimessenger01
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users
Important Notice:
This electronic transmission (including any attachments) is intended solely for
the use and information
of the addressee(s). It may contain confidential or legally privileged
information. Any unauthorized use
or disclosure of this message is strictly prohibited.If you are not the
intended recipient, please notify
the sender immediately and delete the message and its attachments.
The sender does not guarantee the integrity of this transmission and shall
therefore never be liable if
the message is altered or falsified nor for any virus, interception or damage
to your system.
EtherCAT DEBUG: ec_master_send_datagrams
EtherCAT DEBUG: adding datagram 0xB0
EtherCAT DEBUG: adding datagram 0xB1
EtherCAT DEBUG: frame size: 46
EtherCAT DEBUG: sending frame:
EtherCAT DEBUG: 1E 10 0B B0 00 00 00 00 04 80 00 00 44 33 22 11
EtherCAT DEBUG: 00 00 07 B1 00 00 30 01 02 00 00 00 00 00 00 00
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a41d (0x1d), arg = 0x0)
EtherCAT DEBUG: Received frame:
EtherCAT DEBUG: 1E 10 0B B0 00 00 00 00 04 C0 00 00 44 33 22 11
EtherCAT DEBUG: 00 00 07 B1 01 00 30 01 02 40 00 00 02 00 01 00
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a42a (0x2a), arg = 0x0)
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0xc008a42c (0x2c), arg =
0xbff7e5e8)
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a42b (0x2b), arg = 0x0)
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a41c (0x1c), arg = 0x0)
EtherCAT DEBUG: ec_master_send_datagrams
EtherCAT DEBUG: adding datagram 0xB2
EtherCAT DEBUG: frame size: 46
EtherCAT DEBUG: sending frame:
EtherCAT DEBUG: 10 10 0B B2 00 00 00 00 04 00 00 00 44 33 22 11
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a41d (0x1d), arg = 0x0)
EtherCAT DEBUG: Received frame:
EtherCAT DEBUG: 10 10 0B B2 00 00 00 00 04 40 00 00 44 33 22 11
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a42a (0x2a), arg = 0x0)
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0xc008a42c (0x2c), arg =
0xbff7e5e8)
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a42b (0x2b), arg = 0x0)
EtherCAT DEBUG: ioctl(filp = 0xf7c09440, cmd = 0x0000a41c (0x1c), arg = 0x0)
EtherCAT DEBUG: ec_master_send_datagrams
EtherCAT DEBUG: adding datagram 0xB3
EtherCAT DEBUG: frame size: 46
EtherCAT DEBUG: sending frame:
EtherCAT DEBUG: 10 10 0B B3 00 00 00 00 04 00 00 00 44 33 22 11
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EtherCAT DEBUG: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=== Slave 0 ===
State: PREOP
Flag: +
Identity:
Vendor Id: 0x00000044
Product code: 0x00000002
Revision number: 0x00010000
Serial number: 0x00000000
Mailboxes:
Bootstrap RX: 0x0000/0, TX: 0x0000/0
Standard RX: 0x1000/128, TX: 0x1080/128
Supported protocols: CoE
General:
Group: netX
Image name:
Order number: NXIO 100-RE
Device name: NXIO 100-RE
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: yes
Flags:
Enable SafeOp: no
Enable notLRW: yes
Current consumption: 0 mA
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users