Anybus M40 SPI communication

1, I connect a SPI host(Aardvark_I2C_SPI_Host_Adapter) to M40 by SPI.
the M40 model is AB6704 M40 ETHERNET IP MODULE. I want to read back the network type. but there is some wrong.

2, after power on, the IRQ output will drop from 3.3V to 0V.
i send any one of the below command, the IRQ will jump to 3.3V.
send the same sommand many time, the data with yellow color don’t change.
image
image

3, please help to tell me where is wrong?

1, I connect a SPI host(Aardvark_I2C_SPI_Host_Adapter) to M40 by SPI.
and try SPI communication.
the connection:
OM0 to high, OM1…OM3 to low.

2, after power on, the IRQ output will drop from 3.3V to 0V.
after send any one of the below commands, the IRQ will jump to 3.3V.
i send the same command many times, the data with yellow color don’t change.
image
image

3, the reading data is something wrong. I just want to read the network type.
the M40 model is AB6704 M40 ETHERNET IP MODULE.
please help to tell me where is wrong. if the command is wrong, or procedure is wrong?

Hi,

Have you read this document:

Kyle

1, send command 1C 00 08… first and then send 84 00 08…, then i can read the network type. but i don’t understand why i need to send 1C 00 08…

TX: 1C 00 08 00 00 00 00 00 00 00 00 00 04 03 01 00 41 00 01 00 00 00 00 00 76 AA AD 90 00 00 //Read Network type
RX: 00 00 00 00 00 06 C8 9C 88 7B 02 00 00 00 03 01 01 00 01 00 01 00 03 04 00 00 95 77 2B 2F
TX: 84 00 08 00 00 00 00 00 00 00 00 00 04 03 01 00 41 00 01 00 00 00 00 00 53 CE 6F A4 00 00
RX: 00 00 00 00 00 1E E4 1F 9D 7C 02 00 00 00 04 03 01 00 01 00 01 00 9B 00 00 00 B3 9E 5E 11

2, can you help to tell me how to turn on the LEDs on the M40 model? I just want to check the M40 model is ok(by reading network type/model type and checking the LED color) before i mount the M40 model into our device.

Sorry, I’m not sure I understand question 1. As far as the LEDs, this is going to depend on your implementation, but you can find the info you need below:

Info on the Network Status LEDs can be found on page 48 of the Hardware Design guide:

pages 29-30, 38, 64, 118,144, 170-173 of the Software Design Guide