Get the system ID
Is there any function in Netlinx Studio to obtain the own System ID number? I need that information for my program to compare the number with some others because I'm working with 60 masters together...
Thanks
Elena
Thanks
Elena
0
Comments
IF(SYSTEM_NUMBER = 3) { // do something if the system number is 3.... }Another applicationDEFINE_DEVICE dvMaster = 0:1:0 DEFINE_VARIABLE INTEGER nMySysNum = 3 // the system number the master should have DEFINE_EVENT DATA_EVENT[dvMaster] { ONLINE: { IF(SYSTEM_NUMBER <> nMySysNum) // if the current system number differs { SET_SYSTEM_NUMBER(nMySysNum) // set the new system number REBOOT(dvMaster) // reboot the system to take effect } } }Thanks!