{}

Prohledejte časté dotazy

{"searchBar":{"inputPlaceholder":"Hledejte podle klíčového slova nebo se zeptejte","searchBtn":"Hledat","error":"Zadejte klíčové slovo pro hledání"}}

Troubleshooting - Usb PLC Service does not start and I cannot connect my PC to my Modicon PLC via USB cable

Issue
Troubleshooting - When I try to connect my Modicon PLC to my computer via USB connection, the Windows USB driver cannot detect it and the "Usb PLC" service does not start.

Product Line
EcoStruxure Machine Expert (SoMachine v4.1+, SoMachine Basic): Modicon M238, M258, M262, LMC058, M221 PLCs, ATV-IMC
EcoStruxure Control Expert (Unity Pro v12+): Unity Quantum PLCs, Modicon M340, M580, MC80
Schneider Electric PLCUsb Driver x64 Suite

Environment
Windows 7,  Windows 8.1, Windows 10, USB Drivers

Resolution
This FAQ will go through some troubleshooting steps on this topic specifically if the Usb PLC Windows Service does not run.

Before going through the following steps, please contact Schneider Electric Support to obtain the latest 'PLCUsb Driver X64' Suite. This Microsoft signed driver package is compatible with all PLC families from EcoStruxure Machine Expert (SoMachine) and EcoStruxure Control Expert (Unity Pro).

In EcoStruxure Control Expert's installation DVD .ISO image, this will be located in the "Communication Drivers" folder, or you may download the latest version (as of Sept 2022) from this  link: https://www.se.com/ww/en/download/document/MSCD_V14.15.0.0/ (Schneider PLC USB Driver Suite v14.15.0.0)

Section A) Check if the Windows cannot verify the digital signature of the PLC:
  1. Open the Windows Device Manager
  2. Find the device in the list:
    • M340 will appear under "Modems" as: "BMX CPU" or "BMX CPU #x" (where x is an integer)
    • M580 will appear under "Network adapters" as: "SE RNDIS PSX M580 Controller"
    • M262 will appear under "Network adapters" as: "SE RNDIS PSX M262 Controller"
  3. Right-click the device node
  4. Go to Properties
  5. In the General tab, check if the Device Status shows: "Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code 52)"Device Manager Digital Signature message
  6. If you see this message it will likely mean that you have a driver that is older than v14.13.0.0 which was a version not signed by Microsoft before 2019 when Microsoft required Digital Signatures for all USB drivers. Skip to section E below to uninstall and reinstall the latest driver.

Section B) Check if the 'Usb PLC' service is running:
  1. Click the Windows Start button.
  2. Run "Services.msc".
  3. Scroll down to the Service names that start with the letter 'U'.
  4. In the row named "UsbConnect" and description "Usb PLC", check the  Status column.
  5. If the Status column is blank or Stopped, right click on the row and choose "Start". Task Manager -  Start UsbConnect Service
  6. If this is not possible or an error appears, check the Startup Type, is it blank?
  7. If so, Right-click on the row and go to Properties.
  8. Change the Startup Type to Manual, and Start the Service with the Start button.
  9. If an error appears "Windows could not start the Usb PLC service on Local Computer. Error 2: The system cannot find the file specified." go to the next set of steps.
Section C) Check whether or not UsbConnect.exe and UsbConsole.exe are running:
  1. Right-click on the Windows Taskbar and choose "Task Manager" (or Ctrl+Alt+Delete and choose "Task Manager")
  2. Go to the Details Tab in the Windows Task Manager.
  3. Scroll down to the process names starting with the letter 'U'
  4. Check if 'UsbConnect.exe' and 'UsbConsole' are running.
  5. If they are not running, go to C:\Windows\System32\ to see if UsbConnect.exe and UsbConsole.exe appear at this folder level. If they do not,
Section D) If these conditions two occur: (Section B-Step 9) "The system cannot find the file specified" and (Section A-Step 5): both UsbConnect.exe andUsbConsole.exe do not exist in the C:\Windows\System32\ folder,
we will need to remove the 'Usb PLC' service from Windows:
  1. Unplug the USB cable from your PC
  2. Close the File Explorer open to "C:\Windows\System32\".
  3. Close the Services window (services.msc).
  4. Run CMD in Administrator Mode.
  5. If the location is not already 'C:\WINDOWS\System32\', change the directory with the command: cd C:\windows\system32\
  6. Type: sc delete "Usb PLC"
  7. Hit the Enter key. This will remove the Usb PLC service from your computer's registry.
  8. Run services.msc, once again to confirm it is removed.
Section E) Next, we will uninstall the Schneider Electric 'PLCUsb Driver X64' suite:
  1. Go to Windows Control Panel-> Programs and Features.
  2. Find "PLCUsb Driver X64".
  3. Right-click on it and Uninstall.
  4. Restart your PC.
  5. Continue to Section F.
