industrialNETworXnetx

| 23.09.2008 | 16:55 | 1 reply

EtherCAT demo (NXSB100_EtherCAT_Slave_API.bin)

Is the EtherCAT demo binary code (NXSB100_EtherCAT_Slave_API.bin) compatible with the NXHX-500RE board?

I have renamed the file to netx.rom, copied it to a memory card and inserted this into the NXHX. Running the supplied EtherCAT_Hilscher.tsm demo project on a fresh install of TwinCAT v2.10.0, I get some EtherCAT communication between TwinCAT and the NXHX, but:

1. The NXHX slave is stuck in ERR INIT state

2. The TwinCAT Logger shows:
Error (65535) 23/09/2008 15:27:42 68 ms 'Box 1 (NXSB100)' (1001): state change aborted (requested 'PREOP', back to 'INIT').
Error (65535) 23/09/2008 15:27:42 68 ms 'Box 1 (NXSB100)' (1001): 'INIT to PREOP' failed! Error: 'check device state for PREOP'. AL Status '0x0011' read and '0x0002' expected. AL Status Code '0x0016 - Invalid mailbox configuration'

A Wireshark trace shows that the NXHX is processing the various PDUs in the EtherCAT frames and incrementing the Working Counters accordingly, so I don't think the node or its firmware are 'dead'. Maybe the clue is in the "Invalid mailbox configuration" status code?

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 24.09.2008 | 06:12

Hi,

the example should also work on the NXHX500 board. The only thing, which will not work are the output LEDs. Those LEDs use a different output pin on NXHX as on NXSB.

Please try to rescan the bus and use the delivered xml file.

Your described problem will appear, when the used xml file of the TwinCAT project does not match to the used FW.

Login