This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Difference between revisions of "CANNY 5.2 duo, Discrete IO Driver"
[unchecked revision] | [unchecked revision] |
(Created page with "=== Genegal Description === CANNY 5.2 duo users have access to three discrete general purpose IO channels. Each channel is physically available through corresponding pins of...") |
(→Equivalent circuit diagrams) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 78: | Line 78: | ||
|width="70px" style="padding-left:0.5em;"|≥ 1 | |width="70px" style="padding-left:0.5em;"|≥ 1 | ||
|style="padding-left:0.5em;"|= | |style="padding-left:0.5em;"|= | ||
− | |style="padding-left:0.5em;"|set the | + | |style="padding-left:0.5em;"|set the appropriate controller pin to the active mode / turn on counter mode - react to potential changes to the respective contact controller / to count the number of potential changes from the state "OFF" to state "ON"; |
|- valign="top" | |- valign="top" | ||
|width="70px" style="padding-left:0.5em;"|0 | |width="70px" style="padding-left:0.5em;"|0 | ||
|style="padding-left:0.5em;"|= | |style="padding-left:0.5em;"|= | ||
− | |style="padding-left:0.5em;"|set the | + | |style="padding-left:0.5em;"|set the appropriate controller pin to normal mode of operation as a digital input. |
|} | |} | ||
|} | |} | ||
Line 160: | Line 160: | ||
|} | |} | ||
|} | |} | ||
− | + | <br clear="all"> | |
=== Channel neutral state === | === Channel neutral state === | ||
− | + | При включении контроллера, все силовые выходные элементы каналов находятся в выключенном состоянии. На контактах контроллера соответствующих каналам 8 и 9 устанавливаются потенциал 12В/1мА на контакте соответствующем каналу 10 — очень слабый отрицательный потенциал («воздух»). | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | == Работа с каналами из пользовательской диаграммы == | |
− | + | При записи ненулевого значения в регистр выходного значения канала на соответствующем контакте контроллера установится электрический потенциал «GND» 120мА, а при записи значения «0», потенциал соответствующий состоянию канала в момент запуска контроллера (см.выше). | |
− | + | {| | |
− | + | |valign="top" style="padding-left:0.5em;"|''Примечание:'' | |
− | + | |valign="top" style="padding-left:0.5em;"|''В любой момент времени, вне зависимости от состояния выхода канала возможно получить значение, соответствующее фактическому текущему электрическому потенциалу на контакте данного канала, что позволяет организовать обратную связь и, при необходимости, реализовать программную защиту от перегрузки канала.'' | |
− | + | ||
− | {| | + | |
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | | + | |
− | + | ||
|} | |} | ||
− | + | An example of a functional diagram performing every second, alternate switching of electrical potentials from + 12V (1mA) to GND (120 mA) at controller terminals, corresponding to channels #8 & #9. | |
− | + | [[File:14_6_3_1.png]] | |
{| | {| | ||
− | |valign="top" style="padding-left:0.5em;"|'' | + | |valign="top" style="padding-left:0.5em;"|'''ATTENTION!''' |
− | |valign="top" style="padding-left:0.5em;"|'' | + | |valign="top" style="padding-left:0.5em;"|'''Unlike [[CANNY 7]] channels CANNY 5.2 duo are not have intellectual protection against short-circuit or overload. channel circuits are protected by a current-limiting resistors combustible (see. circuit diagram). To avoid output channels down, avoid direct connection channels with the included output potential GND to the power circuits of positive polarity or организуйте программную защиту канала в диаграмме!''' |
|} | |} | ||
− | + | The channel returns a value of "1" in its input value register, if on the appropriate controller pin establishes an electrical potential "GND"; and returns the value "0" to input value register, if on the appropriate controller pin establishes an electrical potential "+ 12 V". | |
− | + | Change potential on the channel pin #8 & #9, will result in immediate automatic exip controller from hibernation. | |
− | + | Каналы контроллера в режиме дискретного входа работают с максимальной чувствительностью, т.е. «защита от дребезга» не предусмотрена и должна быть реализована, при необходимости, в функциональной диаграмме. | |
− | + | An example of a functional diagram, switching-on a built-in green LED with the flow and hold for at least 200ms at the appropriate pin of channel №8, the potential GND: | |
− | [[File: | + | [[File:14_6_3_2.png]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
=== Equivalent circuit diagrams === | === Equivalent circuit diagrams === | ||
Line 330: | Line 200: | ||
{|border="1" style="border-collapse:collapse;" align="left" width="100%" | {|border="1" style="border-collapse:collapse;" align="left" width="100%" | ||
|- align="center" valign="top" | |- align="center" valign="top" | ||
− | !width="250px"|Channel | + | !width="250px"|Channel of controller |
!Equivalent circuit diagram | !Equivalent circuit diagram | ||
|- align="center" | |- align="center" | ||
− | | | + | |Channel #8 |
− | |[[File: | + | |[[File:14_6_8_2.png|500px|center]] |
|- align="center" | |- align="center" | ||
− | | | + | |Channel #9 |
− | |[[File: | + | |[[File:14_6_8_4.png|500px|center]] |
|- align="center" | |- align="center" | ||
− | | | + | |Channel #10 |
− | |[[File: | + | |[[File:14_6_8_3.png|500px|center]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
<br clear="all"> | <br clear="all"> | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
[[CANNY 5.2 duo]] | [[CANNY 5.2 duo]] |
Latest revision as of 19:22, 22 December 2016
Contents
Genegal Description
CANNY 5.2 duo users have access to three discrete general purpose IO channels. Each channel is physically available through corresponding pins of X3 connectors. Writing and reading data of the respective drivers registers, the functional diagram can manage the electric potential in each of these contacts and getting information about the current potential of each of them. The channel physical characteristics allow connection to various external low-voltage control circuit, or using an external protection diode, small electromagnetic relays. As an external digital signal controller capable of managing the work may use mechanical, electromechanical, and electronic buttons and switches, pulse generators, sources 0-12V voltage, the transistor outputs of various equipment, etc.
Channels operation mode and parameters specified by function diagram. At any given time, the channel can only work in one of the possible modes, but it is possible to dynamically override the channel configuration from the functional diagram.
ATTENTION! | Unlike CANNY 7 channels CANNY 5.2 duo are not have intellectual protection against short-circuit or overload. channel circuits are protected by a current-limiting resistors combustible (see. circuit diagram). To avoid output channels down, avoid direct connection channels with the included output potential GND to the power circuits of positive polarity! |
IO Registers
The parameters defining operation mode and channel current state, are set for each channel independently. Below is acceptable values specifications of registers controlling input-output channels operation in all major modes.
Register | Expected values | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||
|
|
Registers control IO channels driver are divided into containing information of the IO driver altogether and containing information about the state of each channel individually. The following describes registers control driver return values of IO channels in all major operation modes.
Register | Return values | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DIO Input Activity Detect Register |
| |||||||||||||||
|
| |||||||||||||||
|
|
Channel neutral state
При включении контроллера, все силовые выходные элементы каналов находятся в выключенном состоянии. На контактах контроллера соответствующих каналам 8 и 9 устанавливаются потенциал 12В/1мА на контакте соответствующем каналу 10 — очень слабый отрицательный потенциал («воздух»).
Работа с каналами из пользовательской диаграммы
При записи ненулевого значения в регистр выходного значения канала на соответствующем контакте контроллера установится электрический потенциал «GND» 120мА, а при записи значения «0», потенциал соответствующий состоянию канала в момент запуска контроллера (см.выше).
Примечание: | В любой момент времени, вне зависимости от состояния выхода канала возможно получить значение, соответствующее фактическому текущему электрическому потенциалу на контакте данного канала, что позволяет организовать обратную связь и, при необходимости, реализовать программную защиту от перегрузки канала. |
An example of a functional diagram performing every second, alternate switching of electrical potentials from + 12V (1mA) to GND (120 mA) at controller terminals, corresponding to channels #8 & #9.
ATTENTION! | Unlike CANNY 7 channels CANNY 5.2 duo are not have intellectual protection against short-circuit or overload. channel circuits are protected by a current-limiting resistors combustible (see. circuit diagram). To avoid output channels down, avoid direct connection channels with the included output potential GND to the power circuits of positive polarity or организуйте программную защиту канала в диаграмме! |
The channel returns a value of "1" in its input value register, if on the appropriate controller pin establishes an electrical potential "GND"; and returns the value "0" to input value register, if on the appropriate controller pin establishes an electrical potential "+ 12 V".
Change potential on the channel pin #8 & #9, will result in immediate automatic exip controller from hibernation.
Каналы контроллера в режиме дискретного входа работают с максимальной чувствительностью, т.е. «защита от дребезга» не предусмотрена и должна быть реализована, при необходимости, в функциональной диаграмме.
An example of a functional diagram, switching-on a built-in green LED with the flow and hold for at least 200ms at the appropriate pin of channel №8, the potential GND:
Equivalent circuit diagrams
Equivalent circuit diagrams for each possible state of the input-output channel shown in the table below:
Channel of controller | Equivalent circuit diagram |
---|---|
Channel #8 | |
Channel #9 | |
Channel #10 |