Ads error 1804 twincat

TwinCat3 Beckhoff "Add route to remote system failed ADS Error 1804 (0x70C)" LIVE PLC Questions And Answers

Old
June 12th, 2018, 12:31 PM

 
#1

Member

Switzerland

joburger is offline

 

Join Date: Jun 2018

Location: Zurich

Posts: 1

TwinCat3 Beckhoff «Add route to remote system failed ADS Error 1804 (0x70C)»


Hi everyone,

I have a problem connecting with a Beckhoff CX5120. Two months ago together with the help of an expert PLC programmer (I am a complete beginner) I set up the Beckhoff PLC to run a simple program. I managed to connect my laptop running TwinCat 3 to make modifications to the script and upload it to the PLC. However now, two months later, I am again trying to make some modifications to the program and although nothing has happened or changed in the past months it is not working anymore. When I first started with the PLC I remember I had some connection problems but I managed to solve them in the end and everything was working as it should.

However now when I try to connect to the PLC while the PLC computer is in Config mode it works, but as soon as I switch to Run mode the connection stops working. When I first start TwinCat with the PLC connected it shows the name (CX-2X61C0) of the PLC computer and everything seems in order. When I then Build the solution also there are no error messages. However if I then either press Activate Configuration or Restart TwinCat in Run Mode it does not give me any error messages but also it does not work and I cannot login. If I then select again the CX-2X61C0 from the dropdown menu it shows «CX-2X61C0 (ERROR)». Finally if I try to do Restore Connection it gives me the following error message: Add route to remote system failed ADS Error 1804 (0x70C). Furthermore the green/blue gear icon which is in the bottom corner turns red. At this moment I also cannot connect to the PLC computer anymore and I have to manually go on to the PLC computer (by connecting a screen and keyboard to the CX5120) and switch there from Run mode to Config mode. As soon as I switch back I can again see the PLC in TwinCat without an error.

I have been trying everything from creating a new project file to restarting multiple times but I cannot get it to work which is very frustrating because everything worked fine 2 months ago! If anyone has some ideas for solutions I would be very happy to hear them, thanks in advance!

 

Reply With Quote

Old
June 13th, 2018, 01:42 AM

 
#2

Member

Germany

Nineplanets is offline

 

Join Date: Aug 2015

Location: Munich/Stockholm

Posts: 13

Hello!
Have you tried to recreate (delete/add) the TwinCAT/AMS-routes? Delete them in both ends, and then create it on the PC/Developer machine-side.

I’m assuming that the TwinCAT status icon goes red on the PLC-side?
Also, to figure out why TwinCAT does this you can always look into the EventViewer. Right-click on TwinCAT status icon «Tools -> Event Viewer».

FYI, you don’t physically need to connect to the PLC if you want to debug it. All Beckhoff PLCs (at least running win7/win10, which your CX5120 does) have remote desktop enabled by default.

Removing route:
https://infosys.beckhoff.com/english…Routes.htm&id=
Add route:
https://infosys.beckhoff.com/english…dialog.htm&id=

 

Reply With Quote

Old
August 5th, 2020, 02:45 AM

 
#3

Member

Bangladesh

satyasarker is offline

 

Join Date: Aug 2020

Location: Pabna

Posts: 1

Hello,
I am seeing «ads error 1796 (0x704)» during the routing of EK1100 with Twincat3.1.

Username: Administrator and password:1 has been entered but showing the above error code.

How can I solve the problem?

 

Reply With Quote

Old
August 5th, 2020, 09:39 AM

 
#4

Member

Finland

Mara is offline

 

Join Date: Jan 2017

Location: Finland

Posts: 86

Quote:

Originally Posted by satyasarker
View Post

Hello,
I am seeing «ads error 1796 (0x704)» during the routing of EK1100 with Twincat3.1.

Username: Administrator and password:1 has been entered but showing the above error code.

How can I solve the problem?

You cannot create route between your PC and EK1100 since it’s ethercat coupler, not the processor.

If you are trying to connect your computer directly to EK1100 you just have to choose «local» (your computer) as target device, scan your network and then activate your configuration.

 

