Zum Hauptinhalt gehen

PLC no longer receiving data

Kommentare

13 Kommentare

  • Deryck Beliveau

    Hi Dennis,

    You can respond to this email and it will post to this forum post/ticket. I did track down the other open case that was though https://support.hms.se/www/main.cfm?error=1. Through that system you can no email in and need to log into the system. I will close out that ticket and we can continue though this.

    Let me know if you have any success with that new configuration. You can email directly back in or create and account with your email and respond directly though the forum.

    Deryck, I have connected to the Anybus 7007 module and uploaded the configuration file (Attached). I can scan a barcode and see the data if I start a logfile and then stop the log (see data_Log.jpg). However, If I start the Data monitor in the software, I do not see any changes on the screen when I scan the barcode (Data_Monitor.jpg). Since this is the first time using your communicator software I am not sure if I am doing this completely right. So, I know that the data is being transmitted fr:

     

    Regards,
    Deryck

    old issue 1849-30017

     

     

    0
  • Dennis_Miller

    Deryck,

    I installed the modified configuration file and then scanned a barcode. The data was successfully sent back to the PLC. THANK YOU.

    Question:

    Will the Anybus module send a null string (empty or blank) shortly after sending the actual barcode data?

    While looking at the live data in the PLC, the barcode data would appear and then would be cleared. I have checked the ladder logic and the register that the data is being received into is never cleared through Ladder Logic. I scanned many times and saw data appear and then clear. It must be from the Anybus module or something in the configuration of the module in the PLC.

    Any ideas?

    0
  • Deryck Beliveau

    Great! Nice to hear it is working.

    As for the data clearing my guess is that the offline timeout is getting triggered. Switch it from clear to freeze and your data should stay.

    Deryck

    0
  • Dennis_Miller

    I will give it a shot.

    Thank you.

    0
  • Dennis_Miller

    Deryck,

    The Datalogic scanners sends data fine now (as I said below/last week). However, I am trying to upgrade to a Cognex 2D scanner. I have configured it with the same parameters:

    9000,N,8,1 No handshaking

    Please see the attached pics and files.

    I can connect both the Datalogic and the Cognex scanners to my PC using Hyper Terminal and get the exact same data when I scan the barcodes. When I connect to the Anybus, the Cognex data comes in as junk.

    I can only believe that this must be a wiring/connector compatibility issue since I can receive both scanners data into my RS232 Com port on the laptop with no problems.

    Any ideas?

    Thank you,

    Dennis Miller

    Systems Engineer

    765-654-6195 Office

    765-427-1458 Cell

    Datalogic_Anybus.txt (1009 Bytes)

    Cognex_Anybus.txt (884 Bytes)

    0
  • Deryck Beliveau

    Hi Dennis,
    It looks like the Datalogic is seeing the correct data

    image

    I am not sure about the Cognex device. It looks like it is getting a lot of 1's in the data that might be causing the issue. Perhaps the baudrate is not set incorrectly? It could be an encoding issue, do you know for sure it is using ASCII?

    What should the data actually be or what do you receive for data in hyperterminal from that device?

    Deryck

    0
  • Dennis_Miller

    I sent pictures of the Hyper terminal screen yesterday (attached again). The first line is from the Datalogic scanner "10662073056871"

    The 2nd line is from the Cognex scanner. They are exactly the same. You can also see that Hyper terminal is set to 9600,N,8,1.

    Here is one more interesting piece of information::I have a serial protocol analyzer that connects in series with any RS232 cable. When I connect this in series with the Cognex scanner and the Anybus module, the data is received by the Anybus module correctly. If I then connect the Cognex db9 connector directly to the Anybus connector, it receives junk data again.

    Could there be some type of ground issue/compatibility issue with the Anybus module?

    Can you send me the exact pinout of the DB9 on the Anybus 7007 module?

    Dennis

    Cognex_Anybus.txt (884 Bytes)

    Datalogic_Anybus.txt (1009 Bytes)

    0
  • Deryck Beliveau

    That definitely sounds like it could be a wiring issue.
    Here is a screen shot of the pinout. It should also be printed on the side of the device.
    image
    You can find it on Page 128 of the user guide too: https://www.anybus.com/docs/librariesprovider7/default-document-library/manuals-design-guides/hms-hmsi-27-316.pdf?sfvrsn=2319aed6_8

    0
  • Dennis_Miller

    Deryck,

    Here is a schematic of the Datalogic Scanner that works fine with the Anybus Module. Notice that the external power (VCC) does not get connected at the Anybus module.

    Here is the Cognex schematic. Notice that pin 1(Vcc) is connected to the Anybus Module.

    Looking at the Anybus pinout (BELOW), it is also supplying 5V on pin 1. Is this causing the "junk" data (and possible noise) being received on the Anybus serial port?

    As I have said and attached files and pictures, both of these scanners are set to 9600,N,8,1. Both of these scanners send data successfully through a RS232 Comm port into my computer and displayed properly using Hyper Terminal. All communication parameters are the same. The only difference is the DB9 connector on the ends of each scanner.

    Dennis Miller

    Systems Engineer

    765-654-6195 Office

    765-427-1458 Cell

    Stoeblue

    0
  • Dennis_Miller

    HMS or Cognex,

    Needing some feedback on this please.

    Dennis

    0
  • Deryck Beliveau

    Hi Dennis I would not expect the VCC power to cause the junk data. It could be used to power the device, if it meets the power requirements, over using an external power supply.

    Have you tried using a null modem or just swapping the RX and TX lines. I would also make sure the devices are properly grounded and shielded.

    Deryck

    0
  • Dennis_Miller

    It is working. Made a new cable using only pins 2, 3, and 5 to go between the scanner and the Anybus module.

    Both DEVICES supplying power to the same pin does not work.

    0
  • Deryck Beliveau

    Great news!

    I had assumed you were only using external power based on the diagram.

    Let me know if you have any further questions I can help with.

    Deryck

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.