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

Форум

Ресурсы Rockwell

Product Directory

Essential Components

Literature Library

Knowledge Base

Electronic News&Magazines

Блог

Encompass Program

Product Certification

  
Smart Solutions VDT :: Просмотр темы - Строки в RSView32 и ControlLogix5k
 FAQFAQ   ПоискПоиск   ГруппыГруппы   ПрофильПрофиль   Войти и проверить личные сообщенияВойти и проверить личные сообщения   ВходВход 

Строки в RSView32 и ControlLogix5k

 
Начать новую тему   Ответить на тему    Список форумов Smart Solutions VDT -> Программные средства систем автоматизации
Предыдущая тема :: Следующая тема  
Автор Сообщение
Kondratiev
Постоянный участник
Постоянный участник


Зарегистрирован: Dec 04, 2005
Сообщения: 79
Рейтинг: +1/-0
Откуда: Мариуполь, Киев

СообщениеДобавлено: Чт 04 Сен, 2008 12:29:18    Заголовок сообщения: Строки в RSView32 и ControlLogix5k Ответить с цитатой

Есть ли опыт стыковки строк в RSView32 и SLC, из Сименса 300го вытягивал, а вот невозможность(или просто тяму пока не хватилоSmile) вытянуть строковый тег из ControlLogix стла неожиданностью.

ПОнимаю что можно обойти такую связку, но возможность связать строковый тег во Вью со строковым тегом в контроллере дала бы изящное решение.

Я понимаю, что строка в 5к это составной тип данных, и можно свои строковые типы создавать, но должен же быть способ!
У кого нить есть соображения!???
Вернуться к началу
Посмотреть профиль Отправить личное сообщение Отправить e-mail
Mr_Wasp
Эксперт
Эксперт


Зарегистрирован: Mar 14, 2006
Сообщения: 128
Рейтинг: +2/-0
Откуда: Липецк

СообщениеДобавлено: Пт 05 Сен, 2008 5:05:41    Заголовок сообщения: Ответить с цитатой

Можно полистать следующие топики:

A5550 - How to address the different data types in the ControlLogix 5550 processor
A7004 - Reading and writing string data from RSView32 to ControlLogix 55xx
A27556111 - How to manage variable length string writes from a HMI to ControlLogix
A4814 - How to configure RSView32 to communicate to a ControlLogix 5550 processor

Однако это работает для строк на английском, а вот русские строки обработать так и не удалось, к сожалению.

Vitaliy D. Burtsev
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
AlexV
Эксперт
Эксперт


Зарегистрирован: Jan 10, 2007
Сообщения: 126
Рейтинг: +6/-0
Откуда: г.Мирный, Якутия

СообщениеДобавлено: Вс 07 Сен, 2008 23:45:24    Заголовок сообщения: Ответить с цитатой

Mr_Wasp писал(а):
Можно полистать следующие топики:

A5550
A7004
A27556111
A4814


А куда вводить эти номера, чтоб найти сами документы? или это большой секрет? Embarassed
Поиск по всему сайту и по литературе (на ab.com ессно) результатов не дает Shocked
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
Mr_Wasp
Эксперт
Эксперт


Зарегистрирован: Mar 14, 2006
Сообщения: 128
Рейтинг: +2/-0
Откуда: Липецк

СообщениеДобавлено: Пн 08 Сен, 2008 5:20:48    Заголовок сообщения: Ответить с цитатой

А куда вводить эти номера, чтоб найти сами документы? или это большой секрет?
Поиск по всему сайту и по литературе (на ab.com ессно) результатов не дает


Секрета никакого нет, это есть топики Базы знаний на сайте rockwellautomation. У меня есть файлик, сохраненный из базы знаний, там все ссылочки сохранились, вот я их и предлагаю самостоятельно посмотреть.

Если вдруг вы не смогли прочитать их, скажите, я вам сюда в форум закину содержимое. Просто похоже базу знаний обновляют, чего-то уже можно не увидеть, а только получить по запросу.

