 | |
Предыдущие результаты
Добрый день. Не могу заставить работать корзину PLC5 (1771-A4B) от ContrloLogix L61 через модуль 1756-DHRIO/E и адаптер 1771-ASB/E. В корзине PLC5 установлены 32-разрядные дискретные модули 1771-IBN и 1771-OBN и аналоговые 1771-OFE. В документации вычитал, что 1756-DHRIO/E может работать с такими, но на практике не получается даже зажечь индикаторы на адаптере ASB. Подскажите, пожалуйста, пути решения проблемы (лучше с примерами).
|
[quote:b4f163494c="oldDad"]Можно каждый час запускать инкремент тэга счетчика времени на 1 час с помощью Derived Tags. Или каждые 5 минут на 5 минут :) В ноль часов этот тэг обнулять.[/quote:b4f163494c]"Это несеръезно"(с) "Операция"Ы". :D
Для красот ему стоит освоить [b:b4f163494c]Events [/b:b4f163494c]и системные теги:
[URL=http://piccy.info/view3/6646901/62e28a9110200c4b1ab70fa7900d4493/orig/][img:b4f163494c]http://i.piccy.info/i9/5f6dafe7886216fe88961d2518a5e1c3/1404394377/75812/769993/T_E_800.jpg[/img:b4f163494c][/URL][URL=http://i.piccy.info/a3c/2014-07-03-13-32/i9-6646901/731x584-r][img:b4f163494c]http://i.piccy.info/a3/2014-07-03-13-32/i9-6646901/731x584-r/i.gif[/img:b4f163494c][/URL]
|
[quote:823cbde4d9="mp3corp"]Да, Cur и Acc оба Float, про перенасыщение немного не понял. Какие проблемы могут возникнуть?[/quote:823cbde4d9][b:823cbde4d9]
Не "перенасыщение", а насыщение.
Cur [/b:823cbde4d9]может быть [i:823cbde4d9]машинным нулем[/i:823cbde4d9] для [b:823cbde4d9]Acc[/b:823cbde4d9].
Сделай простую программу: [code:1:823cbde4d9]Acc = Acc + 1.0[/code:1:823cbde4d9]
Посмотри тренд для [b:823cbde4d9]Acc [/b:823cbde4d9]- все поймешь сам.
[quote:823cbde4d9="KB ID 9878 The IEEE Single Precision Floating Point standard affects totalization applications and compute or math errors occur when adding ..."]The IEEE Single Precision Floating Point standard requires the exponents in the two operands to be the same. Since the fractional component is only 23 bits, as the exponent gets larger, the fractional component approaches zero.
The effect of this can be easily seen when adding 1 to a number over a period of time.
When the sum is in the 16 million range, the number 1 becomes 0 because the exponent is so large, a "1" is insignificant, and gets shifted out of the equation. The result is that a 0 is added instead of a 1.
This is a limitation of the Single Precision Floating Point Math Standard. As an example, when adding 1 to a number, you will see a zero added at 1.677722e+007.[/quote:823cbde4d9]
Для [b:823cbde4d9]Logix [/b:823cbde4d9]используй команду [b:823cbde4d9]TOT [/b:823cbde4d9]в [b:823cbde4d9]FBD[/b:823cbde4d9].
[quote:823cbde4d9="mp3corp"]Блок ADD, не мной написан я его брал из стандартной палитры компонентов.[/quote:823cbde4d9]ADD - команда, обнуляться должно (если ACC не используется для [b:823cbde4d9]JSR[/b:823cbde4d9] как вход и выход). Из-за слова [i:823cbde4d9]блок [/i:823cbde4d9]я подумал что, этот код применяется в [b:823cbde4d9]AOI[/b:823cbde4d9], там будет сложнее, но тоже можно
|
[quote:f8fe711249="Matiks"]Может быть, что для подключения Micrologix 1200 и PanelView 300 Micro используются разные кабели? кабель использую самодельный: с одной стороны стандартный-com, с другой 8-Pin mini Din. Распайку взял из документации на Micrologix 1200.[/quote:f8fe711249]Еще поищи распайку кабеля для PV. Точно знаю, что для PV и контроллеров с DB-9 используются разные кабели: прямой и нульмодемный соответственно.
С Builder32 идет утилита для связи (что-то [b:f8fe711249]Transfer[/b:f8fe711249]), можно запускать из PB32, может сама через порт работать и если не ошибаюсь через RSLinx.
|
[quote:cc8fe91cfc="nar"]... Кабель целый... В чем может быть проблема?[/quote:cc8fe91cfc]Полярность, терминатор...
DH+ на [b:cc8fe91cfc]не известно каком[/b:cc8fe91cfc] кабеле около 20-ти метров, без терминаторов, 2 компьютера и 2 PLC-5 - [i:cc8fe91cfc]пробивал[/i:cc8fe91cfc].
|
Перенести VBA один в один не получится, т.к. сильно отличается как системная концепция, так и объектная модель.
[quote:9a5cc6a15a][b:9a5cc6a15a]VBA and the FactoryTalk View Object Model [/b:9a5cc6a15a]
Microsoft Visual Basic for Applications (VBA) is an integral part of both RSView32 and FactoryTalk View Site Edition. However, the way in which VBA is implemented, and the types of object models exposed, are signifi cantly different between the two products. Because of these differences, RSView32 VBA code does not migrate to FactoryTalk View SE, although VBA code that does not use the RSView32 object model can be copied and reused in FactoryTalk View SE.
RSView32 has a server-side object model. VBA code triggers actions that run on the server, and not on individual clients. The RSView32 object model supports creating, deleting, and modifying HMI tags, but does not offer any objects, properties, methods, or events for manipulating
graphic displays.
FactoryTalk View Site Edition uses a very different client-side object model. The purpose of the FactoryTalk View SE object model is to provide fl exible access to graphic display objects and to
make it easy to customize and manipulate graphic displays on individual client computers. VBA code, attached to an associated graphic display, triggers actions that run on the client computer and not on the HMI server. The FactoryTalk View SE object model supports reading and writing values from both directly referenced tags and HMI tags, but does not support creating, deleting, or modifying tags.
When a graphic display opens on an FactoryTalk View SE client computer, the VBA code executes independently on that client. For example, suppose the same graphic display is opened on two different client computers at the same time. When an operator on the first computer clicks a button on the display, the action causes the VBA code to run. The same display, open on another client computer, does not execute the VBA code until an event on that client triggers it.
Use VBA code to customize the behavior of graphic displays on individual client computers. To allow for independent, local user interaction on each client, replace memory tags and event expressions used in RSView32 graphic displays with VBA code in FactoryTalk View SE displays.
See the following link:
• 51770 - Sample VBA: Exercise in migrating an RSView32 application with VBA to FactoryTalk View SE.[/quote:9a5cc6a15a]
ftalk-qr004_-en-p.pdf
|
Такие устройства имеются у, например, Phoenix Contact:
[url=http://eshop.phoenixcontact.pt/phoenix/customerNavigation.do?action=selectlanguage]2811284 MACX MCR-UI-UI Configurable 3-way isolating amplifier with safe electrical isolation, 24 V, power bridging. DIP switches on the front, over 1600 signal conversions can be set. Order configuration, screw connection, SIL.[/url]
Берите из ControlLogix обычный стандартный аналоговый выходной сигнал, подавайте на такой изолирующий усилитель, и он промасштабирует сигнал в нужный диапазон:
|
Файл запуска панели управления выглядит так:
"C:\Program Files\Rockwell Software\RSView\rsvrt32.exe" "C:\Documents and Settings\COMPACT\Desktop\Carosello Pokrov 05 FEBB\Pokrov.rsv" /r
Внутри папки "Carosello Pokrov 05 FEBB" лежит файл 19022011pokrov.rss(расширения отличается)
Хотелось бы понять такой момент: Нужно ли заливать(прошивать) этим файлом сам контроллер или он автоматически заливается(прошивается) при запуске панели(как абзацем выше)?
|
[quote:7c3fe78e6a]Вопрос могу ли я эту программу установить на L33ER изменяя его в RSLogix5000 Lite 9324-RLD250ENE. [/quote:7c3fe78e6a] Я же написал Вам несколько раз: Для L33ER нужна версия 20 или 21.
Для того, чтобы ответить на вопрос, можно ли адаптировать имеюбщуюся у Вас программу от 1769-L35E для контроллера 1769-L33ER, нужно проанализировать конфигурацию одного контроллера, конфигурацию другого контроллера, и потом с помощью RSLogix5000 версии не ниже v20 изменить исходную программу и загрузить её в 1769-L33ER.
Это можно сделать самостоятельно, или же можно нанять подрядчика. В любом случае, нужно платить деньги - либо за обновление 9324-RLD250ENE до версии v21, либо за услуги подрядчику.
[quote:7c3fe78e6a]И нужна ли мне программа RSNetWorx for EtherNet/IP для соединения сенсорного панеля по протоколу ModbusTCP. [/quote:7c3fe78e6a] Нет.
[quote:7c3fe78e6a]Может с Вами как то можно сотрудничать. Правда мы далеко в Татарии. [/quote:7c3fe78e6a]
Наши региональные представители находятся не так уж далеко от вас.
|
Альтернативно можно создать в контроллере сегмент программы, который бы выполнял калибрацию и управлялся определенными тэгами.
Эти тэги можно привязать к HMI и создать в FTVIew соответствующий экран калибрации, обеспечивающий оператору удобный интерфейс для этой процедуры.
Примеры такой программы для v15 и v16 [url=http://vdt-solutions.de/files/calibration_ladder_sample_kb39616.rar]здесь[/url].
Комментарии к примерам:
[quote:13869601b1]Basically, the program has toggle bits to walk the module through the different calibration states: Start, Lo Ref, Hi Ref, Abort & Reset (if needed). Typically, the toggle bits would be interfaced to an HMI input to the initiate different behaviors. Toggle bits have also been added for easy setup of the Calibration Range (NormalCalRange vs. AlternateCalRange) and also for configuring all channels (Cal_All_Ch) or clearing all (ClearCal_All_Ch) & allowing the setting of individual channels. The ladder also uses the controller local time to set the Calibration Date which is stored in EEprom - There is a potential one day error during leap years from Jan. 1 thru Feb. 29 but the impact of this has been determined to be minor.
Currently there's a half second delay between initiating the reference & the calibration message being sent. This should provide some setup stability time if you're automatically generating the calibration signal via ladder & could be adjusted by changing the timer length.
The Calibration error bits are parsed out into a more user-friendly format than the 2 bit packed response they'd ordinarily come back in.
This program can be adapted for the other analog modules (IF16/IF8, IF4FXOF2F or outputs). [/quote:13869601b1]
|
Предыдущие результаты
Ещё результаты |
|
| |
|