industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 30.07.2008 | 15:57 | 12 replies

DeviceNet Demo Test on CIF50-DNM

HI,

I want to test DeviceNet Slave Demo from your Download page on an NXDB100 board.

The Master is an CIF50-DNM PCI card.

I have include the EDS file on the PC where the CIF50-DNM card is installed.

When I start the Online/Livelist, only the master card is detected, but no slave.

The slave diagnose shows "No answer" wait for allocation response, device missing, timeout.

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 30.07.2008 | 16:09

Hi Rainer,

I think I know, why it is not working. The example was written for a NXSB100 board and you are using the example on a different board - NXEB100-NET (I guess).

The DeviceNET connector is not connected to the same communication channel on booth boards.

NXSB100 uses the communication channel3 and the NXEB100-NET uses the communication channel2.

This could be figured out with the help of the schematics.

Rainer Versteeg

Rainer Versteeg

| 30.07.2008 | 16:15

Hi AJ,

Sorry i use an NXSB100 board.

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 30.07.2008 | 16:26

Hi,

have you also connected the +24V to the DeviceNET connector of the NXSB100 board?

Rainer Versteeg

Rainer Versteeg

| 30.07.2008 | 16:27

Hi AJ,

Can i test the demo on an NXDB500-SYS board too ?

Must i change the configure on the Master ?

I have tested the cable and the master with an another DeviceNet slave and it works.

What i make wrong with the NXSB100 board ?

Br,
Rainer

Rainer Versteeg

Rainer Versteeg

| 30.07.2008 | 16:29

HI AJ,

I have connected the 24 V on the NXSB100 board.

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 30.07.2008 | 16:32

Rainer Versteeg wrote:
Can i test the demo on an NXDB500-SYS board too ?
Yes. Please take care of the communication channel and the SDRAM_config script.

Rainer Versteeg wrote:
Must i change the configure on the Master ?
Yes.
NOTE: This example is limited to 4 Byte I/O Data exchange and to the slave address 32.

Rainer Versteeg wrote:
What i make wrong with the NXSB100 board ?
I have no idea :wink:

Rainer Versteeg

Rainer Versteeg

| 30.07.2008 | 16:37

HI AJ,

Following diagnose shows in Sycon:

The slave diagnose shows "No answer" wait for allocation response, device missing, timeout

What does it mean ?

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 30.07.2008 | 16:39

That the slave is not answering. Maybe the slave is not recognized.

BTW: The project is running on the NXSB100 board?

Rainer Versteeg

Rainer Versteeg

| 30.07.2008 | 16:42

HI AJ,

Yes its running on NXSB100.

I have downloaded the project with HITOP.

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 30.07.2008 | 16:49

And it is running. No errors or exceptions?!

Please download the CAN-HAL from the Hilscher web page, there is a DeviceNET cable schematic included and check this with your cable.

Rainer Versteeg

Rainer Versteeg

| 30.07.2008 | 17:05

HI AJ,

There is no error and exception!
The Process Task is running !

The cable is OK. I have check it with the DeviceNet / CAN cable pdf file.

I have tested with an another device.

Br,

Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 31.07.2008 | 11:18

Hi Rainer,

very strange behavior! I tested the project this morning by my self. Sometimes it worked and sometimes not. :?

I added the following "bug-fix" into my config.c file:

/*
***************************************************************************
*  Enter Kernel parameter
***************************************************************************
*/
.
.
.
};

extern char _heap_start; /* Defined by the linker */

/*
***************************************************************************
* Enters the RX-kernel mode forever
***************************************************************************
*/
INT main (void)
{
volatile RX_FATAL erXFat; /* Fatal Error value, in case funtion would return */

/* Bug-Fix */
/* Clear 1st MB of heap */
memset(&_heap_start, 0, 0x00100000);


/* Initialize and boot the Kernel, with all Peripherals listed in "atrXCfgPre" */
erXFat = rX_SysEnterKernelExt(&trXEnterKernelParam);
.
.
.

Herewith it worked always.

Login