Содержание
- Проблема связи компьютера и ПЛК
- Тема: плк100 + мдвв
- плк100 + мдвв
- Codesys communication error logout performed
- Codesys communication error logout performed
- Communication Error (#0): Logout Performed
Проблема связи компьютера и ПЛК
У меня ПЛК-100 К-L (выпущен в 2006г) Codesys v.2.3.8.1 target файлы 2.02 прошивка контроллера 2.02.08, периодически прерывается связь ПК с контроллером (через 1-15 мин), выдается сообщение «Communication error : (#0)Logout Performed». Контроллер периодически перезагружается самопроизвольно.
А немного больше информации?
Проектик?
Какие приборы подключены?
Используется ли SCADA?
Жду подробностей!
SCADA — система не используется, в принципе дело и не в проекте т.к создовал новый проект — простой практически ничего нет только лишь бы загрузился. Стандартные библиотеки + железо ПЛК 100. В итоге все то же(бесконечные перезагрузки и сбои в связи с компьютером).
Подозреваю что дело в ПЛК, как то удостоверится в этом можно? Что-бы в ремонт по пустому не отправлять!
не совсем по теме.
У вас на одном интерфейсе подключены одновременно устройства с разными протоколами. Они будут мешать обмену друг друга.
Или выберите один протокол, или управляйте обменом так, чтобы в сети не существовали одновременно посылки разных типов.
Кроме того в описании слэйва указано 2 интерфейса. Думаю RS485 вам стоит удалить.
не совсем по теме.
У вас на одном интерфейсе подключены одновременно устройства с разными протоколами. Они будут мешать обмену друг друга.
Или выберите один протокол, или управляйте обменом так, чтобы в сети не существовали одновременно посылки разных типов.
Кроме того в описании слэйва указано 2 интерфейса. Думаю RS485 вам стоит удалить.
На одном интерфейсе 2 мастера (Овен и Модбус) и 1 slave. И как это должно было функциклировать в теории?
о . а есть же UNM.lib, разве не для венигреда писалась?
Есть такая странная закономерность убираю RS-485, из слэйв модбас перестает работать RS-232.
Два мастера месяц назад уживались неплохо, работают они поочередно и не мешают друг другу, конечно хотелось бы ограничиться одним ПЛК, но панель Delta ТР04 работает только как модбас мастер.
Да и дело не в железе и его конфликтах, потому как наблюдал эти же проблемы при страндартной PLC_configuration (только ПЛК100).
Причина перебоев в работе мне неизвестна и возникла примерно месяц назад, в тот момент времени когда установил последнюю версию Codesys, таргета, прошивки.
Вопрос в следующем: вообще ПЛК производит диагностику внутренних отказов? есть подозрение на него. Было замечено:
температура ПЛК 30 град.С (2 часа работы) = бесконечный рестарт ПЛК + появление связи с компьютером;
Что делать?
Попробуй холодный рестарт ПЛК, мне помогает!
Источник
Тема: плк100 + мдвв
Опции темы
Отображение
плк100 + мдвв
Вот беда. сконфигурировал МДВВ, накидал пустую прогу для ПЛК-100, в PLC Configuration создал конфигурацию один в один как в примере для ModBus-ASCII. Конфигурация : ПЛК-100-К-М + МДВВ. Target последний с сайта. Без МДВВ в конфигурации программа шьётся без проблем. Стоит добавить МДВВ — пишет при прошивке «Communication Error (#0): Logout Performed». В чём-дело — понять не могу. Сменить ASCII на RTU пробовал. Не делать Download сразу после Login-а тоже пробовал. может, поможет кто ? 3-й день голову ломаю.
Прилагаю папку с проектом, там же PLCInfo и скриншот формы конфигуратора МДВВ.
еще раз проверьте соответствие таргета и прошивки
Binary VERSION 2.10.5 — прошивка
PLC_100_2.10.5 — таргет
1. Переведите прибор на МодБас РТУ. Не забудьте после этого перезагрузить МДВВ.
2. В Конфигурации ПЛК добавьте МодБас Мастер. В настройках не забудьте указать РТУ.
3. В Модбас Мастере проверьте настройки интерфейса — скорость, четность и т.д.
4. Добавтье Universal ModBus Device. Укажите адрес МДВВ.
5. В UMD добавьте Регистр инпут и Регистр оутпут. В настройках регистров укажите номера регистров в МДВВ и команды для чтение входов и выходов по маске.
Таргет Соответствует контроллеру, включая лицензионное ограничение?
Тут ведь вот какая штука приключилась, уважаемые. в общем, отломился разъём у RS-485 у МДВВ. Несколько излишне затянул я болты. 🙁 Соответственно, мучить МДВВ возможность пропала. Итого, имеем : неумеренно рьяный сотрудник — одна штука. Блок МДВВ в ремонте — одна штука. Блок МВА-8 живой (пока) со снятой перемычкой x1 — одна штука. Соответственно, начал мучить МВА-8. Блок и контроллер сконфигурированы как в примере, даже адреса те же. Контроллер ПЛК100-24.К-М , таргет PLC100.K-M из PLC_100_2.10.5. При попытке прошить в контроллер проект опять же выскакивает : «Communication Error (#0): Logout Performed». Причём, если просто логиниться, без download-а — логинится нормально. Прошивка просто проекта без дополнительных блоков тоже проходит на ура. Проект, конфиг МВА и PLCInfo прилагаю.. где собака порылась, а . Пробовал в конфиге МВА (есс-но, с перезагрузкой) и PLCConfiguration менять ASCII на RTU, — результат тот же.
Вернули мне МДВВ. Сконфигурировал на РТУ. Добавил Universal ModBus Device — нормально, прошивается. Но стоит добавить в UMD любой регистр — при прошивке выскакивает «Communication Error (#0): Logout Performed». . 🙁 Что делать ? Проект и конфигурацию МДВВ прилагаю.
а поподробнее, адреса, явки, пароли?
Binary VERSION 2.10.5 — прошивка
PLC_100_2.10.5 — таргет
какую ещё указать инфу ? 🙂
Кстати, ещё дурацкий вопрос. отсутствие библиотеки OWEN-овской, типа ModBus.lib, может давать такую ошибку при конфигурировании ?
Имеется конфигурация : ПЛК 100-К.М. + МДВВ (PLCInfo прилагаю).
1. Подключаю МДВВ через преобразователь и конфигурирую :
1.1 Ставлю джампер, включаю МДВВ захожу с заводскими настройками в конфигуратор.
1.2 Выставляю в конфигурации скорость : 115200 протокол : ModBus-RTU адрес : 56 t.out : 2 Rs.dL : 6
1.3 Записываю все параметры в МДВВ. Делаю Apply. Записываю конфиг на винт, шобы Вам скинуть 🙂
1.4 Выключаю МДВВ и снимаю джампер
2. Отключаю МДВВ от преобразователя, подключаю к ПЛК.
3. Запускаю CodeSys, создаю новый проект
3.1 Выбираю таргет PLC100.K-M
3.2 Делаю пустую PLC_PRG с ‘;’
3.3 Захожу в PLC Configuration
3.4 Добавляю MODBUS (Master)
3.5 Меняю слот с Debug-232 на RS-485-1
3.6 В параметрах модуля RS-485-1 выбираю Frame Oriented RTU, Communication speed = 11520
3.7 Добавляю Universal Modbus Device
3.8 В параметрах модуля MDU ставлю ModuleSlaveAdress = 56, Polling Time = 200 ms
3.9 Добавляю Register Input Module
3.10 В свойствах модуля Register Input Module ставлю RegisterAdress = 51 и Command : Read holding registers (0х03)
4. Сохраняю, чтобы выслать проект Вам 🙂
5. Делаю LogIn и Download — через секунду получаю «Communication Error (#0): Logout Performed».
Где ошибка ? В ДНК ? 🙂
В архиве : PLCInfo, конфиг МДВВ и проект.
Источник
Codesys communication error logout performed
I am a new for Codesys and using IFM controller. When login, the system give me the tip «communication Error #0, logout performed»? why and how to settle it?
Someone please help us!!
How could we help?
We have to know which communication ports this controller uses.
Serial? Ethernet? Fieldbus? which settings = baudrate?, parity? etc.
do you have no onlinehelp or manual for this controller?
You check the TCP/IP port number.
This number is set «Communication Parameter».
I can login AC1353(ifm) using TCP/IP(level2) by port «1200».
Once I have used wago master, wrong setting(port number) is remained.
I was wondering if the problem was already solved?
I have the same issue, i use Codesys with a Quin4 controller.
When trying to connect, i also get the same message: «communication Error #0, logout performed»
All my computer settings are ok, and codesys communication settings are the same as on other systems at my company. With these computers it is possible to connect, the only difference is that i run Vista Home Premium, and the rest of the company XP home or professional.
I have no firewall enabled, and windows defender is also turned off.
When i use wireshark to analyse my signal over the network cable, i see that when my computer wants to connect, the ping requests are ok, but then i get: «TCP checksum incorrect»
Google has not provided any solution for this, disabeling the IPv4 checksum offload on my network card (which should help, according to some google results) has not had any results.
Источник
Codesys communication error logout performed
Have been trying unsuccessfully to have CoDeSys create a «Remote» Connection.
Wago 750-882 PFC
Sierra Wireless Raven 3G cell router.
Remote connections to 2 Access Points and Camera all work marvelously.
CoDeSys will not connect.
ie. The PLC is 300 miles away on a client’s network and I want to change some code.
I go to Online>Communication Parameters; give it the correct IP Address. The Port Forwarding in the remote router is correct: Port 2455>>192.168.1.25
I changed the download timeout to 100000 ms.
All I ever get is Communication Error, #0, Logout Performed.
OK, fair enough, then I try to change the Gateway. All I ever get is » No Gateway with that address found»
Can anyone elaborate on what the setting for «Gateway» should be?
Thank you in advance.
[quote=»Dutch»] Have been trying unsuccessfully to have CoDeSys create a «Remote» Connection.
Wago 750-882 PFC
Sierra Wireless Raven 3G cell router.
Remote connections to 2 Access Points and Camera all work marvelously.
CoDeSys will not connect.
ie. The PLC is 300 miles away on a client’s network and I want to change some code.
I go to Online>Communication Parameters; give it the correct IP Address. The Port Forwarding in the remote router is correct: Port 2455>>192.168.1.25
I changed the download timeout to 100000 ms.
All I ever get is Communication Error, #0, Logout Performed.
OK, fair enough, then I try to change the Gateway. All I ever get is » No Gateway with that address found»
Can anyone elaborate on what the setting for «Gateway» should be?
Thank you in advance.
Gateway have to be «Local», then in «Communication Parameters» -> «New» choose «TCP/IP» -> OK. Then you have to enter IP in «address» field (real IP of remote router WAN/Internet port) or hostname (in case of e.g. dyndns usage), port . I think you know what else
I have no problems connecting to V23 devices through Digi cell modems over 3G. I set my timeouts for 20000 msec. You seem to be doing the right things. First off can you ping the device? If you can great but what about the port forwarding? I use port forwarding. It looks to me that via the gateway you are trying to connect to CellIP address which should be your Public Static? Ip address of the modem or you got over DHCP. The port you are trying to connect to the PLC is on 1201. So internally to your modem you have to map CellIP address:1201 to PLC address:1201. I think 1201 is the default?
Try changing your port forwarding to CellIP:1201 -> forwarded to LocalIP:1201. I bet it works.
OR port forwarding to CellIP:2455 -> forwarded to LocalIP:1200. I bet it works.
You set 2455 on the PLC as something? I think CoDeSys has a port number which I thought was like 1200. In other words like web pages are port 80 etc.. CoDeSys is attempting to connect to the IP address on the CoDeSys port which should be the default when you add a TCP/IP device in the communications list.
I would like some help on this topic please.
The PLC is using V2.3 and has an Ethernet card.
The Machine is running and I can get online by plugging in directly to the router and also over wireless, by setting my IP in the same subnet range i.e. 192.168.1.XX where the PLC is 192.168.1.12
The router has Lan, wireless and SIM capabilities.
I have installed a fixed IP sim card.
I can also get online to the router (for settings) over the internet by inputting the SIM fixed IP in the address bar. 178.XXX.XXX.XXX
I am not sure of what settings to change (if any) on the PLC/Sycon setup and also the router to be able to get online.
Also. Is it normal that I would not be able to ping my SIM IP even though I can get online to it.
The PC I am using for testing has Norton running.
Any information I can find on this topic is regarding gaming or uses a PC at the remote location.
All I want to do is leave this router on site and be able to access it over the internet.
I don’t think this is impossible, I am just lacking in a bit of knowledge.
Источник
Communication Error (#0): Logout Performed
ivanset
Новичок
Присоединился: 20 Апрель 2006
Категория: Ukraine
Online Status: Offline
Публикации: 25 Свойства публикации
Ответить, цитируя автора —
Ответ
Тема сообщения: Communication Error (#0): Logout Performed
Опубликовано: 12 Декабрь 2006 17:15
Доброго всем дня!
Столкнулся со следующей проблемой во время работы с контроллером ВАГО 750-842, в КоДеСис после выполнения команды Логин периодически появляется ошибка «Communication Error (#0): Logout Performed». С чем это связано? И как с этим бороться?
За ранее спасибо.
_IP_
Действительный член
Присоединился: 29 Январь 2004
Категория: Russian Federation
Online Status: Offline
Публикации: 293 Свойства публикации
Ответить, цитируя автора —
Ответ
Опубликовано: 13 Декабрь 2006 14:59
Т.е. некоторое время работает, затем обрывается?
1) Вероятнее всего дефект в канале связи с контроллером. Возможно, не совсем точно настроены параметры (например, число стоп бит для RS232) либо проблемы в кабеле, сильные помехи… Можно посмотреть детальнее. В свойствах Gateway сервера (щелкните по его иконке правой кнопкой мышки) включить протоколирование канала связи в файл (logging). По протоколу будет видна оценка качества линии и на каких сервисах рвется связь.
2) Если связь рвется только после запуска программы (Run), а в режиме Стоп работает, то проблема в самой программе, типа циклы бесконечные или зверски длинные и т.д. Пока сторожевой таймер сработает, происходит разрыв связи по таймауту.
Источник
-
I was trouble in last two days with this codesys login problem…i have attached reference picture.. can anyone help me to how to fix this error
-
Are you in simulation mode or is there a PLC connected to your laptop via USB? If the latter is true, go to Device Manager > Ports and check at which COM port the PLC is connected. Once you’ve determined the COM port go to Codesys > Online > Communication parameters. You can change the COM port by double clicking it. Good luck!
https://imgur.com/zqSbdBl
Log in to post a comment.
|
#1 |
Member
Join Date: Feb 2015 Location: British Columbia Posts: 14 |
Serial Communication Issue Between CoDeSys and PLC, with log Hi everyone, I’m trying to go online with an IFM PLC over a serial connection, using CoDeSys. Things were working fine for a while; I managed to upload a program to the PLC, and it is currently running on the PLC. However, I am now no longer able to connect to it over serial. I repeatedly get Communication Error #0. I’ve tried using a different laptop, I’ve triple-checked all connections, I’ve switched comm ports and baud rates and am still receiving the error. I also used a line monitor to observe the serial connection, and observed that the received transmissions from the PLC appear strange. See the image below for details. Any help is greatly appreciated! Thanks |
|
|
|
#2 |
Member
Join Date: Feb 2005 Posts: 226 |
If you not already have it then download the «Downloader» software from the IFM support site. Use the «Downloader» software to try to connect. This software can scan at different baudrates and identify the unit. |
|
|
|
#3 |
Member
Join Date: Feb 2015 Location: British Columbia Posts: 14 |
Thanks MrQ. I tried using the IFM Download program, and it also couldn’t connect at any baud rate or protocol. I also tried a different serial cable, and a different PLC. Same problem. At this point, it must be an issue with my wiring. I’m going to try rewiring everything from scratch and retry. Meanwhile, if anyone has any ideas from that log, please let me know! Thanks |
|
|
|
#4 |
Member
Join Date: Mar 2013 Location: Rrrussia Posts: 4 |
From my experience of playing around with the CoDeSys 2.x protocol to make my own PLC command shell, I can tell you the RX data is garbage and after several attempts CoDeSys stops trying to connect. Quote: I’ve tried using a different laptop, I’ve triple-checked all connections, I’ve switched comm ports and baud rates and am still receiving the error. Were you using the same «Keyspan USB serial adapter»? It might have caused the problem. You should try some other device. |
|
|
|
#5 |
Member
Join Date: Sep 2002 Location: duketown Posts: 2,711 |
i see 57600 and 115000 In the report.
__________________ |
|
|
|
#6 |
Member
Join Date: Feb 2015 Location: British Columbia Posts: 14 |
I ended up never resolving this problem, and instead wired in USB. USB > Serial; communications are now reliable and fast. |
|
|
|
#7 |
Lifetime Supporting Member + Moderator
Join Date: Apr 2002 Location: Seattle, WA Posts: 16,882 |
Any time I’ve seen replies from the controller that were mostly 0xFF, it meant the controller was transmitting at a slower serial data rate than I expected. That matches shooter’s note that both 57600 and 115200 data rates appear in the configuration log of the USB converter. Glad you got it sorted out ! |
|
|
|
#8 |
Member
Join Date: Oct 2016 Location: banglore Posts: 1 |
iam facing a problem like «communication error (#0):logout performe»in codesys |
|
|
0 / 0 / 0 Регистрация: 14.05.2015 Сообщений: 7 |
|
1 |
|
14.05.2015, 22:11. Показов 10807. Ответов 10
Добрый день.
__________________
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
14.05.2015, 22:11 |
Ответы с готовыми решениями: Внутреняя ошибка связи или нет связи с удалённым сервером
Ошибка связи. Ошибка связи 10 |
91 / 86 / 12 Регистрация: 08.08.2013 Сообщений: 667 |
|
14.05.2015, 23:01 |
2 |
На вкладке «онлайн» галочка «Режим эмуляции» стоит?
0 |
0 / 0 / 0 Регистрация: 14.05.2015 Сообщений: 7 |
|
14.05.2015, 23:31 [ТС] |
3 |
Спасибо, заработало!! Добавлено через 13 минут
0 |
0 / 0 / 0 Регистрация: 14.05.2015 Сообщений: 7 |
|
14.05.2015, 23:59 [ТС] |
4 |
Или просто вход А = выход В Миниатюры
0 |
Почетный модератор 28037 / 15768 / 981 Регистрация: 15.09.2009 Сообщений: 67,753 Записей в блоге: 78 |
|
15.05.2015, 08:29 |
5 |
онлайн — логин
0 |
0 / 0 / 0 Регистрация: 14.05.2015 Сообщений: 7 |
|
15.05.2015, 08:48 [ТС] |
6 |
Совершенно верно, уважаемый. Но как увидеть изменение значений выходов?
0 |
0 / 0 / 0 Регистрация: 14.05.2015 Сообщений: 7 |
|
15.05.2015, 08:55 [ТС] |
7 |
Вот Миниатюры
0 |
0 / 0 / 0 Регистрация: 14.05.2015 Сообщений: 7 |
|
15.05.2015, 08:56 [ТС] |
8 |
Вход А изменяю, выход В не меняется…
0 |
Почетный модератор 28037 / 15768 / 981 Регистрация: 15.09.2009 Сообщений: 67,753 Записей в блоге: 78 |
|
15.05.2015, 08:57 |
9 |
не нужно. двойной щелчок — ctrl+F7
1 |
0 / 0 / 0 Регистрация: 14.05.2015 Сообщений: 7 |
|
15.05.2015, 09:20 [ТС] |
10 |
O my god, заработалааа! Спасибо! Добавлено через 12 минут
0 |
91 / 86 / 12 Регистрация: 08.08.2013 Сообщений: 667 |
|
15.05.2015, 10:06 |
11 |
сверху, там где объявляются переменные типа ton1:ton;
0 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
15.05.2015, 10:06 |
Помогаю со студенческими работами здесь CodeSYs v 2.3.9.43 Codesys ошибка в связи с базой WAIT на CODESYS 2.3 Искать еще темы с ответами Или воспользуйтесь поиском по форуму: 11 |
Modified on: Tue, 24 Apr, 2018 at 4:23 PM
Set the «LoginType» setting properly (usually STW FF CAN).
Make sure that the baudrate in PLC Config > CAN# > Module parameters is the same as the baudrate in online > Communication Parameters. The Communication Parameters baudrate determines the rate the PC will try to use to connect to the Bus. Also the NodeID of the controller (found in the controller «base parameters» tab) must be set properly in the Communication Parameters NodeID field.
Also, is the correct CommDLLPath selected in Online -> Communication Parameters? Ex: «C:Program FilesSTWCoDeSys V2.3 TSPCANDlls stwpeak2.dll» or «C:WINDOWSSystem32stwpeak2.dll».
Are other unnecessary programs using the CAN bus? This can sometimes interfere with the login process of Codesys. Use the PCANStat program to see if other programs are on the bus, and if so you can disconnect them by right clicking and selecting «kill client».
Is your CAN bus terminated? A 60 ohm resistor placed across CANH and CANL at one end is all that is necessary for testing, but for a vehicle application there should be 2 120 ohm resistors on the bus, one at each end.
Here is an example of using the second CAN bus (CAN1) on the ESX as a login bus. Note module parameters use a naming convention of CAN1 and CAN2, while the PLC configuration tree lists CAN0 and CAN1.
Did you find it helpful?
Yes
No
Send feedback
Sorry we couldn’t be helpful. Help us improve this article with your feedback.