Vitaliy D. Burtsev
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
AlexV
Эксперт
Эксперт


Зарегистрирован: Jan 10, 2007
Сообщения: 126
Рейтинг: +6/-0
Откуда: г.Мирный, Якутия

СообщениеДобавлено: Пн 08 Сен, 2008 6:30:03    Заголовок сообщения: Ответить с цитатой

Mr_Wasp писал(а):
Если вдруг вы не смогли прочитать их, скажите, я вам сюда в форум закину содержимое.

А7004 вообще не находит,
A27556111 находит, но не дает посмотреть (пишет Not Available At This Time)

если не затруднит, выложите пожалуйста эти два
Smile
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
Mr_Wasp
Эксперт
Эксперт


Зарегистрирован: Mar 14, 2006
Сообщения: 128
Рейтинг: +2/-0
Откуда: Липецк

СообщениеДобавлено: Пн 08 Сен, 2008 6:53:02    Заголовок сообщения: Ответить с цитатой

База знаний, возможно, уже обновилась, поэтому части топиков нет, но можно набрать поиск по фразе типа string data types и попытаться полистать.

Вот, собственно, то, что у меня есть.

Background:
When using string data in the CL55xx processor with firmware version at 7 or earlier, integer storage must be allocated. Integer storage can be allocated as an SINT, INT, or DINT array. Additionally INT array data can be referenced in PLC5 emulation mode. Version 8 of the ControlLogix firmware introduced the string datatype. When the OPC node type is used, the following errors can be generated when the wrong address syntax is used. The DDE node type does not generate any errors when improperly configured, however the string data is not written correctly either.


Requirements for the native string tag support:
RSView32 6.30 previous versions of RSView32 should work as well, but were not tested.
RSLinx 2.30
ControlLogix firmware rev 8 or higher

The following paragraphs describe how the DDE/OPC implementation works, and how string data is stored in the CL55xx processor.

String Tag Configuration:
Traditionally RSView32 is looking for a string address equivalent to A10:0 or ST10:0. When the PLC5 ST datatype was introduced, 82 characters was the maximum supported. This 82 string length limit remains in the RSView32 product today. The CL55xx string data type stores the characters in a SINT array. String data can be stored in any type of integer array, SINT, INT, DINT when working with controllers at earlier versions of the firmware. Depending on the type of integer array selected the address syntax will vary.

Even though the RSView32 tag is defined as string data, RSLinx queries the data type from the processor. To allow RSView32 and RSLinx to write string data to integer storage - add the ,SSxx (string space pad) or the ,SCxx (string C null pad) to the address line, where xx indicates the number of elements to pad. The number of elements to pad depends on how the data is stored, the following table gives some examples. If the SCxx or SSxx syntax is omitted, RSView32 will only be able to access the 1st element in the integer array, and will not represent the data as the string entered, since it is integer.

There are some issues when writing to the new string datatype from RSView32. When working with variable length strings, RSView32 does not update the length field with the new string length. The improper initialization of the string length prevents ascii functions from working properly in the controller program. This issue is currently under investigation. A potential work around is to determine the length of the string in VBA code, and then manually write to the length element of the string data type.

Тут, правда, ниже табличка! Надеюсь поймете

CL5550 Datatype Description String Address Syntax Example1 String Address Syntax Example2

String 8 bit integer array String1.Data[0],SC82 String1.Data[0],m,SC82
SINT 8 bit integer SINTArray[0],SC82 SINTArray[0],m,SC82
INT 16 bit integer INTArray[0],SC41 INTArray[0],m,SC41
DINT 32 bit integer DINTArray[0],SC20 DINTArray[0],m,SC20
PLC5 emulation 16 bit integer N7:0,SC41 N7:0,m,SC41

PLC5 emulation mode may be required to read/write string data if the CL55xx firmware is at an earlier revision 4.x.

