I am using a 4PPC70.0702-21B. I have several CANopen sensors and want to test whether they are working. I tried using the FUB CANopenReceiveBootup for this. Since I only ever connect one sensor at a time to the PP, I should be able to check if the sensor is functioning.
I have the following information about the sensors: baud rate of 250 kbit, CANopen, and no EDS file. However, I am not receiving any response. I don’t know where or what the error is. The Communication is not working. It makes no difference whether the sensor is connected or not; the FUB delivers the same result.
Best regards
Viktor Weiss
Thank you for your help.
The outputs of the FUB are as follows: status=0, error=0, node=0, stateman=0, statusbuffer=0. It makes no difference whether the sensor is connected or not.
What exactly do you mean by PCAN, IXXAT? I have never heard of that before. We can also chat in german if you like.
I have no EDS files for my Sensors. The Sensors have an M12 Plug. Why do I need such a device? I made an M12 connection so that I can connect the sensor to my CAN interface IF 6.
EDS files make the configuration of a CANopen participant much easier.
You will then rarely need functions from the AsCANopen library.
You may still have to configure the sensor, start it and monitor it for errors.
Most manufacturers therefore provide them.
Strictly speaking, of course, you can do without it. However, this is associated with increased effort.
You must then first inform the CANopen master that there are nodes in the network:
+++ If the manufacturer is unable to supply an EDS file (and there is no alternative), you can also use the default file from your Automation Studio folder
(\Program Files\BRAutomation4\AS412\Specials)
you should at least be able to establish a connection to the sensor.
I just need to test if the sensor is still working. I know that the sensor sends a boot-up message as soon as it is powered. So I should be able to receive this boot-up message with the FUB. But it doesnt‘t work.
I just tried it, but it didn’t work. Do you have any idea why I’m not getting a node number? Did I maybe make any mistakes in the configuration? I only know that the baud rate is 250 kbit.
So I would suggest that you cyclically call the “RecvBootup” and send a NMT command whenever you want to check a node. Nevertheless the slave will reboot upon this command and the master will get the bootup
It still doesn’t work . I tried both Programms and powerd the Sensor after the PP . The FUB CanopenRecvBootup just keeps running continuously in borh programms. I’m not getting a node.
Are you sure that the device sends a bootup at all ? I have (unfortunatly) seen devices which does not do this.
You should check this using any CanOpen Monitor (3rd party hardware to trace the CAN bus)
I know that when the voltage is switched on, the sensors send a boot-up message. Subsequently, the message “Start all nodes” must be sent to the sensors. After receiving four sync messages (COB-ID 0x80) each, the sensors send their measurement value.
I just have to check if the sensors send a message at all.