Reply With Quote

У нас распространены операционные системы с интерфейсом на русском языке, потому что мы живем в России. И все бы ничего, когда б не… русский язык.

Первая проблема после установки твинката на ПК — это файервол. Его настраивают кардинально и целиком, т. е. просто отключают. Контроллер после этого сканируется и появляется в сети, но попытка добавить роутинг обламывается сообщением:

Add route to remote system failed.
ADS Error 1796 (0x704): ‘ADS ERROR: reading/writing no permitted’

Объяснение простое — у пользователя на стороне контроллера не хватает прав для добавления записи в роутер контроллера. На самом же деле… впрочем, пойдем по простому пути.

На ПК, который скоро станет контроллером, открываем Панель управления → Администрирование → Управление компьютером → Локальные пользователи и группы.

В подразделе Пользователи находим Администратор и переименовываем его в Administrator. В подразделе Группы находим Администраторы и переименовываем их в Administrators.

Наслаждайтесь.

TwinCat3 Beckhoff «Add route to remote system failed ADS Error 1804 (0x70C)»

für Deutsch siehe unten

————————————————————————

Hi everyone, I will post in English as my German writing skills are not so good but below you can find my post Google translated for your convenience. Replies in both German and English are very welcome!

I have a problem connecting with a Beckhoff CX5120. Two months ago together with the help of an expert PLC programmer (I am a complete beginner) I set up the Beckhoff PLC to run a simple program. I managed to connect my laptop running TwinCat 3 to make modifications to the script and upload it to the PLC. However now, two months later, I am again trying to make some modifications to the program and although nothing has happened or changed in the past months it is not working anymore. When I first started with the PLC I remember I had some connection problems but I managed to solve them in the end and everything was working as it should.

However now when I try to connect to the PLC while the PLC computer is in Config mode it works, but as soon as I switch to Run mode the connection stops working. When I first start TwinCat with the PLC connected it shows the name (CX-2X61C0) of the PLC computer and everything seems in order. When I then Build the solution also there are no error messages. However if I then either press Activate Configuration or Restart TwinCat in Run Mode it does not give me any error messages but also it does not work and I cannot login. If I then select again the CX-2X61C0 from the dropdown menu it shows «CX-2X61C0 (ERROR)». Finally if I try to do Restore Connection it gives me the following error message: Add route to remote system failed ADS Error 1804 (0x70C). Furthermore the green/blue gear icon which is in the bottom corner turns red. At this moment I also cannot connect to the PLC computer anymore and I have to manually go on to the PLC computer (by connecting a screen and keyboard to the CX5120) and switch there from Run mode to Config mode. As soon as I switch back I can again see the PLC in TwinCat without an error.

I have been trying everything from creating a new project file to restarting multiple times but I cannot get it to work which is very frustrating because everything worked fine 2 months ago! If anyone has some ideas for solutions I would be very happy to hear them, thanks in advance!

————————————————————————

GERMAN:

Hallo allerseits, ich werde auf Englisch posten, da meine deutschen Schreibfertigkeiten nicht so gut sind, aber unten findest du meinen Beitrag Google übersetzt für deine Bequemlichkeit. Antworten in Deutsch und Englisch sind sehr willkommen!

Ich habe ein Problem mit der Verbindung mit einem Beckhoff CX5120. Vor zwei Monaten habe ich zusammen mit einem erfahrenen SPS-Programmierer (ich bin ein absoluter Neuling) die Beckhoff-SPS eingerichtet, um ein einfaches Programm zu starten. Ich habe es geschafft, meinen Laptop mit TwinCat 3 zu verbinden, um Änderungen am Skript vorzunehmen und es auf die SPS hochzuladen. Aber jetzt, zwei Monate später, versuche ich wieder einige Änderungen am Programm vorzunehmen und obwohl in den letzten Monaten nichts passiert oder geändert wurde, funktioniert es nicht mehr. Als ich anfing mit der SPS zu arbeiten, erinnerte ich mich, dass ich einige Verbindungsprobleme hatte, aber ich schaffte es, sie am Ende zu lösen und alles funktionierte wie es sollte.

