easy-forum
English Support - Software => Xsoft-CoDeSys => Thema gestartet von: nicool67 am Juli 26, 2010, 04:47:48 Vormittag
-
Hi to all!, im having really trouble to make a CAN connection between an XC100 PLC and a EU5-SWD-CAN gateway device.
The gateway shows the SWD led green, so the Darwin net is OK, but when i connect the CAN interface of the gateway to the XC100 the CAN led flashes green and never stops!. I dont know if the CAN connection is right, so i attached a picture that shows what im doing, could anyone told me if this connection is correct?.
In the gateway, i swithed on the first dip switch wich is supposed to activate the internal end of line resistor.
Thanks in advance.
-
Hello nicool67,
Your gateway shows the following LED-States:
POW = Yellow.
CAN = Flashing green (Pre-opereational –> CANopen connection OK.)
CONFIG = Off (No SWD-Configuration has been submitted from the CAN-Master PLC)
SWD = Green. The stored SWD configuration matches the actual SWD-configuraton.
The SWD-Gateway will not start until it has checked the available SWD-configuration against the configuration expected by the PLC.
Submitting the expected SWD-configuration is not supported by the actual XC100 targets, so all You need to do is to switch off this initial check.
In your PLC project go to:
Resources/PLC Configuration/EU5C-SWD-CAN and select the tab “Service Data Objects”.
There the value of index 2003 “Disable configuration check” has to be set to 1(Yes).
Best regards
-
Thanks a lot for the reply!, now im having new troubles!. I dont know what i modified but now im having a red blinking in the CAN led. Im panic rigth now!, ive checked in the gateway manual and it seem that is a CAN error.
I dont know what should i do!, can you give me any tip?. Is the connection OK?, is probably that i could have any trouble in the CAN configuration?.
Thanks a lot!.
-
Ok, there are four main reasons the CAN-LED may turn red.
Flickering (fast blinking) = The auto-bitrate detection is in progress, the gateway is trying to detect a valid CANopen-Baudrate. This state is reached after power-on or following a reset-device command. Make sure there is some traffic on the bus, Nodeguarding (Guard_Time / LifeTimeFactor) or Heartbeat (for XC100 and SWD-Gateway) has been activated.
Single flash = Error-warning state reached. There are communication-errors on the bus.
Double flash = Guarding-Error. Nodeguarding or Heartbeat has timed out.
On = CAN-Controller in bus-off state. No communication.
By the way, is your Node-ID setting correct?
Is the CAN connection OK ?
- In Online-Mode look at Resources/Bibliothek 3S_CANopenManager.lib/Globale_Variablen
gCanInterface[0].nRx_Index_IEC and
gCanInterface[0].nTx_Index_IEC.
If both variables rotate the PLC sends and receives CAN-messages.
- In Online-Mode look at Resources/Global Variables/CanOpen implicit Variables
pCanOpenNode[X].nStatus
This variable displays the state of CANopen-device ‘X’ as it is suspected by the CANopen-Master state.
0-3 initialisation
4 ready to start
5 running
>5 error states
Regards
-
Ive tried and tried with no succes. Can you please give me a project example to make a simple test?. Im using an XC100 64kb PLC module, a EU5-SWD-CAN gateway and a M22 with a led. I cant make this to work, please help me.
Thanks in advance.
-
It worked!, the problem was int the XC100!. Thanks to all!. If someone wants an example please send me an email.
Best Regards,
Nicolas.