Вход на форум 
В начало e-Mail

Форум

Ресурсы Rockwell

Product Directory

Essential Components

Literature Library

Knowledge Base

Electronic News&Magazines

Блог

Encompass Program

Product Certification

  


Предыдущие результаты



Предыдущие результаты



Предыдущие результаты

 [quote:b2eac263ed]Принцип интересен как прочитать значения из них, например, создается тег типа Analog, в адресе ему пишется что-то, затем бросаем этот тег на форму и наслаждаемся... В таком духе. [/quote:b2eac263ed] Именно так. Какие могут быть проблемы? Я пробовал для: @Mode и @Status, эти теги String со значеними указанными в Help. [quote:b2eac263ed]Или это надо писать на VBA. Если делали, то подскажите как.[/quote:b2eac263ed] Накакого VBA. Мое мнение - VBA нужно использовать только когда штатных средств недостаточно.

 [color=blue:76382ce10c]Еще RSLinx имеет "DDE/OPC predefined items", некоторые из них: - @Mode returns the current mode of the processor as a string (Run, Program, Remote Run, or Remote Program). - @Status returns the current status of the processor as a string (Ok or Faulted). - @StatusNumber returns the current status of the processor as a number. - @IsPresent allows you to check if your ControlLogix processor is available prior to performing reads or writes. [/color:76382ce10c] А можно поподробней насчет механизма использования этих item-ов из RSView32? Никогда этого не использовал, а штука может быть полезной в случае ее реальной возможности применения. С уважением, Vitaliy D. Burtsev

 [quote:99c51288ed]А в RSView если связи нету то вид объектов не изменяется...[/quote:99c51288ed] Верно только для случая, когда к этому объекту не привязан тег устройства. [quote:99c51288ed]Для диагностики можно, например, назначить какие-нибудь действия (Event), основываясь на бите коммуникаций system\ComErrorValue1 или system\ComErrorValueOPC [/quote:99c51288ed] Не удачный совет, контроллеров может быть более одного... В RSView32 есть замечательная функция - "comm_err(TagName)". Еще RSLinx имеет "DDE/OPC predefined items", некоторые из них: [list:99c51288ed] - @Mode returns the current mode of the processor as a string (Run, Program, Remote Run, or Remote Program). - @Status returns the current status of the processor as a string (Ok or Faulted). - @StatusNumber returns the current status of the processor as a number. - @IsPresent allows you to check if your ControlLogix processor is available prior to performing reads or writes. [/list:u:99c51288ed]

 [color=blue:68320d3275]Есть системный тег system\CommStatusValue1. Но как то не понятно как отслеижавть по нему состояние связи сконтроллером. Например если контроллер отключен и связи нет что будет в этом теге? Еще бы хотелось узнать. Вот в WinCC при отсутствие связи все анимированые объкты заштриховываются (нет связи). А в RSView если связи нету то вид объектов не изменяется, как решить такую проблему?[/color:68320d3275] Мы в своей работе реализовали алгоритм проверки наличия связи следующим образом: завели в контроллере переменную счетчик (например 0..1000 с зацикливанием), а в RSView реализовали проверку изменения этого тега каждые 5 секунд. При отсутствии изменений (нет связи или PLC находится не в RUNе), вываливаем сообщение, что связи нет, данные не актульны. А дальше при наступлении такого события, что нет связи, с объектами и экранами можно делать что угодно: прятать их, менять цвет, закрывать другими объектами и т.д. С уважением, Vitaliy D. Burtsev

 Для контроля связи можно использовать следующие штатные средства RSView: [quote:8971ebbe40][b:8971ebbe40]Monitoring communications[/b:8971ebbe40] Use any of the following methods to monitor communications: - Activities—In the Activity Log Setup editor, ensure communication errors, warnings, and remarks are enabled and are set up to log to the log file and activity bar. At runtime, information appears in the log file and activity bar, indicating any problems. - Communication status—Ensure communication status is turned on, otherwise communication errors will not be logged to the activity log file or activity bar (even if they have been configured to do so in the Activity Log Setup editor). By default, communication status is turned off until you run the project. To turn communication status on, use the [b:8971ebbe40]ComStatusOn[/b:8971ebbe40] command. - Tag monitor—Use the tag monitor to check the communication status for a device tag. The states are: - Disabled if the node has been disabled in the Node editor or disabled using the NodeDisable command - Error if RSView32 has tried to acquire a value but could not because of some kind of communication error, such as a node not being available or a DDE server not running - Stale if the tag value has been acquired before but does not have an updated value - Uninitialized if the value has never been acquired - Valid if RSView32 has a valid value for the tag - None if there is a problem with the tag definition such as it is not a valid tag type or if the tag database has been accessed with a third–party tool such as Microsoft® Access. If the underlying tag type is valid, editing and saving the tag and then redisplaying the tag monitor will fix the problem. System\com tags—Use the system\com tags to receive a more detailed error message. If the tag monitor reports an error, move to an empty cell in the tag monitor, type system\com* and, when the dialog box appears, click Select All. For a complete list of system\com tags, see Appendix B, System tags. [/quote:8971ebbe40] Для диагностики можно, например, назначить какие-нибудь действия (Event), основываясь на бите коммуникаций system\ComErrorValue1 или system\ComErrorValueOPC и т.п. . [quote:8971ebbe40] Вот в WinCC при отсутствие связи все анимированые объкты заштриховываются (нет связи). А в RSView если связи нету то вид объектов не изменяется, как решить такую проблему?[/quote:8971ebbe40] В RSView Вам предоставляется возможность не просто заштриховать объект, а решить самостоятельно, что с ним делать, и вообще делать ли что-нибудь. Вы можете "надеть" на объект анимацию мигания или изменения цвета, или изменения штриховки на осовании выражения, которое Вы описываете в поле Expression. Хотите заштриховать - штрихуйте по тому или иному биту, нет проблем. А в WinCC Вы имеете такую же свободу действий?

 Есть системный тег system\CommStatusValue1. Но как то не понятно как отслеижавть по нему состояние связи сконтроллером. Например если контроллер отключен и связи нет что будет в этом теге? Еще бы хотелось узнать. Вот в WinCC при отсутствие связи все анимированые объкты заштриховываются (нет связи). А в RSView если связи нету то вид объектов не изменяется, как решить такую проблему?

 Здравствуйте! Да, это так. [quote:fa2d76d651] [b:fa2d76d651]E74966796 - Failed to load Data Server 'RSLinxEnterprise.OPCServer.1' on machine <PCName> (result = 0xc8650021)[/b:fa2d76d651] Problem Attempt to configure RSLinx Enterprise generates the following error : [b:fa2d76d651]Failed to load Data Server 'RSLinxEnterprise.OPCServer.1' on machine <PCName> (result = 0xc8650021)[/b:fa2d76d651] In Factory Talk Diagnostics, another error appears: [b:fa2d76d651]RSLinx Enterprise FactoryTalk server RNA://$Global/Test/RSLinx Enterprise was not created on <PCNAME> because no runtime license was found.[/b:fa2d76d651] Cause No RSLinx Enterprise activation is installed. Solution Purchase a RSLinx Enterprise activation or use an OPC server (possibly RSLinx) instead of RSLinx Enterprise. [/quote:fa2d76d651] Вот здесь таблица того, какие продукты поставлятся с какой активацией: [url=http://domino.automation.rockwell.com/applications%5Ckb%5CRAKB.nsf/0/C288C3F53EC0AE4F85256BA7005BBA65?OpenDocument] G7245725: List of activations that ship with RSViewSE[/url]

 [quote:e5e6fe9e47]Я где-то читал (но уже не помню), что можно, но только для связи с ПЭВМ. Так-ли это?[/quote:e5e6fe9e47] Ага. В 1756-um523_-en-p.pdf на стр. 2-12 это сказано: [quote:e5e6fe9e47]1. Use EtherNet/IP ONLY for HMIs, workstations, and messaging. In a redundant system, use an EtherNet/IP network ONLY for HMI, workstation, and message communication. DON’T use an EtherNet/IP network for: • control of I/O modules • peer interlocking (produced and consumed tags) Important: RSLogix 5000 software lets you set up and download a project that tries to use an EtherNet/IP network for I/O, produced tags, or consumed tags. Those communications don’t work however.[/quote:e5e6fe9e47]

 Уважаемый akko! По поводу п.2: похожий вопрос уже обсуждался на форуме: [url]http://vdt-automation.com.ua/modules.php?name=Forums&file=viewtopic&t=123&postdays=0&postorder=asc&start=0[/url] Посмотрите, может быть такое решение Вам тоже пригодится.

 Подскажите, пожалуйста, как в RSView32 по кнопке с командой AppStart запустить Windows-приложение ПОВЕРХ всех окон. Оно появляется СЗАДИ и выйти на него можно только по Alt+Tab. Но Alt+Tab хорошо бы запрещать в Run Time. Команды типа PullForward, AppActivate - не помогают. Буду признателен за помощь.



Предыдущие результаты


Ещё результаты



Предыдущие результаты



Предыдущие результаты



Предыдущие результаты



Предыдущие результаты




  
RA & VDT GmbH


Облако тэгов
Error RSLogix ControlLogix sound FTView Control Logix MVI56-104S 1734-AENTR Altivar Add-on Instruction MVI46MCM Ethernet PLC-5 SLC-500 1757-SRM Firmware ComactLogixL32E 1756-L75 1756-RM2 Controlnet cable Promass Client Memory 1769-L32E execution minutes seconds Windows Build 00000d5c Unspecified terminate geehrter automatisch keine globalen Feh

Яндекс цитирования

Smart Solutions VDT GmbH | Friedrich-List-Allee 38, D-41844 Wegberg-Wildenrath, Germany
Tel.: +49 2432 933 57 83 | e-Mail: office@vdt-solutions.de
Все товарные знаки и торговые марки являются собственностью их владельцев.
При использовании материалов сайта ссылка на данный сайт обязательна.
Открытие страницы: 0.158 секунды