You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old May 22nd, 2020, 06:26 AM   #1
whussain6
Member
United Kingdom

whussain6 is offline
 
Join Date: Oct 2013
Location: Newcastle
Posts: 105
Angry RS485 Network with Duplicate Node

Hi,

I am stuck with RS485 network with duplicate node. I changed address of a node by mistake and now cannot talk to any node possibly due to duplicate node. I cannot turn off any node as they are sealed and connected to one power supply. How to recover from this situation please?
  Reply With Quote
Old May 22nd, 2020, 06:33 AM   #2
AlfredoQuintero
Lifetime Supporting Member
Japan

AlfredoQuintero is offline
 
Join Date: Feb 2015
Location: Yokohama
Posts: 147
Is this Profibus or something else? How do you change the address? Is it by means of an engineering tool, right? Not through DIP SW/Rotary SW.

All the nodes are connected to the same power supply I understand. Can you disconnect the RS485 plug from a selected node?
  Reply With Quote
Old May 22nd, 2020, 06:37 AM   #3
whussain6
Member
United Kingdom

whussain6 is offline
 
Join Date: Oct 2013
Location: Newcastle
Posts: 105
Thanks for asking.

These are teledyne LEDs and I am changing address using commands from from Logix controller. No dip switches etc.

They came in package of 4 LEDs with factory default address 0 to 4 with common RS485 network cables and power cables. So not possible to disconnect individual node.

The command is as as below

Byte 1 = Node addres
Byte 2 = Command
Byte 3 = Value to be Written
Byte 4 = Checksum
Byte 5 and 6 = CRLF

Kind Regards

Last edited by whussain6; May 22nd, 2020 at 06:40 AM. Reason: Command detail added
  Reply With Quote
Old May 22nd, 2020, 07:09 AM   #4
AlfredoQuintero
Lifetime Supporting Member
Japan

AlfredoQuintero is offline
 
Join Date: Feb 2015
Location: Yokohama
Posts: 147
I would like to read the datasheet of this product. I have no ideas at this moment with the information you have provided. If I get this manual I will have a look at it and try to think some solution.
  Reply With Quote
Old May 22nd, 2020, 07:17 AM   #5
whussain6
Member
United Kingdom

whussain6 is offline
 
Join Date: Oct 2013
Location: Newcastle
Posts: 105
Please find link to the document.

http://www.teledynemarine.com/Lists/...%20(Mar17).pdf

http://www.teledynemarine.com/led-b-...oductLineID=57
  Reply With Quote
Old May 22nd, 2020, 07:47 AM   #6
AlfredoQuintero
Lifetime Supporting Member
Japan

AlfredoQuintero is offline
 
Join Date: Feb 2015
Location: Yokohama
Posts: 147
Are these lamps are already commissioned under water?



I cannot find any information on this Teledyne Bowtech Protocol. I guess you must have implemented this on your Logix program. I am sorry, I cannot suggest anything, since you do not seem able to disconnect either the power or the signal from the node you suspect has the duplicate address. I hope someone else in the forum has experience with this product. Really sorry.
  Reply With Quote
Old May 22nd, 2020, 08:24 AM   #7
whussain6
Member
United Kingdom

whussain6 is offline
 
Join Date: Oct 2013
Location: Newcastle
Posts: 105
I have protocol document but not sure how do I attach PDF here?
  Reply With Quote
Old May 22nd, 2020, 10:25 AM   #8
Firejo
Member
United States

Firejo is offline
 
Firejo's Avatar
 
Join Date: Jun 2008
Location: Redmond, WA
Posts: 1,417
Without any knowledge of the products you are working with this is a guess but from what you are describing you will need to somehow sever the communications to one of the two devices with the duplicate address. They are both receiving a command from the master that they are both trying to respond to. Two responses at the same time from what the master thinks is one device is probably causing the problem and (again, my guess) the only way to clear the problem is to stop the dual response I.E. sever the communications from one of the two devices. Hopefully I'm wrong but I don't see how you are going to change the address of one of the two duplicate nodes when the only way they are identified is by the node number.
__________________
Go Hawks!!!
  Reply With Quote
Old May 22nd, 2020, 11:06 AM   #9
whussain6
Member
United Kingdom

whussain6 is offline
 
Join Date: Oct 2013
Location: Newcastle
Posts: 105
Thanks for reply.

The LEDs have some specific commands only e.g. change address and change light level, read level and read temperature etc. There is no command to reset to factory settings.

With RS485 network if we cannot remove and duplicate node physically, how can we recover from it?
  Reply With Quote
Old May 22nd, 2020, 11:09 AM   #10
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 849
Quote:
Originally Posted by whussain6 View Post
I have protocol document but not sure how do I attach PDF here?

look for the paper clip, then browse to select the PDF, then click upload
Attached Images
File Type: png xxx.png (26.4 KB, 38 views)
  Reply With Quote
Old May 22nd, 2020, 11:13 AM   #11
whussain6
Member
United Kingdom

whussain6 is offline
 
Join Date: Oct 2013
Location: Newcastle
Posts: 105
Master command frame consist of six character shown below:

Byte One Byte Two Byte Three Byte Four Byte Five Byte Six
Address Command Value Checksum Carriage Return Line Feed

Checksum - The checksum byte ensures that the data packet has been sent correctly. The algorithm exclusive ORs bytes one and two and then exclusive ORs the result with byte three to derive the checksum value. Carriage Return - constant character 0x0D (hex) Line Feed - constant character 0x0A (hex)