Section F) Install the PLCUsb Driver X64 suite.
  1. Install the new PLCUsb Driver X64 suite.
  2. Restart your PC.
  3. Go to Services.msc and check that the 'Usb PLC' service is Running.
  4. Go to Task Manager and check that 'UsbConnect.exe' and 'UsbConsole.exe" are running.
  5. Plug in the USB cable connecting the PLC to your PC.
  6. Go to Windows Device Manager.
  7. Expand the 'Modem' node.
  8. If there is a yellow triangle by the node of the PLC, right-click on that node and "Uninstall Device".
  9. Once the device disappears from your Device Manager, unplug the PLC's USB cable from your PC.
  10. Wait 30 seconds.
  11. Plug the PLC back into the USB port of the PC.
If at Step 4 the UsbConnect.exe and UsbConsole.exe are NOT running, try running C:\Windows\System32\UsbConnect.exe directly from Windows File Explorer as Administrator. This should spawn both "UsbConsole" and "USB PLC NT Service" in the Task Manager:UsbConsole and USB PLC NT Service in Task Manager
If the are not running, then check with the Administrator of your computer to see if they are being blocked by:
Group Policy, Firewall, Anti-malware software, or Antivirus software.


Section G) Identify and Remove Duplicate Devices in the Device Manager (specifically for M340 only)
  1. Open the Windows Device Manager.
  2. Click on View
  3. Select 'Show hidden devices' Device Manager -> View -> Show hidden devices
  4. Expand the Modems item.
  5. Delete the BMX CPU devices found under Modems Modems folder -> duplicate entries
  6. If there are any unknown devices found under Modems, delete those also.
  7. Retest

Section H) Check for RasClient Error (EventID: 20227) in Windows Event Viewer - Application log folder (specifically for M340)
Specifically for the M340 PLC connection, you may see this combination of symptoms:
  • The BMX CPU instance in Device Manager will appear as working properlyDevice Manager - BMX CPU appearing as working properly
  • However, when you launch the Drivers Manager (SCHNEIDER Drivers Management Properties), click on the PLC USB Driver tab, click on the [More...] button, it shows:PLC USB Driver Diagnostic - No active USB connection
    • Status: <blank>
    • Remote IP : <blank>
    • Local IP : <blank>
    • Standard SE USB connection log: "No (or active) USB connection: Plug (or replug) USB cable"
  • Normally, when the M340 is detected as connected via USB, the PLC USB Driver Diagnostic should show:​​
    • Status : <blank>
    • Remote IP : 90.0.0.1
    • Local IP: 90.0.0.2
    • Standard SE USB connection log: "<lineNumber>:<Timestamp>->Active USB-connection: 'USBCON'"
PLC USB Driver Diagnostic - successful connection example

Steps to recognize this issue:
  1. Run the Windows Event Viewer
  2. On the top-left pane, choose "Application"Windows Event Viewer - Application
  3. At the timestamp of when you plugged in the USB cable, check to see if you have an Error with:
    • Source = RasClient
    • Event ID = 20227
    • General Error Message: "The user SYSTEM dialed a connection named USBCON which has failed. The error code returned on failure is 720."RasClient Error - Event ID 20227
  4. If this is observed, then follow the instructions in this Video: How to Correct Control Expert Not Able to Connect with M340 Using USB | Schneider Electric Support

Steps to solve this issue from the video:
  1. Run the Windows Registry Editor (regedit.msc)
  2. Go to Edit -> Find... (or hit Ctrl+F)
  3. Search for the GUID (General Unique ID) string: "{4D36E972-E325-11CE-BFC1-08002BE10318}".
  4. Observe that in the Registry Editor, this highlights "Computer\HKEY\LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\"
  5. Right click on this folder and choose "Export" to save a backup of this folder.
  6. Once you have saved the file, expand the folder in the Registry Editor.
  7. Select each folder "0000", "0001", "0002"
    1. carefully search for the name 'DriverDesc' with the Data 'WAN Miniport (PPTP)" and delete just that row.
    2. carefully search for the name 'DriverDesc' with the Data 'WAN Miniport (IP)" and delete just that row.
    3. DO NOT Delete any other rows with the name DriverDesc.
  8. Open Windows Device Manager
  9. Navigate to "Network adapters" and expand it
  10. Right-click on "WAN Miniport (IP)"
  11. Choose "Uninstall device"
  12. Right-click on "WAN Miniport (PPTP)"
  13. Choose "Uninstall device"
  14. Scan for hardware changes to reinstall the WAN Miniport (IP) and WAN Miniport (PPTP) drivers. There are two methods:
    1. Right-click on the name of the computer -> choose "Scan for hardware changes" or
    2. Click the button on the toolbar that looks like a magnifying glass over a monitor.
  15. Open Powershell or Command Line (cmd.exe) as Administrator
  16. Type the command "netsh int IP reset - this will reset the Windows TCP/IP stack
  17. Unplug the USB cable from your PC
  18. Power cycle the M340 PLC
  19. Plug the USB cable back into the PC to connect the M340 PLC again
  20. Test your connection from EcoStruxure Control Expert

At this point, you should be able to connect to the PLC using its respective configuration software (EcoStruxure Machine Expert / SoMachine or EcoStruxure Control Expert / Unity Pro).
If the issue persists after these troubleshooting steps, please contact Schneider Electric Customer Care.

Schneider Electric Česká republika

Bylo to užitečné?

Zjistěte více
Zjistěte více