Вверх ↑
Этот топик читают: Гость
Ответов: 7
Рейтинг: 1
#1: 2009-03-18 22:57:03 ЛС | профиль | цитата
Здравствуйте! Сделал матрицу кнопок с тригерами, нужно формировать код строк и код столбцов. Код может быть шестнадцатиричный. Подскажите алгоритм и компаненту с помощью которой это можно сделать или может у кого примерчик есть? А вот сама матрица кнопок:
Add(MainForm,2953706,70,21){
Width=884
Height=475
}
Add(Button,9700368,175,112)
{
Left=345
Top=90
Width=25
Caption=""
Point(doCaption)
link(onClick,6505361:doWork1,[])
}
Add(MultiElement,6505361,259,112)
{
@Hint=#6:Тригер|
link(onEvent1,9700368:doCaption,[(303,118)(303,106)(163,106)(163,118)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,6443091,175,133)
{
Left=380
Top=90
Width=25
Caption=""
Point(doCaption)
link(onClick,5460115:doWork1,[])
}
Add(MultiElement,5460115,259,133)
{
@Hint=#6:Тригер|
link(onEvent1,6443091:doCaption,[(303,139)(303,127)(163,127)(163,139)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,12220349,175,28)
{
Left=415
Top=120
Width=25
Caption=""
Point(doCaption)
link(onClick,535506:doWork1,[])
}
Add(MultiElement,535506,259,28)
{
@Hint=#6:Тригер|
link(onEvent1,12220349:doCaption,[(303,34)(303,22)(163,22)(163,34)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,8160632,175,49)
{
Left=415
Top=90
Width=25
Caption=""
Point(doCaption)
link(onClick,11981813:doWork1,[])
}
Add(MultiElement,11981813,259,49)
{
@Hint=#6:Тригер|
link(onEvent1,8160632:doCaption,[(303,55)(303,43)(163,43)(163,55)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,7958298,175,70)
{
Left=345
Top=120
Width=25
Caption=""
Point(doCaption)
link(onClick,4933549:doWork1,[])
}
Add(MultiElement,4933549,259,70)
{
@Hint=#6:Тригер|
link(onEvent1,7958298:doCaption,[(303,76)(303,64)(163,64)(163,76)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,4849016,175,91)
{
Left=380
Top=120
Width=25
Caption=""
Point(doCaption)
link(onClick,7224031:doWork1,[])
}
Add(MultiElement,7224031,259,91)
{
@Hint=#6:Тригер|
link(onEvent1,4849016:doCaption,[(303,97)(303,85)(163,85)(163,97)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,2994057,175,238)
{
Left=345
Top=150
Width=25
Caption=""
Point(doCaption)
link(onClick,5802692:doWork1,[])
}
Add(MultiElement,5802692,259,238)
{
@Hint=#6:Тригер|
link(onEvent1,2994057:doCaption,[(303,244)(303,232)(163,232)(163,244)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,10946749,175,259)
{
Left=380
Top=150
Width=25
Caption=""
Point(doCaption)
link(onClick,11433588:doWork1,[])
}
Add(MultiElement,11433588,259,259)
{
@Hint=#6:Тригер|
link(onEvent1,10946749:doCaption,[(303,265)(303,253)(163,253)(163,265)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,15747211,175,154)
{
Left=415
Top=180
Width=25
Caption=""
Point(doCaption)
link(onClick,6656627:doWork1,[])
}
Add(MultiElement,6656627,259,154)
{
@Hint=#6:Тригер|
link(onEvent1,15747211:doCaption,[(303,160)(303,148)(163,148)(163,160)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,1719718,175,175)
{
Left=415
Top=150
Width=25
Caption=""
Point(doCaption)
link(onClick,9212680:doWork1,[])
}
Add(MultiElement,9212680,259,175)
{
@Hint=#6:Тригер|
link(onEvent1,1719718:doCaption,[(303,181)(303,169)(163,169)(163,181)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,11459721,175,196)
{
Left=345
Top=180
Width=25
Caption=""
Point(doCaption)
link(onClick,3382868:doWork1,[])
}
Add(MultiElement,3382868,259,196)
{
@Hint=#6:Тригер|
link(onEvent1,11459721:doCaption,[(303,202)(303,190)(163,190)(163,202)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,4297215,175,217)
{
Left=380
Top=180
Width=25
Caption=""
Point(doCaption)
link(onClick,2462988:doWork1,[])
}
Add(MultiElement,2462988,259,217)
{
@Hint=#6:Тригер|
link(onEvent1,4297215:doCaption,[(303,223)(303,211)(163,211)(163,223)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,1504512,175,364)
{
Left=450
Top=90
Width=25
Caption=""
Point(doCaption)
link(onClick,14518221:doWork1,[])
}
Add(MultiElement,14518221,259,364)
{
@Hint=#6:Тригер|
link(onEvent1,1504512:doCaption,[(303,370)(303,358)(163,358)(163,370)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,5928088,175,385)
{
Left=485
Top=90
Width=25
Caption=""
Point(doCaption)
link(onClick,5515411:doWork1,[])
}
Add(MultiElement,5515411,259,385)
{
@Hint=#6:Тригер|
link(onEvent1,5928088:doCaption,[(303,391)(303,379)(163,379)(163,391)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,11715517,175,280)
{
Left=520
Top=120
Width=25
Caption=""
Point(doCaption)
link(onClick,3719653:doWork1,[])
}
Add(MultiElement,3719653,259,280)
{
@Hint=#6:Тригер|
link(onEvent1,11715517:doCaption,[(303,286)(303,274)(163,274)(163,286)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,9499975,175,301)
{
Left=520
Top=90
Width=25
Caption=""
Point(doCaption)
link(onClick,12725955:doWork1,[])
}
Add(MultiElement,12725955,259,301)
{
@Hint=#6:Тригер|
link(onEvent1,9499975:doCaption,[(303,307)(303,295)(163,295)(163,307)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,7850370,175,322)
{
Left=450
Top=120
Width=25
Caption=""
Point(doCaption)
link(onClick,8985194:doWork1,[])
}
Add(MultiElement,8985194,259,322)
{
@Hint=#6:Тригер|
link(onEvent1,7850370:doCaption,[(303,328)(303,316)(163,316)(163,328)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,5939459,175,343)
{
Left=485
Top=120
Width=25
Caption=""
Point(doCaption)
link(onClick,3115639:doWork1,[])
}
Add(MultiElement,3115639,259,343)
{
@Hint=#6:Тригер|
link(onEvent1,5939459:doCaption,[(303,349)(303,337)(163,337)(163,349)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,13226407,175,490)
{
Left=450
Top=150
Width=25
Caption=""
Point(doCaption)
link(onClick,5121035:doWork1,[])
}
Add(MultiElement,5121035,259,490)
{
@Hint=#6:Тригер|
link(onEvent1,13226407:doCaption,[(303,496)(303,484)(163,484)(163,496)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,12246793,392,210)
{
Left=570
Top=165
Width=25
Caption=""
Point(doCaption)
link(onClick,13398493:doWork1,[])
}
Add(MultiElement,13398493,476,210)
{
@Hint=#6:Тригер|
link(onEvent1,12246793:doCaption,[(520,216)(520,204)(380,204)(380,216)])
link(onEvent2,2540382:doText,[(534,223)(534,216)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,3009206,175,406)
{
Left=520
Top=180
Width=25
Caption=""
Point(doCaption)
link(onClick,16028029:doWork1,[])
}
Add(MultiElement,16028029,259,406)
{
@Hint=#6:Тригер|
link(onEvent1,3009206:doCaption,[(303,412)(303,400)(163,400)(163,412)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,7460601,175,427)
{
Left=520
Top=150
Width=25
Caption=""
Point(doCaption)
link(onClick,13397273:doWork1,[])
}
Add(MultiElement,13397273,259,427)
{
@Hint=#6:Тригер|
link(onEvent1,7460601:doCaption,[(303,433)(303,421)(163,421)(163,433)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,9323533,175,448)
{
Left=450
Top=180
Width=25
Caption=""
Point(doCaption)
link(onClick,7342488:doWork1,[])
}
Add(MultiElement,7342488,259,448)
{
@Hint=#6:Тригер|
link(onEvent1,9323533:doCaption,[(303,454)(303,442)(163,442)(163,454)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,13051897,175,469)
{
Left=485
Top=180
Width=25
Caption=""
Point(doCaption)
link(onClick,13134303:doWork1,[])
}
Add(MultiElement,13134303,259,469)
{
@Hint=#6:Тригер|
link(onEvent1,13051897:doCaption,[(303,475)(303,463)(163,463)(163,475)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=2
WorkCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
link(onSwitch,8352169:onEvent2,[(257,69)(257,34)])
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Edit,2540382,560,210)
{
Left=560
Top=210
Text="0"
}
[/cоde]
карма: 0

0
Ответов: 3514
Рейтинг: 184
#2: 2009-03-18 23:06:11 ЛС | профиль | цитата
Используй тег code
карма: 0
0
Ответов: 485
Рейтинг: 86
#3: 2009-03-18 23:06:26 ЛС | профиль | цитата
sowa100, Используй тэг code для вставки схем. И смотри в сторону использования вот этого элемента:

Add(BitsToInt,15279095,798,105)
{
}

карма: 0

0
Главный модератор
Ответов: 2999
Рейтинг: 396
#4: 2009-03-18 23:09:13 ЛС | профиль | цитата
Обмен файлами
карма: 6
Дорогу осилит идущий. Install/Update HiAsm.NET
0
Ответов: 1328
Рейтинг: 69
#5: 2009-03-19 00:27:04 ЛС | профиль | цитата
sowa100, не понятна задача, что значит
формировать код строк и код столбцов

карма: 2

0
Ответов: 7
Рейтинг: 1
#6: 2009-03-19 00:50:04 ЛС | профиль | цитата
Вопрос решен, спасибо filyaxxxcom!
карма: 0

0
Ответов: 1328
Рейтинг: 69
#7: 2009-03-19 02:09:06 ЛС | профиль | цитата
sowa100, code_12271.txt
карма: 2

2
файлы: 1code_12271.txt [2.9KB] [210]
Голосовали:sowa100, filyaxxxcom
Ответов: 7
Рейтинг: 1
#8: 2009-03-19 04:11:47 ЛС | профиль | цитата
Konst, схемку очень интересную выложили но я разобраться так и не смог с ней( не мой уровень пока), сделал по другому, по проще. И опять вопрос, в прикрепленной мной схеме несколько строк кнопок, каждая строка формирует 1 байт данных и нужно эти байты выстроить последовательно и выкинуть в порт. Т.е. алгоритм примерно такой - управляющее слово, пауза, 1 байт, пауза, 2 байт, пауза и так далее пока все данные строк не уйдут в порт а будет их 8 байт(8 строк)?
Add(Button,12246793,-17,190){
Left=305
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,13398493:doWork1,[])
}
Add(MultiElement,13398493,25,190)
{
@Hint=#6:Тригер|
link(onEvent1,12246793:doCaption,[(69,196)(69,184)(-29,184)(-29,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(BitsToInt,15279095,130,246)
{
Count=8
link(Bit1,13398493:Var1,[(136,231)(31,231)])
link(Bit2,4306580:Var1,[(143,227)(122,227)])
link(Bit3,10393824:Var1,[(150,234)(213,234)])
link(Bit4,111375:Var1,[(157,231)(297,231)])
link(Bit5,3727421:Var1,[(164,234)(402,234)])
link(Bit6,6635506:Var1,[(171,234)(507,234)])
link(Bit7,10268411:Var1,[(178,234)(612,234)])
link(Bit8,14724644:Var1,[(185,234)(717,234)])
}
Add(Button,10963940,74,190)
{
Left=340
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,4306580:doWork1,[])
}
Add(MultiElement,4306580,116,190)
{
@Hint=#6:Тригер|
link(onEvent1,10963940:doCaption,[(160,196)(160,184)(62,184)(62,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,12193188,165,190)
{
Left=375
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,10393824:doWork1,[])
}
Add(MultiElement,10393824,207,190)
{
@Hint=#6:Тригер|
link(onEvent1,12193188:doCaption,[(251,196)(251,184)(153,184)(153,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,13345815,249,190)
{
Left=410
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,111375:doWork1,[])
}
Add(MultiElement,111375,291,190)
{
@Hint=#6:Тригер|
link(onEvent1,13345815:doCaption,[(335,196)(335,184)(237,184)(237,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,9893295,354,190)
{
Left=445
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,3727421:doWork1,[])
}
Add(MultiElement,3727421,396,190)
{
@Hint=#6:Тригер|
link(onEvent1,9893295:doCaption,[(440,196)(440,184)(342,184)(342,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,13083207,459,190)
{
Left=480
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,6635506:doWork1,[])
}
Add(MultiElement,6635506,501,190)
{
@Hint=#6:Тригер|
link(onEvent1,13083207:doCaption,[(545,196)(545,184)(447,184)(447,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,13447098,564,190)
{
Left=515
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,10268411:doWork1,[])
}
Add(MultiElement,10268411,606,190)
{
@Hint=#6:Тригер|
link(onEvent1,13447098:doCaption,[(650,196)(650,184)(552,184)(552,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,12346736,669,190)
{
Left=550
Top=55
Width=25
Caption=""
Point(doCaption)
link(onClick,14724644:doWork1,[])
}
Add(MultiElement,14724644,711,190)
{
@Hint=#6:Тригер|
link(onEvent1,12346736:doCaption,[(755,196)(755,184)(657,184)(657,196)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Timer,691591,-122,155)
{
Interval=10
link(onTimer,9897739:doEvent1,[])
}
Add(Button,5040984,-10,365)
{
Left=305
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,2770882:doWork1,[])
}
Add(MultiElement,2770882,32,365)
{
@Hint=#6:Тригер|
link(onEvent1,5040984:doCaption,[(76,371)(76,359)(-22,359)(-22,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(BitsToInt,14707469,137,421)
{
Count=8
link(Bit1,2770882:Var1,[(143,409)(38,409)])
link(Bit2,6408849:Var1,[(150,402)(129,402)])
link(Bit3,12512592:Var1,[(157,409)(220,409)])
link(Bit4,15141263:Var1,[(164,406)(304,406)])
link(Bit5,417567:Var1,[(171,409)(409,409)])
link(Bit6,15702086:Var1,[(178,409)(514,409)])
link(Bit7,15791372:Var1,[(185,409)(619,409)])
link(Bit8,16090319:Var1,[(192,409)(724,409)])
}
Add(Button,7420477,81,365)
{
Left=340
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,6408849:doWork1,[])
}
Add(MultiElement,6408849,123,365)
{
@Hint=#6:Тригер|
link(onEvent1,7420477:doCaption,[(167,371)(167,359)(69,359)(69,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,2893281,172,365)
{
Left=375
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,12512592:doWork1,[])
}
Add(MultiElement,12512592,214,365)
{
@Hint=#6:Тригер|
link(onEvent1,2893281:doCaption,[(258,371)(258,359)(160,359)(160,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,6686171,256,365)
{
Left=410
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,15141263:doWork1,[])
}
Add(MultiElement,15141263,298,365)
{
@Hint=#6:Тригер|
link(onEvent1,6686171:doCaption,[(342,371)(342,359)(244,359)(244,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,5841404,361,365)
{
Left=445
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,417567:doWork1,[])
}
Add(MultiElement,417567,403,365)
{
@Hint=#6:Тригер|
link(onEvent1,5841404:doCaption,[(447,371)(447,359)(349,359)(349,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,8325931,466,365)
{
Left=480
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,15702086:doWork1,[])
}
Add(MultiElement,15702086,508,365)
{
@Hint=#6:Тригер|
link(onEvent1,8325931:doCaption,[(552,371)(552,359)(454,359)(454,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,1122730,571,365)
{
Left=515
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,15791372:doWork1,[])
}
Add(MultiElement,15791372,613,365)
{
@Hint=#6:Тригер|
link(onEvent1,1122730:doCaption,[(657,371)(657,359)(559,359)(559,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Button,13182923,676,365)
{
Left=550
Top=85
Width=25
Caption=""
Point(doCaption)
link(onClick,16090319:doWork1,[])
}
Add(MultiElement,16090319,718,365)
{
@Hint=#6:Тригер|
link(onEvent1,13182923:doCaption,[(762,371)(762,359)(664,359)(664,371)])
}
BEGIN_SDK
Add(EditMulti,8352169,21,21)
{
EventCount=3
WorkCount=1
VarCount=1
link(doWork1,2733293:doEvent1,[(73,27)(73,34)])
link(Var1,7334230:State,[(27,158)(167,158)])
}
Add(Switch,5481113,161,28)
{
DataOn=String(on)
link(onSwitch,8352169:onEvent1,[(257,34)(257,27)])
}
Add(Switch,7334230,161,63)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,2733293,126,28)
{
link(onEvent1,5481113:doSwitch,[])
link(onEvent2,7334230:doSwitch,[(150,41)(150,69)])
}
END_SDK
Add(Hub,9897739,-73,155)
{
OutCount=3
link(onEvent1,15279095:doNumber,[(35,161)(35,252)])
link(onEvent2,14707469:doNumber,[(39,168)(39,427)])
link(onEvent3,2360547:doTimer,[(25,175)(25,504)])
}
Add(LedNumber,282875,172,498)
{
Left=370
Top=140
Width=150
Height=60
Text="123"
ShowLines=0
ColorHover=0
Point(doText)
Point(Text)
link(Text,14707469:Number,[(178,476)(143,476)])
}
Add(Timer,2360547,109,498)
{
Interval=100
link(onTimer,282875:doText,[])
}
[/cоde]
карма: 0

0
Ответов: 2236
Рейтинг: 676
#9: 2009-03-19 08:42:14 ЛС | профиль | цитата
sowa100, если я тебя правильно понял то: code_12273.txt
карма: 11

0
файлы: 1code_12273.txt [15KB] [449]
Ответов: 7
Рейтинг: 1
#10: 2009-03-20 02:19:49 ЛС | профиль | цитата
Да почти все правильно, спасибо! Говоря про паузу имелась ввиду небольшая временная пауза, но я исправил теперь выставляя на матрице кнопок некую комбинацию получаем последовательный поток чисел соответствуюших нажатым кнопкам а дальше в порт можно перефирией управлять!
карма: 0

0
10
Сообщение
...
Прикрепленные файлы
(файлы не залиты)