 | |
Предыдущие результаты
Because VBA in the project is single threaded, if you are using any other VBA (such as for navigation or Display_AnimationStart), the above "To play the file WAV more than one time..." will not work. Here is a better way:
1. Create 8 HMI Digital Device Tags (not memory tags) called "SevTrig1" to "SevTrig8".
2. Create 8 HMI String Memory Tags called "SevSound1" to "SevSound8" (retentive) and set initial value to your your wav files including full path (Ex: C:\AlmSound\Sound.wav)
3. In the Alarm Setup / Severities tab: Place "SevTrig#" tags in External Bell for Severity 1 thru 8.
4. Create an HMI Screen (that will be hidden with /ZA).
On this screen create 8 rows (1 per severity):
Severity 1 = # sssssssssssssssssssssssssssssssssssssss
where:
* "Severity 1 =" is text with Color Animation using tag "SevTrig1"
* "#" is a NumericDisplay named "SeverityInd1" (ExposeToVBA = "VBA Control") with the below
expression (step 5) and VBA code (step 6).
* "ssss..." is StringDisplay named "SevSndFile1" (ExposeToVBA = "Type Info Extension")
with Expression: "SevSound1"
Duplicate this line for 2 through 8.
5. In the NumericDisplay Properties / Expression, place the following expression (adjust for 2-7):
* SeverityInd1 Expression:
IF system\AlarmSummaryItemsUnacked == 0 THEN 0
ELSE IF SevTrig1 AND interval( "5 Sec" ) THEN 1
ELSE 0
* SeverityInd8 Expression:
IF system\AlarmSummaryItemsUnacked == 0 THEN 0
ELSE IF SevTrig1 THEN 0
ELSE IF SevTrig2 THEN 0
ELSE IF SevTrig3 THEN 0
ELSE IF SevTrig4 THEN 0
ELSE IF SevTrig5 THEN 0
ELSE IF SevTrig6 THEN 0
ELSE IF SevTrig7 THEN 0
ELSE IF SevTrig8 AND interval( "5 Sec" ) THEN 1
ELSE 0
6. For NumericDisplay "SeverityInd1" thru "SeverityInd8", place the following in VBA:
Sub SeverityInd1_Change()
On Error Goto Exit_Err
If SeverityInd1.Value = 1 Then
DisplayClient.Application.ExecuteCommand "PlayWave " & ThisDisplay.SevSndFile1.Value
End if
Exit_Err:
End Sub
By following this pattern, the individual playwave above will then fire once every five seconds only for the most important severity active. That will allow other VBA code to run during page changes, etc.
In my system this hidden page is called "AlmHornCtrl". I also have a page "AlmHornSelect" that allows adjustment of the sound files used during runtime (use either VBA or StringInput).
Ric Walker, Automation & Electronics, Inc. , Casper, WY
|
Может быть, эти сообраэжения помогут понять причину:
[quote:fcf93e2f17]FAQ #1: what causes a RED battery LED on Softlogix5800
It will help to start with a little background. Under the hood,
SoftLogix uses the same software that RSLogix 5000 does to
maintain changes made by another workstation. A heartbeat thread
in RSLogix 5000 periodically asks the controller if any changes
have been logged to the change log. If so, it reads those
changes and applies them to the current image.
Likewise, in SoftLogix, there is a separate process, the
SL5KServer, which has the same thread. The engine communications
with its server via IPC and the server communicates to the engine
using normal communication protocols via RSLinx.
Following download, the SL5KServer opens the image sent to the
engine during download and attempts to go online. Similarly,
following a power cycle (or pull/redrop), the server opens an
ACD, downloads it to the engine, and automatically goes online as
part of a normal download. Either way, once the controller has
an image to run, the SL5KServer should be online.
Every 10 seconds, a thread in the engine asks the server if it is
still online. If it is not, then the engine turns the battery
LED ON (RED) and sends a command to the server to ask it to try
to go online. If the battery LED was not already ON, it also
logs a battery fault. If communications are just busy, the LED
may go RED and then when the comm thread has more time, it may
eventually turn green again. This thread checks every 10 seconds
even if persistent storage save is disabled, since a save will
still occur at powerdown.
Every time interval, the thread referenced above in the engine
will also ask the SL5KServer to perform a save.
Following this, it should be clear that anything that would cause
RSLogix 5000 to go offline will also cause the SL5KServer to go
offline (and hence turn the battery LED RED). A few
possibilities:
Comm thread in engine not responding for 32 seconds.
Any RSLinx communication problem (including a crash).
Loss of communications with the engine.
Loss of correlation.
In addition to these possibilities, the following cases will also
cause a RED LED:
Fatal exception in SL5KServer (including RSLogix 5000
support DLLs).
Any serious error that occurs in the save of the archive:
hard disk errors, insufficient disk space, etc.[/quote:fcf93e2f17]
|
Добрый день! Возникла следующая проблема:
Trend'ы FT Historian в реальном времени (от 1 с и более) показывают изменения. Но как только я закрываю Trend и открываю его снова, то нет никаких изменений, просто ровная полоса.
Возникла мысль, что данные не сохраняются по причине заполнения архива. не проблема - решил создать новый архив. А вот тут и полезли ошибки. Можете дать их описание и что мне нужно делать дальше?
Creating 4300 MB (размер был выбран случайным образом) archive D:\Historian\piarch.002 on server HIST (SDKCreateArchiveRPC)
Error -2147219670 creating archive D:\Historian\piarch.002 on server HIST:RPC Invoke failed[-11069] Archive creation flag already set: . (SDKArchiveRPC)
Error -2147219670 creating archive D:\Historian\piarch.002 on server HIST:RPC Invoke failed[-11069] Archive creation flag already set: . (SDKArchiveRPC) (CreateNewArchive)
В итоге никакого нового архива создано не было. Что мне делать дальше? Помогите, пожалуйста!
|
[quote:ee37d59a7f="SergeyM"]Я бы с удовольствием использовал Logix CPU Security Tool, но при попытке добавить процессор с прошивкой 20 он выдает Communication Error.[/quote:ee37d59a7f]В [url=https://rockwellautomation.custhelp.com/]KB[/url] искал?
|
Я бы с удовольствием использовал Logix CPU Security Tool, но при попытке добавить процессор с прошивкой 20 он выдает Communication Error.
|
Установил патчи. Validate теперь при проверке рисует зеленую галочку.
Стало еще ХУЖЕ работать: теперь после перезапуска ПЭВМ в 30% случаев сразу не принимает ввод в полях ввода. В ActivityLog следующие записи:
download
Not enough memory to carry out the operation.
Error writing to tag 'HARD_ON1\Ro_time'.
В окне 30 полей ввода с галочкой Continuously Update. Теги типа float, привязанные через OPC. Контроллер 1769-L32E.
Без перезапуска проекта отключил Node в RSView - проблема осталась. Следовательно причина в RSView32.
У меня работает множество проектов на WinXP, RSView 6.40-7.20. Никогда подобных проблем не было. Тут заказчик настоял на Win7.
Восстановил старые файлы, которые сохранил до патча. Теперь работает стабильнее, но проблема осталась.
У меня одного что-ли такое несчастье?
|
Заплаток еще никаких не устанавливали.
RSView6.40 так же работал отлично без заплаток, поэтому понадеялись на надежность ПО.
Будем устанавливать. По описанию последняя заплатка должна помочь, хотя у нас проект не совсем "crash" (только перестает работать ручной ввод).
Повторюсь: у нас ситуация точно как в Knowledgebase id 21374, только RSView32 7.60.
Problem:
When tag writes are performed on OPC tags, after several hundred writes, the writes will always fail. The time interval between writing to OPC tags does not make any difference. The following error is logged in the activity log:
"Not enough memory to carry out the operation. Error writing to tag 'Tag1'."
Direct driver and DDE tags are not affected.
|
В RSLogic при попытке прочитать вкладку Module info в Properties , вылазиет окошко Module reported general error status is (16#%02x). Подскажите что это за ошибка.
|
Установили MBPoll, попробовали подключиться к приводу ни чего не вышло. При подключении к частотнику все время пишет Timeout error. Тогда попробовали подключиться к другим устройствам по сети ModBus все нормально. Может есть какие-то подводные камни при настройке преобразователя, которые мы не предусмотрели?
|
Установили MBPoll, попробовали подключиться к приводу ни чего не вышло. При подключении к частотнику все время пишет Timeout error. Тогда попробовали подключиться к другим устройствам по сети ModBus все нормально. Может есть какие-то подводные камни при настройке преобразователя, которые мы не предусмотрели?
|
Предыдущие результаты
Ещё результаты |
|
| |
|