Variable from another master
VladaPUB
Posts: 139
I have 50 controlers in 50 appartments, and one "main" controler, that need to pick up some variables from that 50 controlers.
What is simple way to do it ?
What is simple way to do it ?
0
Comments
If you are using channels and levels (and possibly different ports), you have to be sure to use the set_virtual_levels, set_virtual_channels and set_virtual_ports commands, and you will have to define the virtual device in both processors.
If you want suggestions on which method to use, post a brief description of the data you are sharing and why you are sharing it and I am sure that at least one or two people here will share an opinion
Jeff
What I would do is maybe create one structure to hold the values you need the main master to have. Use VARIABLE TO STRING, to binary encode them. Then either do a send command to the virtual device on the main master or write that binary encoded string as a file. Then have the main master fetch that file from each master when it needs it.
If that is posibile ?
No matter what you do here, the source will need to be changed in the 50 controllers.
Ok, because, it is problem, or better to say lot of work to do that !
SOme variable like
all controlers have different system number, just to say
// Main Master Code
dvTempRm1 = 5001:1:1
dvTempRm2 = 5001:1:2
dvTempRm3 = 5001:1:3
...
dvTempRm49 = 5001:1:49
dvTempRm50 = 5001:1:50
DEFINE_EVENTS
DATA_EVENT[dvTempRm50]
{
}