Controller Memory:
When using the string data type, the controller stores the string as a character in a element called .Data[x], where x is the character position. With the native string data type, there doesn't appear to be anyway to reference the entire string tag as was possible with the PLC5 string. Instead the RSView tag address references the first element of the SINT array that contains the string. The ,SC82 syntax tells RSLinx to get 82 bytes of string data.

When using an integer array to store string data, the controller stores the data in the integer array as the HEX equivalent of the character. For example, if a 12 is entered into a string input field, the data is converted to the hex equivalent (in this case 3132h) and is stored the processor tag name INTArray[0]. Since INTArray[0] actually stores 2 characters, examination of the individual bytes will show the 1 (31h) is stored in the high order byte, and the 2 (32h) is stored in the low order byte.

Consider the same example writing string data to the SINTArray, if a 12 is entered into a string input field, the SINTArray[0] = 2 (32h), SINTArray[1] = 1 (32h). Applying the ,m byte swap modifier to the address line does not alter the way the string data is written to the processor, it only swaps the way the data is viewed. A future release of RSLinx will correct this byte swapping for SINT arrays.

When RSView32 is performing both the string read and write, use the syntax example1. When the CL5550 processor is storing the string data, the high and low order byte may need to be swapped, use the syntax example2 to accomplish this on the read only.

It is more efficient to write null padded strings than space padded strings, therefore use the SCxx syntax when possible.

Background:
RSView32, RSView SE and RSSql can browse tag addresses from an on-line controller using OPC. However, string tags in a ControlLogix family controller (added in firmware version Cool and bit-level addresses in a PLC-5 or SLC-500 cannot be browsed directly.

String tags are actually stored in the ControlLogix as numeric data. When the OPC browser tries to update the string tag's address field, the client correctly determines that a data type mismatch has occurred. It therefore does not allow the address field to be updated.

For digital addresses in a PLC-5 or SLC-500, RSLinx does not allow browsing to the bit level. Examples: "B3:0" can be browsed, but "B3:0/3" cannot be browsed. However, a Boolean tag in a ControlLogix processor can be browsed.

Solution:
For String addresses in a ControlLogix processor:
1. Create a DIGITAL tag (if client is RSView32 or RSView SE)
2. Browse to the string tag in the ControlLogix (example: StringTag )
3. Select the StringTag.DATA element and press OK
4. Remove the .DATA manually from the end of the item address
5. Change the tag data type to STRING.
Example of correct item address syntax: [TopicName]StringTag
Example of incorrect item address syntax: [TopicName]StringTag.DATA

Note: This syntax is tested with firmware version 10 per tech note A27556111 (see references below).

Important: In RSView32 and RSView SE - if step 5 is skipped and the tag is accepted, it will not be possible to change the tag data type. In this case it would be necessary to delete the tag and start again with step 1.

For Digital addresses in a PLC-5 or SLC-500:
1. Browse to the word level (example: B3:0 )
2. Select the word containing the desired bit and press OK
3. Add the bit delimiter manually to the end of the item address. Example of correct item address syntax: [TopicName]B3:0/2

For further reference, see the following tech notes:
A5550 - How to address the different data types in the ControlLogix 5550 processor
A7004 - Reading and writing string data from RSView32 to ControlLogix 55xx
A27556111 - How to manage variable length string writes from a HMI to ControlLogix
A4814 - How to configure RSView32 to communicate to a ControlLogix 5550 processor

Успехов.

Vitaliy D. Burtsev
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
Показать сообщения:   
Начать новую тему   Ответить на тему    Список форумов Smart Solutions VDT -> Программные средства систем автоматизации Часовой пояс: GMT + 1
Страница 1 из 1

 
Перейти:  
Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете голосовать в опросах

Powered by phpBB © 2001, 2005 phpBB Group
Яндекс цитирования

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.126 секунды
/n