dustin (Customer) asked a question.

Modbus RTU - RS485 question with Productvity

I have several Productivity PLCs with Modbus RTU devices connected to the RS485 port. Until now I have been able to configure all of the modbus devices to communicate at 19200 8,N,1. I need to add in a new modbus device that needs to be 8,N,2.

I don't think I can mix 8,N,1 and 8,N,2 on the same RS485 network. What is my best option to get these connected to the PLCs on a separate modbus network? Some of the CPUs are P1-540 and P1-550, I don't see a separate communications card for those. Some of the CPUs are P2-550 and I suppose I could add a P2-SCM module. One PLC is a newer P2-622 and it looks like the the RJ12 RS232 port is configurable for RS485 but I can't find any info in the manual about how to wire that or what adapter to use.

 

Any advice would be appreciated.


  • ADC_TechnologyGroup_06 (AutomationDirect)

    You could try setting the Master devices (PLC) to 8N2 because the second stop bit is just another character count of idle time on the line and most 8N1 devices will just interpret this as the line being inactive before the next query.

     

    The problem of mixing 8N1 and 8N2 could occur in timing between the responses from Slave devices set to 8N1 and Master device (PLC) set to 8N2 since the PLC would expect the 2 stop bits and if another response came in too quickly then the stop bit would look like a 1 instead of 2 and the PLC would discard the response.

     

    However, if the response time between device is long enough for the bus to remain idle, then packet loss may not be a problem as the PLC would interpret that as 2 stop bits. I ran a quick test using Modbus Slave on a PC set to 8N1 and a P1-540 set to 8N2 and everything seemed to function.

     

    Regarding the P2-622, take a look at the product insert on page 4 (P2-622 Insert.) which shows the wiring pinouts for the two configurable serial ports. No adapter needed but you'll have to configure the port in the project and then transfer the project onto the PLC.

     

    As you mentioned on the P2-550 the P2-SCM is one option you could pursue, but since the P1-550/540 do not offer those comm modules you could also look into an FA-ISOCON which allows an RS-232 comm port to get onto an RS-485 network easily by setting a few dip switches if those ports are free on your P1000 PLC's.

    Expand Post
    Selected as Best
  • ADC_TechnologyGroup_06 (AutomationDirect)

    You could try setting the Master devices (PLC) to 8N2 because the second stop bit is just another character count of idle time on the line and most 8N1 devices will just interpret this as the line being inactive before the next query.

     

    The problem of mixing 8N1 and 8N2 could occur in timing between the responses from Slave devices set to 8N1 and Master device (PLC) set to 8N2 since the PLC would expect the 2 stop bits and if another response came in too quickly then the stop bit would look like a 1 instead of 2 and the PLC would discard the response.

     

    However, if the response time between device is long enough for the bus to remain idle, then packet loss may not be a problem as the PLC would interpret that as 2 stop bits. I ran a quick test using Modbus Slave on a PC set to 8N1 and a P1-540 set to 8N2 and everything seemed to function.

     

    Regarding the P2-622, take a look at the product insert on page 4 (P2-622 Insert.) which shows the wiring pinouts for the two configurable serial ports. No adapter needed but you'll have to configure the port in the project and then transfer the project onto the PLC.

     

    As you mentioned on the P2-550 the P2-SCM is one option you could pursue, but since the P1-550/540 do not offer those comm modules you could also look into an FA-ISOCON which allows an RS-232 comm port to get onto an RS-485 network easily by setting a few dip switches if those ports are free on your P1000 PLC's.

    Expand Post
    Selected as Best
  • GTUnit (Customer)

    You can change the RS-232 Serial port on the P2-622 to RS-485 from the Productivity Software. Open "Hardware Config", Under the "CPU" tab ...Double Click the PLC/CPU module graphic, under the "Serial Ports" tab... On the table, Click on the first row in the left column labeled "Serial Type Rs-232 or RS-485"

    A drop down menu will appear and you can change RS-232 to RS-485Capture

    Expand Post
  • GTUnit (Customer)

    Showing Drop Down Options

    Untitled

    • dustin (Customer)

      Yes, I was aware of the ability to change this in the P2-622. I couldn't find the wiring diagram for the port though. I see now in a post above that the diagram/specs can be found in the product insert.

       

      It was all for nothing anyway. The device I was trying to connect was actually 19200 8N1, not 8N2. The specs were a typo in the user manual for the device.