few design/tech questions
Hi all
I am new to AMX , and I have few design/tech question.
I am apologizing about my basic knowledge, I have to learn all from mauals and this forum so please forgive me
1. how can I control an IP device with a propriety protocol? is there any IP modlue that I can use?
2. how can I make channels event (buttons push) independent for every page I create in TPD4?
I want the channels in each page to start from 1. is there any way to do it?
and what if I am using more than 4000 buttons in a TP? how can I create more than 4000 buttons in one TP?
I don't fully undestand how to use address port and address code in my program code...
3. if I have to programm a house with 10 controllers. can I create 1 system that holds all the cotrollers? or should I design the home with 10 different systems that talkes together with MVM ( I undestand there is a way to communicate from master to master)
I mean system have one master but more than one controller?
4. can someone please give a code example of a project? I don't have an example of a complex system, all basic modlues.
thanks very much for any info!
Ady.
I am new to AMX , and I have few design/tech question.
I am apologizing about my basic knowledge, I have to learn all from mauals and this forum so please forgive me

1. how can I control an IP device with a propriety protocol? is there any IP modlue that I can use?
2. how can I make channels event (buttons push) independent for every page I create in TPD4?
I want the channels in each page to start from 1. is there any way to do it?
and what if I am using more than 4000 buttons in a TP? how can I create more than 4000 buttons in one TP?
I don't fully undestand how to use address port and address code in my program code...
3. if I have to programm a house with 10 controllers. can I create 1 system that holds all the cotrollers? or should I design the home with 10 different systems that talkes together with MVM ( I undestand there is a way to communicate from master to master)
I mean system have one master but more than one controller?
4. can someone please give a code example of a project? I don't have an example of a complex system, all basic modlues.
thanks very much for any info!
Ady.
0
Comments
IP control is nearly the same as RS-232 control. You need to get protocol of equipment you want to control, you setup IP connection to remote device and then you send/receive strings
You can start from channel 1 on each page if you use a different port for buttons on each page
Through intermaster you have easy choice, either one program in one controller that controls everything but it means very large program with numerous modules and one point of failure, or one program in each controler that interacts through intermaster so if one controler fails you get only a part of system out of service but you need to be more strict on programmation as you'll need to handle more than one program
You can find here some piece of codes made by people for control of equipment, it should help you
Vinc
You have to be careful tho, because you only have 100 ports allowed on a G4 touchpanel:
Altho, unless you are trying to display the status of every single light bulb, every security sensor, and all equipment status on an entire college campus, it seems you should be able to make everything work without a problem. I can say that I have never seen and I can only think of a couple situations that would require the number of buttons you are qorried about. (Think about the old days when programmers only had 1024 channels total on an entire panel and made it work... and each device had a limit of 256 channels. )
Programming can solve most of your channel concerns with relative ease. By simply tracking the current page, you could use the same port and channels numbers on all pages. Then, when handling the button pushes (or feedback) you use Select...Active or Switch...Case logic to do the appropriate thing.
I often find that a combination of multiple ports and Switch..Case or Select..Active logic is necessary in my jobs.
Jeff
P.S.
The people of the forum might be better able to help if you give us an idea of what you are trying to accomplish as there are many ways to skin a cat and often the best way(s) depend(s) on the situation. If you are just trying to learn, I find it helps me to develop a hypothetical job with specific requirements.
Thanks a lot for your answers!
I see, I will look for examples
thats what I don't fully undestand. how in my code I treat the button evens listening according to the address ports? I know how to listen to buttons events but no port is coming from the event beside chanel number...
yes I think the same, that mean I have to control devices from other masters?
let me see if I undestand right:
I will have ond controller in every system - no more than one controller?
and to control devices taht connected to controller A from TP that connected to controller B I will have to send command to the from A to B, so A must know B.
thats mean that A must know ALL the controllers that will send him commands to his devices?
and how about channels? to get statuses of device changes (RS232 etc) ?
you are right, just wanted to see a complex house approach and not small smples, I will happy if someone can direct me to a good sample at the forum.
thanks again for all
Ady.
150 devices on 15 Thoutpanels, media server, audio matrix etc etc...
Many many rooms - a lot of screen and configuration.
its a huge project.
I agree 4000 is good enhough, but I want every page to start from 1 - its much much easyer to program this way.. I just don't get how to do it.
Can you please expand a little on how to implement it?
how to do it or just what I need to read ?
thanks
They can be 189,190,191,192 and in the BUTTON_EVENT all you'll have to think about is 1,2,3,4.
EXAMPLE:
thanks for you reply
I still need to think about channel numbers is TP4Design...
lets say I have 2 pages
page 1 buttons with channels 1- 10
page 2 buttons with channels 11-20
now if I have to add a button to the first page he will have 21... not so comfortable for programming in the code later?
VCR
buttons 1-X on touch panel Port 1
DVD
buttons 1-X on touch panel Port 2
dvVCR=5001:8:0
dvDVD=5001:9:0
dvTP_VCR=10001:1:0
dvTP_DVD=10001:2:0
BUTTON_EVENT[dvTP_VCR,0]
{
PUSH:
{
TO[BUTTON.INPUT]
TO[dvVCR,BUTTON.INPUT.CHANNEL]
}
}
BUTTON_EVENT[dvTP_DVD,0]
{
PUSH:
{
TO[BUTTON.INPUT]
TO[dvDVD,BUTTON.INPUT.CHANNEL]
}
}
In the above example
BUTTON_EVENT[dvTP_VCR,0]=any button on this touch panel port.
button number=IR channel number for the VCR.
This is all the code that is required for an IR VCR and DVD.
Don't lock yourself into one way.
JB
As for using 1-10 for page one and 11-20 for page two, you could always use 1-10 for page 1 and 101-110 for page 2. Or if that is too generous, 51-60. The processor doesn't care what channel numbers are on which page, you just have to use a system that you can keep clear in your head.
Another suggestion would be to follow the SNAPI channels. (NetLinx Studio>Help>Standard NetLinx API Help) This should in theory make it easier to implement designs by other AMX programmers and new equipment. It also lets you simplify code for IR controlled devices:
To use this method, you have to use a different port for each device on the touch panel.
Jeff
I will check some of the ways that you wrote here and see what work best for me.
thanks again !
Ady
p.s
I don't have VisualArchitect, is it worth get it?
Well, since it is free, I would say that it is definately worth it. If the documentation that you can produce with it was the only use of the program, I would still consider it worth it. Because you are new to programming, the code that it generates could be very valuable as a learning tool. I just took a look at the code it is generating and I am VERY impressed. 100x better than the mess that Design Xpress use to create
Jeff