Aber jetzt, wenn ich versuche, eine Verbindung zur SPS herzustellen, während der SPS-Computer im Konfigurationsmodus ist, funktioniert es, aber sobald ich in den Ausführungsmodus umschalte, funktioniert die Verbindung nicht mehr. Wenn ich TwinCat zum ersten Mal mit der angeschlossenen SPS starte, wird der Name (CX-2X61C0) des SPS-Computers angezeigt und alles scheint in Ordnung zu sein. Wenn ich dann die Lösung baue gibt es auch keine Fehlermeldungen. Wenn ich dann im Run-Modus entweder auf Konfiguration aktivieren oder TwinCat neu starten klicke, bekomme ich keine Fehlermeldungen, aber es funktioniert auch nicht und ich kann mich nicht anmelden. Wenn ich dann erneut den CX-2X61C0 aus dem Dropdown-Menü auswähle, erscheint «CX-2X61C0 (ERROR)». Schließlich, wenn ich versuche, Verbindung wiederherzustellen, gibt es mir die folgende Fehlermeldung: Hinzufügen Route zu Remote-System fehlgeschlagen ADS Fehler 1804 (0x70C). Außerdem wird das grün / blaue Zahnradsymbol in der unteren Ecke rot. In diesem Moment kann ich auch keine Verbindung mehr zum SPS-Computer herstellen und muss manuell zum SPS-Computer wechseln (indem ich einen Bildschirm und eine Tastatur an den CX5120 anschließe) und dort vom Betriebsmodus in den Konfigurationsmodus wechseln. Sobald ich zurückwechsle, kann ich die SPS in TwinCat wieder fehlerfrei sehen.

Ich habe alles ausprobiert, von der Erstellung einer neuen Projektdatei bis hin zum Neustart, aber ich kann es nicht zur Arbeit bringen, was sehr frustrierend ist, weil vor zwei Monaten alles gut geklappt hat! Wenn jemand einige Ideen für Lösungen hat, würde ich mich sehr freuen, sie zu hören, danke im Voraus!

Twincat ads error 1796

I ran in to some trouble.
I created 2 virtual machines to try out ADS communicating One machine is a PLC (TC2 32bit (runtime)), other is (should be) a client (TC2 64bit engineering+ Visual studio adsAPI) that should read/write from/to PLC VM.

