richerdick
Electrical
- Jan 10, 2007
- 63
i am using some software that monitors packets of data to and from the comms port of a plc and displays it in hex.
the comms port on a working system is an rs485 link with 4 nodes on one branch and 4 different nodes on another parallel branch each branch has 120ohm terminating resistors across the end node and there is 2 120ohm resistors across the rx tx of the coms port plug itself.
The plc is set to control 4 nodes on one branch and 4 nodes on the other. each node gets its adress via links on the plug and socket that supply it.
I am trying to understand a bit about the protocol that the plc uses to communicate. I have set up a test rig with our spares using the same type of plc with two nodes one of each type on one leg with terminating resistors at each end.
looking at the comms monitoring program i can see the data being to transmitted to each node. however the reply packets are not as expected the plc adresses each of the 8 node it would normally address with packets as i would expect. Only 2 of the nodes reply but the reply data is random. perhapps 1 out of 5 reply packets from the connected nodes is in the expected format the other 4 will be complete nonsence but they are constant not erratic. i know it is wrong nbecause i can look at the acual machine working and all reply packets are as expected. am i missing something fundemental. i ddnt use twisted pairs as there is only about 2ft of cable. do i need to change termination resitors? what could i be issing this is my first venture into comms anaysis
the comms port on a working system is an rs485 link with 4 nodes on one branch and 4 different nodes on another parallel branch each branch has 120ohm terminating resistors across the end node and there is 2 120ohm resistors across the rx tx of the coms port plug itself.
The plc is set to control 4 nodes on one branch and 4 nodes on the other. each node gets its adress via links on the plug and socket that supply it.
I am trying to understand a bit about the protocol that the plc uses to communicate. I have set up a test rig with our spares using the same type of plc with two nodes one of each type on one leg with terminating resistors at each end.
looking at the comms monitoring program i can see the data being to transmitted to each node. however the reply packets are not as expected the plc adresses each of the 8 node it would normally address with packets as i would expect. Only 2 of the nodes reply but the reply data is random. perhapps 1 out of 5 reply packets from the connected nodes is in the expected format the other 4 will be complete nonsence but they are constant not erratic. i know it is wrong nbecause i can look at the acual machine working and all reply packets are as expected. am i missing something fundemental. i ddnt use twisted pairs as there is only about 2ft of cable. do i need to change termination resitors? what could i be issing this is my first venture into comms anaysis