Command 0x27 //address change
Reply data1: light address
Reply data2: command (0x27)
Reply data3: value (command packet-new address)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)
Note: There is no reply and no execution if address is broadcast (0x52)


Command 0x28 //change light level command
Reply data1: light address
Reply data2: command (0x28)
Reply data3: value (same value as in command packet-level value)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)
Note: There is no reply if address is broadcast (0x52)
Command 0x29 //light description - demo
Reply data1: carriage return (0x0D)
Reply data2: Line Feed (0x0A)
Reply data3-22: "BOWTECH PRODUCTS LTD"
Reply data23: carriage return (0x0D)
Reply data24: Line Feed (0x0A)
Reply data25-44: "LED CONTROL PROTOCOL"
Reply data45: carriage return (0x0D)
Reply data46: Line Feed (0x0A)
Reply data47-57: "VERSION X.Y"
Reply data58: carriage return (0x0D)
Reply data59: Line Feed (0x0A)
Reply data60-70: "ADDRESS XXX"
Reply data71: carriage return (0x0D)
Reply data72: Line Feed (0x0A)
Reply data73-95: "TEL +44 (0) 1224 772345"
Reply data96: carriage return (0x0D)
Reply data97: Line Feed (0x0A)
Reply data98-114: "WWW.BOWTECH.CO.UK"
Reply data115:carriage return (0x0D)
Reply data116:Line Feed (0x0A)

Command 0x2A //change default light level command
Reply data1: light address
Reply data2: command (0x2A)
Reply data3: value (same value as in command packet-level value)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)

Command 0x30 // read temeprature
Reply data1: light address
Reply data2: command (0x30)
Reply data3: value (temperature in deg.)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)

Command 0x31 // read max temeprature
Reply data1: light address
Reply data2: command (0x31)
Reply data3: value (max temperature in deg.)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)

Command 0x33 // read FW version of 2 bytes
Reply data1: light address
Reply data2: command (0x33)
Reply data3: value 1(fw_major)
Reply data4: value 2(fw_minor)
Reply data5: checksum (light_address^command^value^….^data2)
Reply data6: carriage return (0x0D)
Reply data7: Line Feed (0x0A)

Command 0x34 // read light level default value
Reply data1: light address
Reply data2: command (0x34)
Reply data3: value (from eeprom)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)

Command 0x35 // read light level actual value
Reply data1: light address
Reply data2: command (0x35)
Reply data3: value (actual level value)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)


Command 0x36 // read light series (for this light in value should be ‘B’)
Reply data1: light address
Reply data2: command (0x36)
Reply data3: value (value)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)

Command 0x37 // smooth change light level command
Reply data1: light address
Reply data2: command (0x37)
Reply data3: value (same value as in command packet)
Reply data4: checksum (light_address^command^value)
Reply data5: carriage return (0x0D)
Reply data6: Line Feed (0x0A)
Note: There is no reply if address is broadcast (0x52)



Command 0x38 // read serial number
Reply data1: light address
Reply data2: command (0x38)
Reply data3: text char1
.
.
.
Reply data18: text char16
Reply data19: checksum (light_address^command^data3^…^data18)
Reply data20: carriage return (0x0D)
Reply data21: Line Feed (0x0A)

Last edited by whussain6; May 22nd, 2020 at 11:16 AM. Reason: Thats all the protocol document has. I have copied text and pasted here.
  Reply With Quote
Old May 22nd, 2020, 11:33 AM   #12
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 849
Wait a minute, the LEds are 24V only; they are not the part handling the protocol over RS-485, are they? What is actually handling the protocol?


Is some form of "factory reset" possible?

Last edited by drbitboy; May 22nd, 2020 at 11:36 AM.
  Reply With Quote
Old May 22nd, 2020, 11:44 AM   #13
whussain6
Member
United Kingdom

whussain6 is offline
 
Join Date: Oct 2013
Location: Newcastle
Posts: 105
Factory reset not possible as far as I know.

There is moxa serial server between the EN2Tcard and the LEDs. I am writing to TCP port and the mode serial server is sending the command to the LEDs.
  Reply With Quote
Old May 22nd, 2020, 12:14 PM   #14
drbitboy
Lifetime Supporting Member
United States

drbitboy is online now
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 849
Quote:
Originally Posted by whussain6 View Post
...and the mode serial server is sending the command to the LEDs.

No, it's not. The LEDs in the link you mentioned do not speak RS-485. There is a black box in between the LEDs and the serial server. *That* black box, whatever it is, is what needs the factory reset.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Why did my SLC5/05 procesor node # change? ryangriggs LIVE PLC Questions And Answers 4 March 26th, 2018 10:22 AM
trouble with 1769-SDN devicenet scanner - lost Omron NE1A node bboytaktix LIVE PLC Questions And Answers 1 August 2nd, 2017 02:42 PM
Troubleshooting an RS485 network sparkie LIVE PLC Questions And Answers 7 June 3rd, 2015 01:53 PM
DH+ Troubleshooting The Plc Kid LIVE PLC Questions And Answers 12 August 31st, 2013 03:26 AM
Phoenix Digital OCM/OCX/OLC Fiber Network TPCTJ LIVE PLC Questions And Answers 4 June 3rd, 2013 08:59 AM


All times are GMT -4. The time now is 05:55 PM.


.