Tell if its NX or NI in program?
Anyone know if you can tell if its a NX or NI in the program as I want to program to use the serial fault detect if its NX or use my old way for an NI in a serial module?
0
Comments
http://www.amx.com/assets/AMX-PI2/amx-pi2.htm
NX Master DEVICE ID: 0x018D or 0x1B7
Short version within serial module:
DEFINE_VARIABLE VOLATILE INTEGER bIs_NI = TRUE; DEFINE_EVENT DATA_EVENT [dvThisDevice] { ONLINE: { WAIT 100 { IF(FIND_STRING(DEVICE_ID_STRING(0:1:0),'NX',1)) bIs_NI = FALSE; } } }Then just using bIs_NI is code for NI or NX control