1. problem : TC2 64 bit engineering does not find a PLC VM. (i know it is possible to find it (https://www.reddit.com/r/PLC/comment. ogram_running/ )but mine does not find it)

2 problem: (bigger one). I can find this VM PLC from other 32bit VM with TC2 32bit, but when I try to «add route» I get ADS error 1796.

I saw one post on this forum about very similar issue(http://www.plctalk.net/qanda/showthr. ADS+ERROR+1796), but could not find answer here.

Maybe someone here tried this out and could help me out?

thanks you all in advance

For those who are instrested I managed to fix my problems.

2 Problem [Solved]: silly mistake Beckhoff add route requires PC name and password so entering it removes the problem and route is added

1 Problem [Solved]: dont know why but TC2 64 bit (engineering) does not install good on Win 7 (pro), trying this on W10 mashine worked like a charm

hope this helps someone

did you install as ‘run as admin’?

I run TC2 64-bit on windows 7 (home), no problem.

Источник

Twincat ads error 1796

I have a problem connecting with a Beckhoff CX5120. Two months ago together with the help of an expert PLC programmer (I am a complete beginner) I set up the Beckhoff PLC to run a simple program. I managed to connect my laptop running TwinCat 3 to make modifications to the script and upload it to the PLC. However now, two months later, I am again trying to make some modifications to the program and although nothing has happened or changed in the past months it is not working anymore. When I first started with the PLC I remember I had some connection problems but I managed to solve them in the end and everything was working as it should.

However now when I try to connect to the PLC while the PLC computer is in Config mode it works, but as soon as I switch to Run mode the connection stops working. When I first start TwinCat with the PLC connected it shows the name (CX-2X61C0) of the PLC computer and everything seems in order. When I then Build the solution also there are no error messages. However if I then either press Activate Configuration or Restart TwinCat in Run Mode it does not give me any error messages but also it does not work and I cannot login. If I then select again the CX-2X61C0 from the dropdown menu it shows «CX-2X61C0 (ERROR)». Finally if I try to do Restore Connection it gives me the following error message: Add route to remote system failed ADS Error 1804 (0x70C). Furthermore the green/blue gear icon which is in the bottom corner turns red. At this moment I also cannot connect to the PLC computer anymore and I have to manually go on to the PLC computer (by connecting a screen and keyboard to the CX5120) and switch there from Run mode to Config mode. As soon as I switch back I can again see the PLC in TwinCat without an error.

I have been trying everything from creating a new project file to restarting multiple times but I cannot get it to work which is very frustrating because everything worked fine 2 months ago! If anyone has some ideas for solutions I would be very happy to hear them, thanks in advance!

Hello!
Have you tried to recreate (delete/add) the TwinCAT/AMS-routes? Delete them in both ends, and then create it on the PC/Developer machine-side.

I’m assuming that the TwinCAT status icon goes red on the PLC-side?
Also, to figure out why TwinCAT does this you can always look into the EventViewer. Right-click on TwinCAT status icon «Tools -> Event Viewer».

FYI, you don’t physically need to connect to the PLC if you want to debug it. All Beckhoff PLCs (at least running win7/win10, which your CX5120 does) have remote desktop enabled by default.

Hello,
I am seeing «ads error 1796 (0x704)» during the routing of EK1100 with Twincat3.1.

Username: Administrator and password:1 has been entered but showing the above error code.

Источник

ADS Return Codes

Global error codes

Allocation locked – memory error.

Mailbox full – the ADS message could not be sent. Reducing the number of ADS messages per cycle will help.

Target port not found – ADS server is not started or is not reachable.

Target computer not found – AMS route was not found.

Unknown command ID.

Invalid task ID.

Unknown AMS command.

Port not connected.

Invalid AMS length.

Invalid AMS Net ID.

Installation level is too low –TwinCAT 2 license error.

No debugging available.

Port disabled – TwinCAT system service not started.

Port already connected.

AMS Sync Win32 error.

AMS Sync Timeout.

No index map for AMS Sync available.

Invalid AMS port.

Invalid AMS fragment.

TLS send error – secure ADS connection failed.

Access denied – secure ADS access denied.

Router error codes

Locked memory cannot be allocated.

The router memory size could not be changed.

The mailbox has reached the maximum number of possible messages.

The Debug mailbox has reached the maximum number of possible messages.

The port type is unknown.

The router is not initialized.

The port number is already assigned.

The port is not registered.

The maximum number of ports has been reached.

The port is invalid.

The router is not active.

The mailbox has reached the maximum number for fragmented messages.

A fragment timeout has occurred.

The port is removed.

General ADS error codes

General device error.

Service is not supported by the server.

Invalid index group.

Invalid index offset.

Reading or writing not permitted.

Parameter size not correct.

Invalid data values.

Device is not ready to operate.

Invalid operating system context. This can result from use of ADS function blocks in different tasks. It may be possible to resolve this through Multi-task data access synchronization in the PLC.

Invalid parameter values.

Not found (files, . ).

Syntax error in file or command.

Objects do not match.

Object already exists.

Symbol not found.

Invalid symbol version. This can occur due to an online change. Create a new handle.

Device (server) is in invalid state.

AdsTransMode not supported.

Notification handle is invalid.

Notification client not registered.

No further handle available.

Notification size too large.

Device not initialized.

Device has a timeout.

Interface query failed.

Wrong interface requested.

Class ID is invalid.

Object ID is invalid.

Request is aborted.

Invalid array index.

Symbol not active.

License problem: System ID is invalid.

License not limited in time.

License problem: Time in the future.

License period too long.

Exception at system startup.

License file read twice.

Public key not known from OEM.

License not valid for this system ID.

Demo license prohibited.

Invalid function ID.

Outside the valid range.

Invalid platform level.

Context – forward to passive level.

Context – forward to dispatch level.

Context – forward to real-time.

Service contains an invalid parameter.

Polling list is empty.

Var connection already in use.

The called ID is already in use.

Timeout has occurred – the remote terminal is not responding in the specified ADS timeout. The route setting of the remote terminal may be configured incorrectly.

Error in Win32 subsystem.

Invalid client timeout value.

Internal error in Ads sync.

Hash table overflow.

Key not found in the table.

No symbols in the cache.

Invalid response received.

Sync Port is locked.

RTime error codes

Internal error in the real-time system.

Timer value is not valid.

Task pointer has the invalid value 0 (zero).

Stack pointer has the invalid value 0 (zero).

The request task priority is already assigned.

No free TCB (Task Control Block) available. The maximum number of TCBs is 64.

No free semaphores available. The maximum number of semaphores is 64.

No free space available in the queue. The maximum number of positions in the queue is 64.

An external synchronization interrupt is already applied.

No external sync interrupt applied.

Application of the external synchronization interrupt has failed.

Call of a service function in the wrong context

Intel VT-x extension is not supported.

Intel VT-x extension is not enabled in the BIOS.

Missing function in Intel VT-x extension.

Activation of Intel VT-x fails.

TCP Winsock error codes

A connection timeout has occurred — error while establishing the connection, because the remote terminal did not respond properly after a certain period of time, or the established connection could not be maintained because the connected host did not respond.

Connection refused — no connection could be established because the target computer has explicitly rejected it. This error usually results from an attempt to connect to a service that is inactive on the external host, that is, a service for which no server application is running.

No route to host — a socket operation referred to an unavailable host.

More Winsock error codes: Win32 error codes

Источник

Twincat ads error 1796

__________________
Expectations lead to disappointment. Appreciation leads to satisfaction.

Yes,I did,I have no problem with the local system, since I have the remote system which is in WinCE in config mode all the time.

every time I login to the remote system I receive a message says : «No program on the controller, Download the new program?»
I think maybe the program should be downloaded to the remote system «WinCE», but I don’t know if there is such a way to do that.

The WinCE system doesn’t have that problem before and it was on running mode with its own application running, But after I create my project and I send the new boot project. this status occurs and the twincat starts in config mode.

I appreciate your cooperation.

The message you receive states that no program has been downloaded into the controller.

1. Ensure that you’ve selected the right type of PLC in your PLC configuration (resources tab in PLCControl).

2. Clean and rebuild your PLC program.

3. Save your PLC program.

4. Rescan you PLC project from System Manager.

5. Download again the configuration.

6. Select the right runtime system (PLCControl -> Online -> Choose runtime system).

8. Create the boot project.

You should also check:

1. Ensure you don’t have any page fault as per a bad memory assignment if you are using pointers.

2. Ensure you are not accessing bad memory addresses (out of bounds arrays. )

Good luck with all those, come back with the result.

What I would do:

1. make a complete backup of your CFCard.
2. Delete the Documents and Settings folder.
3. Delete the TwinCAT boot folder contents.
4. put back the cfcard into the CX controller and restart it. Wait for it to create the folders again.
5. reconfigure your IP addresses in your CX.
6. start system manager, create again the route between your computer and the controller.
7. in config mode, and once you are connected SCAN the IO Devices and then SCAN for boxes. ==> this will create the correct IO cards and devices for you.
8. add your plc project, scan it and assign the right PLC variables to the right IOs.
9. try to generate assignments, download the current configuration.
10. in PLCControl log in and create the boot project.
11. in your System manager go to SYSTEM CONFIGURATION ==> BOOT SETTINGS (Target) ==> Select RUN MODE (ENABLE).

Try it again and come back with the results.

Источник

Twincat ads error 1796

__________________
Expectations lead to disappointment. Appreciation leads to satisfaction.

Yes,I did,I have no problem with the local system, since I have the remote system which is in WinCE in config mode all the time.

every time I login to the remote system I receive a message says : «No program on the controller, Download the new program?»
I think maybe the program should be downloaded to the remote system «WinCE», but I don’t know if there is such a way to do that.

The WinCE system doesn’t have that problem before and it was on running mode with its own application running, But after I create my project and I send the new boot project. this status occurs and the twincat starts in config mode.

I appreciate your cooperation.

The message you receive states that no program has been downloaded into the controller.

1. Ensure that you’ve selected the right type of PLC in your PLC configuration (resources tab in PLCControl).

2. Clean and rebuild your PLC program.

3. Save your PLC program.

4. Rescan you PLC project from System Manager.

5. Download again the configuration.

6. Select the right runtime system (PLCControl -> Online -> Choose runtime system).

8. Create the boot project.

You should also check:

1. Ensure you don’t have any page fault as per a bad memory assignment if you are using pointers.

2. Ensure you are not accessing bad memory addresses (out of bounds arrays. )

Good luck with all those, come back with the result.

What I would do:

1. make a complete backup of your CFCard.
2. Delete the Documents and Settings folder.
3. Delete the TwinCAT boot folder contents.
4. put back the cfcard into the CX controller and restart it. Wait for it to create the folders again.
5. reconfigure your IP addresses in your CX.
6. start system manager, create again the route between your computer and the controller.
7. in config mode, and once you are connected SCAN the IO Devices and then SCAN for boxes. ==> this will create the correct IO cards and devices for you.
8. add your plc project, scan it and assign the right PLC variables to the right IOs.
9. try to generate assignments, download the current configuration.
10. in PLCControl log in and create the boot project.
11. in your System manager go to SYSTEM CONFIGURATION ==> BOOT SETTINGS (Target) ==> Select RUN MODE (ENABLE).

Try it again and come back with the results.

Источник

В какой-то момент в моем проекте TwinCAT 3 я внезапно не смог запустить свой проект в режиме <Local>. Я не обращал на это особого внимания, но теперь мне нужно вернуться к проекту, а промышленный компьютер находится в производстве, у меня нет к нему доступа, поэтому я не могу запустить свое приложение прямо на нем, поэтому мне нужно исправить эту ошибку, которую я получаю, когда пытаюсь запустить приложение на своем компьютере.

Я получаю два всплывающих окна с ошибками, когда нажимаю кнопку Activate configuration. В первом говорится:

Error starting TwinCAT system!
Init12IO: Set State TComObj SAFEOP: Set Objects (11) to SAFEOP >> AdsError: 1817 (0x719, ADS ERROR: device has a timeout)
For further information start the event viewer and open the log.

Второй утверждает:

12/12/2022 15:30:00 573 ms | 'TwinCAT System' (10000): Sending ams command >> Init12IO: Set State TComObj SAFEOP: Set Objects (11) to SAFEOP >> AdsError: 1817 (0x719, ADS ERROR: device has a timeout) << failed!

Я отключил свою карту ввода-вывода (которая является устройством EtherCAT), я также попытался отключить карту безопасности, но проблема все еще возникает.

Я пытался запустить скрипт win8settick.bat и несколько раз перезагрузиться, это не сработало.

Hyper-V отключен.

Я пытался использовать Visual Studio 2019 и TwinCAT XAE Shell напрямую (я полагаю, что работает под Visual Studio 2017)

Я пробовал все это непосредственно на своем компьютере (Windows 10, 64-разрядная версия, 12-ядерный процессор i7), а также на виртуальной машине Windows 10 IoT Enterprise 2019 LTSC, которая имеет ту же конфигурацию, что и мой промышленный компьютер.

Кто-нибудь знает, как я могу решить эту проблему? Заранее спасибо!

1 ответ

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Adobe photoshop как изменить размер слоя
  • Adobe photoshop как изменить размер вставленного изображения
  • Adobe photoshop error at loading of ippsp library
  • Adobe photoshop cs6 error 16
  • Adobe photoshop cs3 как изменить язык

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии