GetData (nn[0], "RTU1", 4x_Bit, 1#102, 1)
GetData (nn[1], "RTU1", 4x_Bit, 2#102, 1)
GetData (nn[2], "RTU1", 4x_Bit, 3#102, 1)
GetData (nn[3], "RTU1", 4x_Bit, 4#100, 1)
GetData (nn[4], "RTU1", 4x_Bit, 5#100, 1)
GetData (nn[5], "RTU1", 4x_Bit, 6#100, 1)
GetData (nn[6], "RTU1", 4x_Bit, 7#102, 1)
GetData (nn[7], "RTU1", 4x_Bit, 8#102, 1)
GetData (nn[8], "RTU1", 4x_Bit, 9#102, 1)
GetData (nn[9], "RTU1", 4x_Bit, 10#102, 1)
GetData (nn[10], "RTU1", 4x_Bit, 11#102, 1)
GetData (nn[11], "RTU1", 4x_Bit, 12#102, 1)
GetData (nn[12], "RTU1", 4x_Bit, 13#102, 1)
GetData (nn[13], "RTU1", 4x_Bit, 14#102, 1)
for n=0 to 14 step 1
if nn[n]==true then
SetData(on, "Local HMI", LB, 100, 1)
//else
if nn[n]==false then
SetData(off, "Local HMI", LB, 100, 1)
end if
end if
next n