<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html class="client-nojs" dir="ltr" lang="en"> <head> <meta charset="UTF-8" /> <title>Библиотеки/ÐизкоУровневыеУÑтройÑтва - OpenSCADAWiki</title> <meta content="MediaWiki 1.26.4" name="generator" /> <link href="https://www.gnu.org/copyleft/fdl.html" rel="copyright" /> <link href="../en/files/doc.css" rel="stylesheet" /></head> <body><div class="floatright"><a href="index.html"><img alt="OpenSCADA" src="../en/files/index.png" /></a></div><div id="mw_header"> <div class="mw-indicators"> </div> <h1 id="firstHeading" lang="ru">Библиотеки/ÐизкоУровневыеУÑтройÑтва</h1> </div><div class="mw-content-ltr" dir="ltr" id="mw-content-text" lang="ru"><div class="mw-pt-translate-header noprint" dir="ltr" lang="en">This page is a <span class="plainlinks"><a class="external text" href="http://oscada.org/wiki/index.php?title=Special:Translate&group=page-Libs%2FLowLevelDevices&action=page&filter=&language=ru" rel="nofollow noreferrer noopener" target="_blank">translated version</a></span> of the page <a class="external" href="http://oscada.org/wiki/Libs/LowLevelDevices" title="Libs/LowLevelDevices">Libs/LowLevelDevices</a> and the translation is 11% complete.</div><hr /><div class="mw-pt-languages" dir="ltr" lang="en"><div class="mw-pt-languages-list autonym"><a class="mw-pt-languages-ui mw-pt-progress mw-pt-progress--complete" href="../en/Libs_LowLevelDevices.html" title="Libs/LowLevelDevices (100% translated)">English</a> • ‎<span class="mw-pt-languages-selected mw-pt-progress mw-pt-progress--stub">mRussian</span> • ‎<a class="mw-pt-progress mw-pt-progress--med" href="../uk/Libs_LowLevelDevices.html" title="Бібліотеки/ÐизькоРівневіПриÑтрої (50% translated)">УкраїнÑька</a></div></div> <table class="wikitable"> <tr> <th> Ðазвание </th> <th> ВерÑÐ¸Ñ </th> <th> Ð›Ð¸Ñ†ÐµÐ½Ð·Ð¸Ñ </th> <th> ИÑточник </th> <th> Языки </th> <th> Ðвтор </th> <th> ОпиÑание </th></tr> <tr> <td> <a href="Libs_LowLevelDevices.html" title="Special:MyLanguage/Libs/LowLevelDevices">Библиотека низкоуровневых ÑенÑоров и чипов</a> </td> <td> 1.6 </td> <td> GPLv2 </td> <td> OscadaLibs.db (<a class="external text" href="http://oscada.org/svn/trunk/OpenSCADA/data/LibsDB/OscadaLibs.sql" rel="nofollow noreferrer noopener" target="_blank">SQL</a>, <a class="external" href="http://oscada.org/wiki/File:OscadaLibs.db.gz" title="File:OscadaLibs.db.gz">GZip</a>) > DAQ.tmplb_LowDevLib </td> <td> en, uk, ru </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a><br /> <font size="-2"><i>Arcadiy Kisel (2017)</i></font> </td> <td> Library of templates to provide access to device's data of the low-level buses. <ul><li> <b>Founded</b>: Jul 2016</li> <li> <b>Initially created:</b> in <a class="external text" href="http://wiki.oscada.org/HomePageEn/Using/APIFunctionLibs/LibUserPrtDevs" rel="nofollow noreferrer noopener" target="_blank">the old Wiki</a></li> <li> <b>Used by:</b> <a class="external" href="http://oscada.org/wiki/Special:MyLanguage/Sub-projects/Server" title="Special:MyLanguage/Sub-projects/Server">the smart house projects</a></li> <li> <b><a href="../en/To_do.html" title="Special:MyLanguage/Works/To do">To Do</a>:</b></li></ul> <dl><dd>- Implement templates for accessing different BLE and WiFi low-level devices like to Smart Bulbs, Plug, Switch, ... .</dd></dl> </td></tr></table> <p>Библиотека уÑтройÑтв пользовательÑких протоколов Ñоздана Ð´Ð»Ñ Ð¿Ñ€ÐµÐ´Ð¾ÑÑ‚Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð´Ð¾Ñтупа к данным уÑтройÑтв низкоуровневых шин, Ñ Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»Ð¾Ð¼ доÑтаточно проÑтым Ð´Ð»Ñ Ñ€ÐµÐ°Ð»Ð¸Ð·Ð°Ñ†Ð¸Ð¸ в <a href="Modules/UserProtocol.html" title="Special:MyLanguage/Modules/UserProtocol">модуле пользовательÑкого протокола</a> или непоÑредÑтвенно на <a href="Modules/JavaLikeCalc.html" title="Special:MyLanguage/Modules/JavaLikeCalc">внутреннем Ñзыке подобном на Java</a>. </p><p>ÐÐ°Ð·Ð²Ð°Ð½Ð¸Ñ Ñлементов и их параметров доÑтупны на Ñзыках: ÐнглийÑкий, УкраинÑкий и mRussian. Их иÑходный код напиÑан в Ñзыко(человечеÑкий)-незавиÑимом режиме Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð¾Ð¼ функции перевода <i>tr()</i> и перевод Ñтих Ñообщений также доÑтупен ÐнглийÑким, УкраинÑким и mRussian. </p><p>Ð”Ð»Ñ Ð¿Ð¾Ð´ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð±Ð¸Ð±Ð»Ð¸Ð¾Ñ‚ÐµÐºÐ¸ к проекту Ñтанции OpenSCADA Ð’Ñ‹ можете получить файл БД как: </p> <ul><li> такой что поÑтавлÑетÑÑ Ñ Ð³Ð¾Ñ‚Ð¾Ð²Ñ‹Ð¼ и ÑоответÑтвующим пакетом диÑтрибутива Linux вроде "openscada-libdb-main", "openscada-LibDB.Main";</li> <li> наиболее актуальный и непоÑредÑтвенно полученный из <a class="external text" href="http://oscada.org/svn/trunk/OpenSCADA/data/LibsDB/OscadaLibs.sql" rel="nofollow noreferrer noopener" target="_blank">Ñ€ÐµÐ¿Ð¾Ð·Ð¸Ñ‚Ð¾Ñ€Ð¸Ñ subversion</a>, преобразованный в файл БД SQLite путём:</li></ul> <div class="mw-highlight mw-content-ltr" dir="ltr" style="margin-left: 15px"><pre>wget http://oscada.org/svn/trunk/OpenSCADA/data/LibsDB/OscadaLibs.sql sqlite3 -init OscadaLibs.sql OscadaLibs.db .exit </pre></div> <ul><li> загрузка <a class="external" href="http://oscada.org/wiki/File:OscadaLibs.db.gz" title="File:OscadaLibs.db.gz">прикреплённого тут</a>.</li></ul> <p>Ðтот загруженный файл вы далее можете размеÑтить в каталоге проекта Ñтанции и Ñоздать объект базы данных Ð¼Ð¾Ð´ÑƒÐ»Ñ Ð‘Ð” "SQLite", зарегиÑтрировав файл базы данных в конфигурации. </p> <div class="toc" id="toc"><div id="toctitle"><h2>Contents</h2></div> <ul> <li class="toclevel-1"><a href="#BT:_RDTech_UM24C.2C_UM25C_and_UM34C_.28RDTech.29"><span class="tocnumber">1</span> <span class="toctext">BT: RDTech UM24C, UM25C and UM34C (RDTech)</span></a></li> <li class="toclevel-1"><a href="#BT:_ATORCH_UC96.2C_UD24_.28UC96.29"><span class="tocnumber">2</span> <span class="toctext">BT: ATORCH UC96, UD24 (UC96)</span></a></li> <li class="toclevel-1"><a href="#BT:_ATORCH_S1BP_.28S1BP.29"><span class="tocnumber">3</span> <span class="toctext">BT: ATORCH S1BP (S1BP)</span></a></li> <li class="toclevel-1"><a href="#1-Wire_.281W.29"><span class="tocnumber">4</span> <span class="toctext">1-Wire (1W)</span></a></li> <li class="toclevel-1"><a href="#I2C:_PCF8591_.28PCF8591.29"><span class="tocnumber">5</span> <span class="toctext">I2C: PCF8591 (PCF8591)</span></a></li> <li class="toclevel-1"><a href="#I2C:_PCF8574_.28PCF8574.29"><span class="tocnumber">6</span> <span class="toctext">I2C: PCF8574 (PCF8574)</span></a></li> <li class="toclevel-1"><a href="#I2C:_ADS101x.2C_ADS111x_.28ADS111x.29"><span class="tocnumber">7</span> <span class="toctext">I2C: ADS101x, ADS111x (ADS111x)</span></a></li> <li class="toclevel-1"><a href="#I2C:_MCP4725_.28MCP4725.29"><span class="tocnumber">8</span> <span class="toctext">I2C: MCP4725 (MCP4725)</span></a></li> <li class="toclevel-1"><a href="#I2C:_BMP180_.28BMP180.29"><span class="tocnumber">9</span> <span class="toctext">I2C: BMP180 (BMP180)</span></a></li> <li class="toclevel-1"><a href="#I2C:_BME280_.28BME280.29"><span class="tocnumber">10</span> <span class="toctext">I2C: BME280 (BME280)</span></a></li> <li class="toclevel-1"><a href="#I2C:_SHT3x_.28SHT3x.29"><span class="tocnumber">11</span> <span class="toctext">I2C: SHT3x (SHT3x)</span></a></li> <li class="toclevel-1"><a href="#I2C:_DS1307.2CDS3231_.28DS3231.29"><span class="tocnumber">12</span> <span class="toctext">I2C: DS1307,DS3231 (DS3231)</span></a></li> <li class="toclevel-1"><a href="#I2C:_AT24C.7B32.7C64.7D_.28AT24CXX.29"><span class="tocnumber">13</span> <span class="toctext">I2C: AT24C{32|64} (AT24CXX)</span></a></li> <li class="toclevel-1"><a href="#GPIO:_DHT11.2C22_.28DHT.29"><span class="tocnumber">14</span> <span class="toctext">GPIO: DHT11,22 (DHT)</span></a></li> <li class="toclevel-1"><a href="#GPIO:_MAX6675_.28MAX6675.29"><span class="tocnumber">15</span> <span class="toctext">GPIO: MAX6675 (MAX6675)</span></a></li> <li class="toclevel-1"><a href="#GPIO.7CI2C:_1602A.28HD44780.29_.281602A.29"><span class="tocnumber">16</span> <span class="toctext">GPIO|I2C: 1602A(HD44780) (1602A)</span></a></li> </ul> </div> <p>Ð”Ð»Ñ DAQ-шаблонов, в целом, вам нужно Ñоздать предÑтавительÑкий объект уÑтройÑтва в <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">модуле ЛогичеÑкого УровнÑ</a> и выбрать ÑоответÑтвующий шаблон из библиотеки шаблонов. Далее, Ð´Ð»Ñ ÐºÐ¾Ñ€Ñ€ÐµÐºÑ‚Ð½Ð¾Ð¹ конфигурации, придерживайтеÑÑŒ Ñпецифики шаблона в перÑональном опиÑании. Концепцию доÑтупа к данным через пользовательÑкий протокол можно изобразить как на риÑунке 1. </p> <div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:324px;"><a class="image" href="http://oscada.org/wiki/File:UserPrtDevs_concept_ru.png"><img class="thumbimage" height="275" src="files/UserPrtDevs_concept_ru.png" width="322" /></a> <div class="thumbcaption">РиÑ.1. ÐšÐ¾Ð½Ñ†ÐµÐ¿Ñ†Ð¸Ñ Ð´Ð¾Ñтупа к данным через пользовательÑкий протокол.</div></div></div></div> <p>Как можно видеть Ñ Ñ€Ð¸Ñунка 1, взаимодейÑтвие Ñ ÑƒÑтройÑтвом проиÑходит через некоторый транÑпорт на котором они физичеÑки базируютÑÑ. Ð—Ð°Ð¿Ñ€Ð¾Ñ Ðº транÑпорту Ð’Ñ‹ можете отправить: </p> <ol><li> ÐепоÑредÑтвенно Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ функции ÑиÑтемного API OpenSCADA объекта транÑпорта <i><a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">string messIO( string mess, real timeOut = 0 );</a></i>, еÑли протоколоÑпецифичеÑÐºÐ°Ñ Ñ‡Ð°ÑÑ‚ÑŒ очень проÑта и данные Вам нужно лишь извлечь.</li> <li> Завёрнутый Ð·Ð°Ð¿Ñ€Ð¾Ñ Ð´Ð°Ð½Ð½Ñ‹Ñ… <i>req</i>, функцией <i><a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">int messIO( XMLNodeObj req, string prt );</a></i> и Ð´Ð»Ñ Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»Ð° <i>prt</i>, еÑли Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»ÑŒÐ½Ð°Ñ Ñ‡Ð°ÑÑ‚ÑŒ доÑтаточно ÑÐ»Ð¾Ð¶Ð½Ð°Ñ Ð¸ уже предÑтавлена в OpenSCADA.</li> <li> Завёрнутый Ð·Ð°Ð¿Ñ€Ð¾Ñ Ð´Ð°Ð½Ð½Ñ‹Ñ… ÑпецифичеÑкий к пользователю Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ функции <i><a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">int messIO( XMLNodeObj req, "UserProtocol" );</a></i> и реализации <a href="Modules/UserProtocol.html" title="Special:MyLanguage/Modules/UserProtocol">пользовательÑкого протокола</a>, еÑли Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»ÑŒÐ½Ð°Ñ Ñ‡Ð°ÑÑ‚ÑŒ доÑтаточно ÑÐ»Ð¾Ð¶Ð½Ð°Ñ Ð¸ ещё отÑутÑтвует в OpenSCADA. Пользователь реализует тут Ñаму протоколоÑпецифичеÑкую чаÑÑ‚ÑŒ в <a href="Modules/UserProtocol.html" title="Special:MyLanguage/Modules/UserProtocol">модуле UserProtocol</a> и чаÑÑ‚ÑŒ ÑпецифичеÑкую к данным в шаблоне Ð´Ð»Ñ <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">Ð¼Ð¾Ð´ÑƒÐ»Ñ Ð›Ð¾Ð³Ð¸Ñ‡ÐµÑкого УровнÑ</a> или непоÑредÑтвенно в процедуре контролера на внутреннем Ñзыке Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ <a href="Modules/JavaLikeCalc.html" title="Special:MyLanguage/Modules/JavaLikeCalc">Ð¼Ð¾Ð´ÑƒÐ»Ñ JavaLikeCalc</a>.</li></ol> <dl><dd><dl><dd> <a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../en/files/At.png" width="22" /></a> Ðтот поÑледний метод развит к возможноÑти Ñ„Ð¾Ñ€Ð¼Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»ÑŒÐ½Ð¾Ð¹ чаÑти кода непоÑредÑтвенно в том-же коде шаблона, как Ð¾Ñ‚Ð´ÐµÐ»ÑŒÐ½Ð°Ñ Ð²ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ñ„ÑƒÐ½ÐºÑ†Ð¸Ñ Ñ‡ÐµÑ€ÐµÐ· вызовом функции запроÑа первого метода, еÑли нет необходимоÑти повторного иÑпользованиÑ, или даже еÑли Ñ‚Ð°ÐºÐ°Ñ Ð½ÐµÐ¾Ð±Ñ…Ð¾Ð´Ð¸Ð¼Ð¾ÑÑ‚ÑŒ еÑÑ‚ÑŒ и тут имеет ÑмыÑл Ñоздание комплекÑного шаблона, который Ñможет объединÑÑ‚ÑŒ роль и выходного протокола, через его подключение также к модулю пользовательÑкого протокола. И оно будет полноÑтью хранитьÑÑ Ð² одной библиотеке шаблонов. </dd></dl></dd></dl> <p><a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../en/files/At.png" width="22" /></a> ПрÑÐ¼Ð°Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ð° Ñ Ð²Ñ‹Ñ…Ð¾Ð´Ð½Ñ‹Ð¼ транÑпортом функции <a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">string messIO( string mess, real timeOut = 0 );</a> не предуÑматривает Ð±Ð»Ð¾ÐºÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ‚Ñ€Ð°Ð½Ñпорта поза вызовом Ñтой функции, а ÑоответÑтвенно, Ð´Ð»Ñ Ñложных протоколов Ñ Ð¿Ð¾Ñылками ответа более чем в одном пакете, что предуÑматривает процеÑÑ "дожиданиÑ", не можно иÑпользовать общий транÑпорт, по которому возможна отправка пакетов различных протоколов или даже один, но в различных задачах (объектах контроллеров). СоответÑтвенно, еÑли еÑÑ‚ÑŒ необходимоÑÑ‚ÑŒ иÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑовмеÑтного транÑпорта, то размещайте параметры опроÑа по протоколу в одном объекте контроллера (задаче) или иÑпользуйте <a href="Modules/UserProtocol.html" title="Special:MyLanguage/Modules/UserProtocol">модуль пользовательÑкого протокола</a>, к которому Ñто замечание не имеет отношениÑ, поÑкольку он оÑущеÑтвлÑет такое блокирование на Ð²Ñ€ÐµÐ¼Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° процедуры обработки, как и оÑтальные модульные протоколы OpenSCADA. Ð”Ð»Ñ Ñ€Ð°Ð·Ð¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ñ€ÐµÐ°Ð»Ð¸Ð·Ð°Ñ†Ð¸Ð¸ протокола тут вы должны выполнить и придерживатьÑÑ Ð¿Ñ€Ð¸Ð²ÐµÐ´ÐµÐ½Ð½Ñ‹Ñ… требований: </p> <ul><li> быть владельцем прав или автором кода и раÑпроÑтранÑÑ‚ÑŒ его под любой Ñвободной лицензией, предпочтение предоÑтавлÑетÑÑ GPL;</li> <li> приготовить и Ñохранить в отдельном файле БД SQLite, или как текÑтовый файл, на предмет: опиÑÐ°Ð½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð² (Ð’Ð’), кода процедуры напиÑанного и отформатированного ÑоглаÑно какой нидудь ÑиÑтемы;</li> <li> напиÑать краткое опиÑание и инÑтрукцию Ð¿Ð¾Ð´ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ ÑƒÑтройÑтва по протоколу в ÑпоÑоб похожий на другие тут;</li> <li> напиÑать прÑмой Ð·Ð°Ð¿Ñ€Ð¾Ñ Ð² тему форума "<a class="external text" href="http://oscada.org/ru/forum/topics/razrabotka_openscada/" rel="nofollow noreferrer noopener" target="_blank">Разработка OpenSCADA</a>" на предмет Ñ€Ð°Ð·Ð¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»Ð° тут, Ð²ÐºÐ»ÑŽÑ‡Ð°Ñ Ð´Ð¾ÐºÐ°Ð·Ð°Ñ‚ÐµÐ»ÑŒÑтва его работоÑпоÑобноÑти от любого разработчика OpenSCADA или краткое демонÑтрационное видео.</li></ul> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="RDTech" title="#RDTech"><h3><span class="mw-headline" id="BT:_RDTech_UM24C.2C_UM25C_and_UM34C_.28RDTech.29"><span class="mw-headline-number">1</span> BT: RDTech UM24C, UM25C and UM34C (<a href="Libs_LowLevelDevices.html#RDTech" title="Special:MyLanguage/Libs/LowLevelDevices">RDTech</a>)</span></h3></span> </td> <td> 1.1 </td> <td> GPLv2 </td> <td> * </td> <td> en,uk </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevsRDTech.png" title="Result and the operative setup."><img alt="Result and the operative setup." height="738" src="../en/files/LibsLowLevDevsRDTech.png" width="370" /></a></div> <p>RDTech UM24C/UM25C/UM34C BlueTooth interface template. <a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../en/files/At.png" width="22" /></a> Tested only on UM24C now. </p><p>The RDTech (RuiDeng) UM24C, UM25C and UM34C are low-cost USB pass-through power measurement devices, and support a decent number of collection features, as well as full control via Bluetooth. This template implements most exposed commands and data collection available by the device's Bluetooth interface.<br /> <a class="image" href="http://oscada.org/wiki/File:RDTech_UM24C.jpg"><img alt="RDTech UM24C.jpg" height="262" src="../en/files/RDTech_UM24C.jpg" width="600" /></a> </p><p>This template in first time uses the new output transports connection function <a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">SYS.Transport.outAt()</a> and the Bluetooth interface for the data acquisition. </p> <ul><li> <b>Total complexity:</b> 0.3 <span title="human-days, 1 HD — 10 hours">HD<sup style="color: blue">[!]</sup></span></li> <li> <b>Thanks:</b> for Ryan Finnie at the protocol initial processing in <a class="external text" href="https://github.com/smandon/rdumtool" rel="nofollow noreferrer noopener" target="_blank">RDUMTOOL</a></li></ul> <p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> Serial.RD:/dev/rfcomm0:9600||1000:40-20 </td></tr> <tr> <td> dev </td> <td> Device to bind <p>Like to "98:D3:31:F8:52:29" for binding by "rfcomm bind {N} 98:D3:31:F8:52:29". </p> </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> </td></tr> <tr> <td> V </td> <td> Volts </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> A </td> <td> Amperes </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> W </td> <td> Watts </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> T </td> <td> Temperature, °С </td> <td> Integer </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> R </td> <td> Resistance, Om </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> rec </td> <td> Recording </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> recAh </td> <td> Record, Ah </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> recWh </td> <td> Record, Wh </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> recThr </td> <td> Record threshold, A [0...0.3] </td> <td> Real </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> recTm </td> <td> Record time, seconds </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> grps </td> <td> Groups </td> <td> Text </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> grpNext </td> <td> Group next </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> grpClear </td> <td> Group clear </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> chMode </td> <td> Charging Mode </td> <td> String </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> scr </td> <td> Screen, [0...6] </td> <td> Integer </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> scrNext </td> <td> Screen next </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> scrRot </td> <td> Screen rotate </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> scrTm </td> <td> Screen timeout, minutes [0...9] </td> <td> Integer </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> scrBright </td> <td> Screen brightness, [0...5] </td> <td> Integer </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> this </td> <td> Object </td> <td> Object </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_frq </td> <td> Frequency of calculation of the function, Hz </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td>1000 </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevsCfgRDTech.png" title="Configuration."><img alt="Configuration." height="198" src="../en/files/LibsLowLevDevsCfgRDTech.png" width="334" /></a></div> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Connection the BlueTooth device:</dd></dl> <div class="mw-highlight mw-content-ltr" dir="ltr" style="margin-left: 30px"><pre>bluetoothctl <span class="c">#[bluetooth]# scan on</span> <span class="c"># Discovery started</span> <span class="c"># [NEW] Device 98:D3:31:F8:52:29 UM24C</span> <span class="c"># [CHG] Device 98:D3:31:F8:52:29 RSSI: -60</span> <span class="c">#[bluetooth]# scan off</span> <span class="c">#[bluetooth]# pair 98:D3:31:F8:52:29</span> <span class="c"># Attempting to pair with 98:D3:31:F8:52:29</span> <span class="c"># [CHG] Device 98:D3:31:F8:52:29 Connected: yes</span> <span class="c"># Request PIN code</span> <span class="c"># [UM241m[agent] Enter PIN code: 1234</span> <span class="c"># Pairing successful</span> <span class="c">#[bluetooth]# trust 98:D3:31:F8:52:29</span> <span class="c"># [CHG] Device 98:D3:31:F8:52:29 Trusted: yes</span> <span class="c"># Changing 98:D3:31:F8:52:29 trust succeeded</span> <span class="c">#[bluetooth]# exit</span> rfcomm <span class="nb">bind </span><span class="m">0</span> 98:D3:31:F8:52:29 <span class="c"># 0 here for binding to /dev/rfcomm0</span> </pre></div> <dl><dd>2. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>3. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select this template for it, one for each the devices. Enable the parameter.</dd> <dd>4. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>Transport</i> — to the address of the automatically created transport with its parameters after ":", according to <a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">the function SYS.Transport.outAt() address format</a>, where the device address corresponds to the command <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">rfcomm bind 0</span> in item 1.</li> <li> <i>Device to bind</i> — here you may set the Bluetooth address of the device as "98:D3:31:F8:52:29" to call the <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">rfcomm bind {N} </span> command when starting the template, where <i>N</i> is respectively taken from the address of the previous item.</li></ul> <dl><dd><a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../en/files/At.png" width="22" /></a> The <b>rfcomm</b> command is normally not available to be called by a non-privileged user, and if you want to call it by such a user, you must set a corresponding sign for it as <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">chmod u+s /usr/bin/rfcomm</span> from the super user.</dd></dl></dd> <dd>5. RESULT: The logical parameter object will perform gather data of and trace to modify of the writable properties.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="UC96" title="#UC96"><h3><span class="mw-headline" id="BT:_ATORCH_UC96.2C_UD24_.28UC96.29"><span class="mw-headline-number">2</span> BT: ATORCH UC96, UD24 (<a href="Libs_LowLevelDevices.html#UC96" title="Special:MyLanguage/Libs/LowLevelDevices">UC96</a>)</span></h3></span> </td> <td> 1.2 </td> <td> GPLv2 </td> <td> * </td> <td> en,uk </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevsUC96.png" title="Result and the operative setup."><img alt="Result and the operative setup." height="564" src="../en/files/LibsLowLevDevsUC96.png" width="235" /></a></div> <p>ATORCH UC96, UD24 BlueTooth interface template. </p><p>The ATORCH UC96, UD24 are low-cost USB pass-through power measurement device with many interfaces and supporting a decent number of collection features, as well as control via Bluetooth. This template implements only the clearing data command and data collection by the device's Bluetooth interface.<br /> <a class="image" href="http://oscada.org/wiki/File:ATORCH_UC96.jpg"><img alt="ATORCH UC96.jpg" height="382" src="../en/files/ATORCH_UC96.jpg" width="758" /></a> </p><p>The device sends data packages not at a request and just after establishing the connection, that is broadcasting with one second period. <a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../en/files/At.png" width="22" /></a> The device may not to send the data packages at enable not in the first screen, so you need to switch the first screen for the data appearance. The data can be missed also after suspending the PC, so this template in the first time implements the data missing detection and reconnection. </p> <ul><li> <b>Total complexity:</b> 0.3 <span title="human-days, 1 HD — 10 hours">HD<sup style="color: blue">[!]</sup></span></li></ul> <p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> Serial.UC96:/dev/rfcomm0:9600||1000:40-20 </td></tr> <tr> <td> dev </td> <td> Device to bind <p>Like to "58:F4:04:33:D5:FD" for binding by "rfcomm bind {N} 58:F4:04:33:D5:FD". </p> </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> </td></tr> <tr> <td> noDataTm </td> <td> No data detection time, seconds </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 60 </td></tr> <tr> <td> V </td> <td> Volts </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Vup </td> <td> Volts maximum </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Vdwn </td> <td> Volts minimum </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> A </td> <td> Amperes </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> W </td> <td> Watts </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> R </td> <td> Resistance, Om </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> T </td> <td> Temperature, °С </td> <td> Integer </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Ah </td> <td> Capacity, Ah </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Wh </td> <td> Capacity, Wh </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Tm </td> <td> Time, seconds </td> <td> Integer </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Dplus </td> <td> Data+, V </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Dminus </td> <td> Data-, V </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> clear </td> <td> Clear </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> this </td> <td> Object </td> <td> Object </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_frq </td> <td> Frequency of calculation of the function, Hz </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td>1000 </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevsCfgUC96.png" title="Configuration."><img alt="Configuration." height="257" src="../en/files/LibsLowLevDevsCfgUC96.png" width="299" /></a></div> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Connection the BlueTooth device: performed in the standard way of pairing and trusting without PIN and to UC96_SPP</dd> <dd>2. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>3. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select this template for it, one for each the devices. Enable the parameter.</dd> <dd>4. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>Transport</i> — to the address of the automatically created transport with its parameters after ":", according to <a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">the function SYS.Transport.outAt() address format</a>, where the device address corresponds to the command <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">rfcomm bind 0</span>.</li> <li> <i>Device to bind</i> — here you may set the Bluetooth address of the device as "58:F4:04:33:D5:FD" to call the <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">rfcomm bind {N} </span> command when starting the template, where <i>N</i> is respectively taken from the address of the previous item.</li></ul> <dl><dd><a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../en/files/At.png" width="22" /></a> The <b>rfcomm</b> command is normally not available to be called by a non-privileged user, and if you want to call it by such a user, you must set a corresponding sign for it as <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">chmod u+s /usr/bin/rfcomm</span> from the super user.</dd></dl> <ul><li> <i>No data detection time</i> — here you may set the time of detection of the data missing.</li></ul></dd> <dd>5. RESULT: The logical parameter object will perform gather data of and trace to modify of the writable properties.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="S1BP" title="#S1BP"><h3><span class="mw-headline" id="BT:_ATORCH_S1BP_.28S1BP.29"><span class="mw-headline-number">3</span> BT: ATORCH S1BP (<a href="Libs_LowLevelDevices.html#S1BP" title="Special:MyLanguage/Libs/LowLevelDevices">S1BP</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en,uk </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevsS1BP.png" title="Result and the operative setup."><img alt="Result and the operative setup." height="500" src="../en/files/LibsLowLevDevsS1BP.png" width="256" /></a></div> <p>ATORCH S1BP BlueTooth interface template. </p><p>The ATORCH S1BP is low-cost AC energy measurement device with supporting a decent number of collection features, as well as control via Bluetooth. This template implements the command of the data clearing and switching the power mode, also as collection the data by the device's Bluetooth interface.<br /> <a class="image" href="http://oscada.org/wiki/File:ATORCH_S1BP.jpg"><img alt="ATORCH S1BP.jpg" height="400" src="../en/files/ATORCH_S1BP.jpg" width="301" /></a> </p><p>The device sends data packages not at a request and just after establishing the connection, that is broadcasting with one second period. </p> <ul><li> <b>Total complexity:</b> 0.1 <span title="human-days, 1 HD — 10 hours">HD<sup style="color: blue">[!]</sup></span></li></ul> <p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> Serial.S1BP:/dev/rfcomm2:9600||1000:40-20 </td></tr> <tr> <td> dev </td> <td> Device to bind <p>Like to "40:2B:6D:EF:48:A7" for binding by "rfcomm bind {N} 40:2B:6D:EF:48:A7". </p> </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> </td></tr> <tr> <td> noDataTm </td> <td> No data detection time, seconds </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 60 </td></tr> <tr> <td> V </td> <td> Volts </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> A </td> <td> Amperes </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> W </td> <td> Watts </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> KWh </td> <td> Energy, KWh </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Hz </td> <td> Frequency, Hz </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Pf </td> <td> Power factor, Pf </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> T </td> <td> Temperature, °С </td> <td> Integer </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> Tm </td> <td> Time, seconds </td> <td> Integer </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> clear </td> <td> Clear </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> power </td> <td> Power mode switch Off/Auto/On </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> this </td> <td> Object </td> <td> Object </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_frq </td> <td> Frequency of calculation of the function, Hz </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevsCfgS1BP.png" title="Configuration."><img alt="Configuration." height="244" src="../en/files/LibsLowLevDevsCfgS1BP.png" width="389" /></a></div> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Connection the BlueTooth device: performed in the standard way of pairing and trusting without PIN and to S1BP_SPP</dd> <dd>2. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>3. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select this template for it, one for each the devices. Enable the parameter.</dd> <dd>4. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>Transport</i> — to the address of the automatically created transport with its parameters after ":", according to <a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">the function SYS.Transport.outAt() address format</a>, where the device address corresponds to the command <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">rfcomm bind 0</span>.</li> <li> <i>Device to bind</i> — here you may set the Bluetooth address of the device as "58:F4:04:33:D5:FD" to call the <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">rfcomm bind {N} </span> command when starting the template, where <i>N</i> is respectively taken from the address of the previous item.</li></ul> <dl><dd><a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../en/files/At.png" width="22" /></a> The <b>rfcomm</b> command is normally not available to be called by a non-privileged user, and if you want to call it by such a user, you must set a corresponding sign for it as <span style="border: solid gray 1px; padding: 1px; font-family: monospace; font-size: 1.2em; white-space: nowrap;">chmod u+s /usr/bin/rfcomm</span> from the super user.</dd></dl> <ul><li> <i>No data detection time</i> — here you may set the time of detection of the data missing.</li></ul></dd> <dd>5. RESULT: The logical parameter object will perform gather data of and trace to modify of the writable properties.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="1W" title="#1W"><h3><span class="mw-headline" id="1-Wire_.281W.29"><span class="mw-headline-number">4</span> 1-Wire (<a href="Libs_LowLevelDevices.html#1W" title="Special:MyLanguage/Libs/LowLevelDevices">1W</a>)</span></h3></span> </td> <td> 2.1 </td> <td> GPLv2 </td> <td> * </td> <td> en,uk </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevs1WOp.png" title="Result and the operative setup."><img alt="Result and the operative setup." height="740" src="../en/files/LibsLowLevDevs1WOp.png" width="270" /></a></div> <p><span id="1W" title="#1W">One Wire</span> One Wire sensors bus implementing by 1Wire adaptors DS9097, DS9097U (DS2480B) on the bus RS232 and by the chip DS2482-100 on the bus I2C. Supported direct and parasite powering for the temperature sensors. </p><p>Supported 1Wire devices: DS1820, DS1820/DS18S20/DS1920 (not tested), DS1822 (not tested), DS2413, DS2408, DS2450, DS2438.<br /> <a class="image" href="http://oscada.org/wiki/File:Ds9097.png"><img alt="Ds9097.png" height="500" src="../en/files/Ds9097.png" width="404" /></a> </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 1Wire:/dev/ttyS0 </td></tr> <tr> <td> addr </td> <td> Address of the I2C driver <p>[24...27] - for DS2482-100 </p> </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 24 </td></tr> <tr> <td> tmResc </td> <td> Rescan period, seconds </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 60 </td></tr> <tr> <td> onlyAddAtScan </td> <td> Only add at scan </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 0 </td></tr> <tr> <td> tryEVAL </td> <td> Tries after which set value to EVAL </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 3 </td></tr> <tr> <td> adapterS </td> <td> Type of the detected adaptor </td> <td> String </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> No detected </td></tr> <tr> <td> adapter </td> <td> Code of the detected adaptor </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> -1 </td></tr> <tr> <td> power </td> <td> Power, for temperature </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> isData </td> <td> In data mode </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> tr </td> <td> Вихідний транÑпорт </td> <td> Object </td> <td> Output </td> <td> Not attribute </td> <td> Variable </td> <td> </td></tr> <tr> <td> this </td> <td> Object </td> <td> Object </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Frequency of calculation of the function, Hz </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <div class="floatright"><a class="image" href="http://oscada.org/wiki/File:LibsLowLevDevs1WCfg.png" title="Configuration."><img alt="Configuration." height="301" src="../en/files/LibsLowLevDevs1WCfg.png" width="316" /></a></div> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>2. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each the devices. Enable the parameter.</dd> <dd>3. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>Transport</i> — to the address of the automatically created transport with its parameters after ":", according to <a href="User_API.html#SYSTransport" title="Special:MyLanguage/Documents/User API">the function SYS.Transport.outAt() address format</a>, where the device address corresponds to the serial device with a DS9097 adaptor or the I2C device like to "/dev/i2c-1".</li> <li> <i>Address of the I2C driver</i> — in decimal number of address the I2C driver on the bus above and in range pointed in help to the field.</li> <li> <i>Rescan period</i> — periodicity of rescaning for new and removed devices search.</li> <li> <i>Only add at scan</i> — the sign of adding devices only at scan, that is preventing also their removing (mark of removed) at any wrong request on bad busses.</li> <li> <i>Tries after which set value to EVAL</i> — quantity of wrong tries before setting the attributes in EVAL.</li></ul></dd> <dd>4. RESULT: The logical parameter object will perform at first searching to 1Wire devices on the bus and creating included parameters to the each found one. Next the logical parameter object will perform gather data of the found devices and trace to modify of the writable device's properties.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="PCF8591" title="#PCF8591"><h3><span class="mw-headline" id="I2C:_PCF8591_.28PCF8591.29"><span class="mw-headline-number">5</span> I2C: PCF8591 (<a href="Libs_LowLevelDevices.html#PCF8591" title="Special:MyLanguage/Libs/LowLevelDevices">PCF8591</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>I2C 8-bit 4xA/D and D/A converter. Connects through a Serial output transport into the I2C mode. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 72 </td></tr> <tr> <td> vRef </td> <td> Reference voltage, V </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 3.2 </td></tr> <tr> <td> ai0 </td> <td> AI0 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> ai1 </td> <td> AI1 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> ai2 </td> <td> AI2 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> ai3 </td> <td> AI3 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> ao </td> <td> AO </td> <td> Real </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported.</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li> <li> <i>vRef</i> — reference voltage of the AIs and AO.</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the AI attributes and also will take the AO and write to the chip.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="PCF8574" title="#PCF8574"><h3><span class="mw-headline" id="I2C:_PCF8574_.28PCF8574.29"><span class="mw-headline-number">6</span> I2C: PCF8574 (<a href="Libs_LowLevelDevices.html#PCF8574" title="Special:MyLanguage/Libs/LowLevelDevices">PCF8574</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>I2C 8-bit 8DIO. Connects through a Serial output transport into the I2C mode. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport I2C </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address (0, 119) </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 39 </td></tr> <tr> <td> di0 </td> <td> DI0 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> di1 </td> <td> DI1 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> di2 </td> <td> DI2 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> di3 </td> <td> DI3 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> di4 </td> <td> DI4 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> di5 </td> <td> DI5 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> di6 </td> <td> DI6 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> di7 </td> <td> DI7 </td> <td> Boolean </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> do0 </td> <td> DO0 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> do1 </td> <td> DO1 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> do2 </td> <td> DO2 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> do3 </td> <td> DO3 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> do4 </td> <td> DO4 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> do5 </td> <td> DO5 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> do6 </td> <td> DO6 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> do7 </td> <td> DO7 </td> <td> Boolean </td> <td> Output </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported.</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the DI attributes and also will take the DO and write to the chip.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="ADS111x" title="#ADS111x"><h3><span class="mw-headline" id="I2C:_ADS101x.2C_ADS111x_.28ADS111x.29"><span class="mw-headline-number">7</span> I2C: ADS101x, ADS111x (<a href="Libs_LowLevelDevices.html#ADS111x" title="Special:MyLanguage/Libs/LowLevelDevices">ADS111x</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>I2C 12/16-bit 4xA/D converter. Connect through a Serial output transport into the I2C mode. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 72 </td></tr> <tr> <td> range </td> <td> Range, ±V </td> <td> Integer numbers selection </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> 2<br /> <p>0;1;2;3;4;5<br /> 6.144;4.096;2.048;1.024;0.512;0.256 </p> </td></tr> <tr> <td> ai0 </td> <td> AI0 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> ai1 </td> <td> AI1 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> ai2 </td> <td> AI2 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> ai3 </td> <td> AI3 </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported.</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li> <li> <i>range</i> — range of voltage of the AIs.</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the AI attributes.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="MCP4725" title="#MCP4725"><h3><span class="mw-headline" id="I2C:_MCP4725_.28MCP4725.29"><span class="mw-headline-number">8</span> I2C: MCP4725 (<a href="Libs_LowLevelDevices.html#MCP4725" title="Special:MyLanguage/Libs/LowLevelDevices">MCP4725</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>I2C 12-bit D/A converter. Connect through a Serial output transport into the I2C mode. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 96 </td></tr> <tr> <td> vRef </td> <td> Reference voltage, V </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 3.2 </td></tr> <tr> <td> ao </td> <td> AO </td> <td> Real </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported.</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li> <li> <i>vRef</i> — reference voltage of the AO.</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and take the AO and write to the chip.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="BMP180" title="#BMP180"><h3><span class="mw-headline" id="I2C:_BMP180_.28BMP180.29"><span class="mw-headline-number">9</span> I2C: BMP180 (<a href="Libs_LowLevelDevices.html#BMP180" title="Special:MyLanguage/Libs/LowLevelDevices">BMP180</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>I2C Pressure and Temperature sensor. Connecting through a Serial output transport into the I2C mode. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 119 </td></tr> <tr> <td> oss </td> <td> Oversampling setting (0...3) </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 0 </td></tr> <tr> <td> t </td> <td> T, °С </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> p </td> <td> P, Pa </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported.</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li> <li> <i>oss</i> — oversampling setting of pressure measurement [0...3].</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the Pressure and Temperature attributes.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="BME280" title="#BME280"><h3><span class="mw-headline" id="I2C:_BME280_.28BME280.29"><span class="mw-headline-number">10</span> I2C: BME280 (<a href="Libs_LowLevelDevices.html#BME280" title="Special:MyLanguage/Libs/LowLevelDevices">BME280</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> Arcadiy Kisel, <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>I2C Barometric Pressure, Temperature and Humidity sensor. Connect through a Serial output transport into the I2C mode. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 118 </td></tr> <tr> <td> oss </td> <td> Oversampling setting (0...7) </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 0 </td></tr> <tr> <td> t </td> <td> T, °С </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> p </td> <td> P, Pa </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> h </td> <td> H, % </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported.</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li> <li> <i>oss</i> — oversampling setting of pressure measurement [0...7].</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the Pressure, Temperature and Humidity attributes.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="SHT3x" title="#SHT3x"><h3><span class="mw-headline" id="I2C:_SHT3x_.28SHT3x.29"><span class="mw-headline-number">11</span> I2C: SHT3x (<a href="Libs_LowLevelDevices.html#SHT3x" title="Special:MyLanguage/Libs/LowLevelDevices">SHT3x</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>Digital Temperature and Humidity Sensor for the models: SHT30 </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 68 </td></tr> <tr> <td> H </td> <td> Humidity </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> T </td> <td> Temperature </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported;</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the Temperature and Humidity attributes.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="DS3231" title="#DS3231"><h3><span class="mw-headline" id="I2C:_DS1307.2CDS3231_.28DS3231.29"><span class="mw-headline-number">12</span> I2C: DS1307,DS3231 (<a href="Libs_LowLevelDevices.html#DS3231" title="Special:MyLanguage/Libs/LowLevelDevices">DS3231</a>)</span></h3></span> </td> <td> 1.1 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>I2C RTC chips DS1307,DS3231 with Temperature sensor and calibration for DS3231. Connects through a Serial output transport into the I2C mode. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> Device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 119 </td></tr> <tr> <td> mode </td> <td> Mode </td> <td> Integer numbers selection </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> 0 <p>0;1<br /> DS3231;DS1307 </p> </td></tr> <tr> <td> tm </td> <td> Date and time, YYYY-MM-DDTHH:mm:SS </td> <td> String </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> pSQW </td> <td> Enable SQUARE-WAVE OUTPUT </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> pSQWf<br />(dynamically updated) </td> <td> SQUARE-WAVE OUTPUT frequency </td> <td> Integer </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> agOff<br />(dynamically created for DS3231) </td> <td> Aging offset, [-128...127] </td> <td> Integer </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> t<br />(dynamically created for DS3231) </td> <td> T, °С </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> p32k<br />(dynamically created for DS3231) </td> <td> Enable 32768Hz </td> <td> Boolean </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>4. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each I2C slave devices. Enable the parameter.</dd> <dd>5. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to the address of the transport into step 1. Tracing for the address changing is supported.</li> <li> <i>addr</i> — the I2C slave device's address [0...119].</li></ul></dd> <dd>6. RESULT: The logical parameter object will perform interaction and placing of gathered data to the DateTime, Temperature and some one state attributes and also will take the DateTime, some one state attributes and write it to the chip.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="AT24CXX" title="#AT24CXX"><h3><span class="mw-headline" id="I2C:_AT24C.7B32.7C64.7D_.28AT24CXX.29"><span class="mw-headline-number">13</span> I2C: AT24C{32|64} (<a href="Libs_LowLevelDevices.html#AT24CXX" title="Special:MyLanguage/Libs/LowLevelDevices">AT24CXX</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>Provides operations with EEPROM memory based on I2C chips AT24C32 (4KB) and AT24C64 (8KB). Supported random reading and writing. </p><p><b><u>Output user protocol's XML request structure</u></b><br /> <b><{cmd} addr="{ChipAddr}" off="{MemOffset}" size="{ReadSize}" err="1:Error">{ReadWriteSeq}</{cmd}></b> </p> <dl><dd><i>cmd</i> — command, for now there allowed: "read", "write";</dd> <dd><i>addr</i> — I2C device address [0...119];</dd> <dd><i>off</i> — memory part offset;</dd> <dd><i>size</i> — read memory block size.</dd> <dd><i>ReadWriteSeq</i> — Read/Write bytes sequence.</dd> <dd><i>err</i> — sets to result of the request.</dd></dl> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>" and set its Identifier like to "i2c", one for each the I2C bus.</dd> <dd>2. Set proper address of the <a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a> device, only the I2C bus address like "/dev/i2c-{N}". Set the symbol's time into the timeouts field to the minimum value.</dd> <dd>3. Place some requesting commands directly into presented or a new internal OpenSCADA procedure like to:</dd></dl> <div class="mw-highlight mw-content-ltr" dir="ltr" style="margin-left: 30px"><pre><span class="nx">req</span> <span class="o">=</span> <span class="nx">SYS</span><span class="p">.</span><span class="nx">XMLNode</span><span class="p">(</span><span class="s2">"read"</span><span class="p">);</span> <span class="nx">req</span><span class="p">.</span><span class="nx">setAttr</span><span class="p">(</span><span class="s2">"ProtIt"</span><span class="p">,</span><span class="s2">"AT24CXX"</span><span class="p">).</span><span class="nx">setAttr</span><span class="p">(</span><span class="s2">"addr"</span><span class="p">,</span><span class="mi">87</span><span class="p">).</span><span class="nx">setAttr</span><span class="p">(</span><span class="s2">"off"</span><span class="p">,</span><span class="mi">1000</span><span class="p">).</span><span class="nx">setAttr</span><span class="p">(</span><span class="s2">"size"</span><span class="p">,</span><span class="mi">20</span><span class="p">).</span><span class="nx">setText</span><span class="p">(</span><span class="s2">"My message"</span><span class="p">);</span> <span class="nx">req</span> <span class="o">=</span> <span class="nx">SYS</span><span class="p">.</span><span class="nx">XMLNode</span><span class="p">(</span><span class="s2">"write"</span><span class="p">);</span> <span class="nx">req</span><span class="p">.</span><span class="nx">setAttr</span><span class="p">(</span><span class="s2">"ProtIt"</span><span class="p">,</span><span class="s2">"AT24CXX"</span><span class="p">).</span><span class="nx">setAttr</span><span class="p">(</span><span class="s2">"addr"</span><span class="p">,</span><span class="mi">87</span><span class="p">).</span><span class="nx">setAttr</span><span class="p">(</span><span class="s2">"off"</span><span class="p">,</span><span class="mi">1000</span><span class="p">).</span><span class="nx">setText</span><span class="p">(</span><span class="s2">"Stored data"</span><span class="p">);</span> </pre></div> <dl><dd>4. RESULT: Into <i>text()</i> for "read" you will get the read data if no errors occur.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="DHT" title="#DHT"><h3><span class="mw-headline" id="GPIO:_DHT11.2C22_.28DHT.29"><span class="mw-headline-number">14</span> GPIO: DHT11,22 (<a href="Libs_LowLevelDevices.html#DHT" title="Special:MyLanguage/Libs/LowLevelDevices">DHT</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>Digital Temperature and Humidity Sensor for models: DHT11, DHT12, AM2302, AM2320, ... . The module designed for the sensors connect through GPIO, mostly it's <a href="Modules/GPIO.html" title="Special:MyLanguage/Modules/GPIO">Raspberry PI BCM2835 GPIO</a>.<br /> <i>Conditions:</i> Exclusively realtime planing in the priority 199 (FIFO-99). </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> addr </td> <td> GPIO address with functions mode(), get() and put(), mostly it's BCM2835 </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> DAQ.GPIO.io.pi </td></tr> <tr> <td> pin </td> <td> IO pin number of the GPIO </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 17 </td></tr> <tr> <td> tries </td> <td> Tries [1...5] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 2 </td></tr> <tr> <td> dev </td> <td> Device (0-DHT11, 1-DHT22) </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 1 </td></tr> <tr> <td> t </td> <td> T, °С </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> h </td> <td> H, % </td> <td> Real </td> <td> Input </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output controller object and a parameter into the DAQ module "BCM 2835", by default it's "pi.pi".</dd> <dd>2. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties (FIFO-199).</dd> <dd>3. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter</a> and select the template for that, one for each sensor. Enable the parameter.</dd> <dd>4. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>addr</i> — to the address of the "BCM 2835" parameter like "DAQ.GPIO.io.pi"; tracing for the address changing is supported;</li> <li> <i>pin</i> — GPIO pin number where connected the data pin of the sensor;</li> <li> <i>tries</i> — tries of the sensor reading;</li> <li> <i>dev</i> — generic device specific selection.</li></ul></dd> <dd>5. RESULT: The logical parameter will perform interaction and placing of the gathered data to the Temperature and Humidity attributes.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="MAX6675" title="#MAX6675"><h3><span class="mw-headline" id="GPIO:_MAX6675_.28MAX6675.29"><span class="mw-headline-number">15</span> GPIO: MAX6675 (<a href="Libs_LowLevelDevices.html#MAX6675" title="Special:MyLanguage/Libs/LowLevelDevices">MAX6675</a>)</span></h3></span> </td> <td> 0.1 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> Arcadiy Kisel </td></tr></table> <p>Cold-Junction-Compensated K-Thermocouple-to-Digital Converter (0°C to +1024°C). The module designed for the sensors connect through softSPI by GPIO, mostly it's <a href="Modules/GPIO.html" title="Special:MyLanguage/Modules/GPIO">Raspberry PI BCM2835 GPIO</a>.<br /> <i>Conditions:</i> Exclusively realtime planing in the priority 199 (FIFO-99). </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> addr </td> <td> GPIO address with functions mode(), get() and put(), mostly it's BCM2835 </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> DAQ.GPIO.io.pi </td></tr> <tr> <td> pin_cs </td> <td> CS pin number of the GPIO </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 8 </td></tr> <tr> <td> pin_sclk </td> <td> SCLK pin number of the GPIO </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 11 </td></tr> <tr> <td> pin_miso </td> <td> MISO pin number of the GPIO </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 9 </td></tr> <tr> <td> t </td> <td> T, °С </td> <td> Real </td> <td> Output </td> <td> Read only </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output controller object and a parameter into the DAQ module "BCM 2835", by default it's "pi.pi".</dd> <dd>2. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties (FIFO-199).</dd> <dd>3. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter</a> and select the template for that, one for each sensor. Enable the parameter.</dd> <dd>4. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>addr</i> — to the address of the "BCM 2835" parameter like "DAQ.GPIO.io.pi"; tracing for the address changing is supported; </li> <li> <i>pin_cs</i> — CS pin number where connected the chip selection pin of the sensor; </li> <li> <i>pin_sclk</i> — SCLK pin number where connected the serial clock pin of the sensor;</li> <li> <i>pin_miso</i> — MISO pin number where connected the master in slave out (data) pin of the sensor.</li></ul></dd> <dd>5. RESULT: The logical parameter will perform interaction and placing of the gathered data to the Temperature attributes.</dd></dl> <p><br /> </p> <table class="wikitable"> <tr> <td> <span id="1602A" title="#1602A"><h3><span class="mw-headline" id="GPIO.7CI2C:_1602A.28HD44780.29_.281602A.29"><span class="mw-headline-number">16</span> GPIO|I2C: 1602A(HD44780) (<a href="Libs_LowLevelDevices.html#1602A" title="Special:MyLanguage/Libs/LowLevelDevices">1602A</a>)</span></h3></span> </td> <td> 1.0 </td> <td> GPLv2 </td> <td> * </td> <td> en </td> <td> <a class="external" href="http://oscada.org/wiki/User:RomanSavochenko" title="User:RomanSavochenko">Roman Savochenko</a> </td></tr></table> <p>LCD Module 1602A, STN, BLUB, 16 Character x 2 Line, 5 x 8 Dots, by the direct (<a href="Modules/GPIO.html" title="Special:MyLanguage/Modules/GPIO">Raspberry PI BCM2835 GPIO</a>) or I2C (PCF8574) wiring.<br /> <i>Conditions:</i> Default planing policy but realtime one preferred. </p><p><b><u>Template IOs</u></b><br /> </p> <table class="mw-collapsible mw-collapsed wikitable sortable"> <caption style="white-space:nowrap"> </caption> <tr> <th> Identifier </th> <th> Parameter </th> <th> Type </th> <th> Mode </th> <th> Attribute </th> <th> Configuration </th> <th> Value </th></tr> <tr> <td> transport </td> <td> Transport of the I2C, Serial (i2c) or<br /> <p>GPIO address with function put(), mostly it's BCM2835 (DAQ.GPIO.io.pi) </p> </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> i2c </td></tr> <tr> <td> addr </td> <td> I2C device address [0...119] </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 39 </td></tr> <tr> <td> RS </td> <td> GPIO Pin: Reset </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 7 </td></tr> <tr> <td> E </td> <td> GPIO Pin: Enable </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 8 </td></tr> <tr> <td> D4 </td> <td> GPIO Pin: Data4 </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 25 </td></tr> <tr> <td> D5 </td> <td> GPIO Pin: Data5 </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 24 </td></tr> <tr> <td> D6 </td> <td> GPIO Pin: Data6 </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 23 </td></tr> <tr> <td> D7 </td> <td> GPIO Pin: Data7 </td> <td> Integer </td> <td> Input </td> <td> Not attribute </td> <td> Constant </td> <td> 18 </td></tr> <tr> <td> ln1 </td> <td> Line 1 </td> <td> String </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> ln2 </td> <td> Line 2 </td> <td> String </td> <td> Input </td> <td> Full access </td> <td> Variable </td> <td> </td></tr> <tr> <td> f_frq </td> <td> Function calculate frequency (Hz) </td> <td> Real </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 1000 </td></tr> <tr> <td> f_start </td> <td> Function start flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_stop </td> <td> Function stop flag </td> <td> Boolean </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr> <tr> <td> f_err </td> <td> Function error </td> <td> String </td> <td> Input </td> <td> Not attribute </td> <td> Variable </td> <td> 0 </td></tr></table> <p><b><u>Configuring and using</u></b><br /> </p> <dl><dd>1. Create an output controller and an object of parameter in DAQ module "BCM 2835", by default it's "pi.pi" or create an output transport of the type "<a href="Modules/Serial.html" title="Special:MyLanguage/Modules/Serial">Serial</a>", set address like to "i2c", one for each the I2C bus.</dd> <dd>2. Create and start <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical controller object</a> or use any presented one with the needed scheduling properties.</dd> <dd>3. Create <a href="Modules/LogicLev.html" title="Special:MyLanguage/Modules/LogicLev">a logical parameter object</a> and select the template for that, one for each sensor. Enable the parameter.</dd> <dd>4. Into the tab "Template configuration" of the logical parameter object you need to set: <ul><li> <i>transport</i> — to address of the "BCM 2835" parameter like to "DAQ.GPIO.io.pi" or to address of the transport into step 1; tracing for the address changing is supported;</li> <li> <i>addr</i> — the I2C slave device's address [0...119];</li> <li> <i>RS, E, D4, D5, D6, D7</i> — numbers of the GPIO pins where connected the proper data ones of the sensor.</li></ul></dd> <dd>5. RESULT: The logical parameter object will perform interaction and setting lines' values to the display.</dd></dl> </div><table style="border-top: dotted 2px #999999; margin-top: 20pt; color: gray;" width="100%"><tr><td style="text-align: left;" width="40%"><a href="http://oscada.org/wiki/Libs/LowLevelDevices/ru">Libs/LowLevelDevices/ru</a> - <a href="http://oscada.org/en/main/about-the-project/licenses/">GFDL</a></td><td style="text-align: center;">March 2025</td><td style="text-align: right;" width="40%">OpenSCADA 1+r3012</td></tr></table></body> </html>