Hello, I am working on a project in which I need to use some spare analog inputs on a 1771 IFE card in a PLC5/20. The BTR is set up using structured text. I think N37 is the data register
to read in data for the card because this is the only BTR in the program that I can not account for, but monitoring the data file compared to the 1771IFE Manual does not seem to be correct. Only one other BTR in the program and it is writtten in ladder. I can not tell by this code which slot it is reading data from or the length. I can not find any documentation on The BTR instruction in structured text. Any help will be appreciated.I do not have documentation for this program.
IF ((S:30 <> N37:40)) THEN
F38:17 := S:30 / 1000.0;
N37:40 := S:30;
END_IF;
F38:0 := ((S:8 / 1000.0) * 0.05) + (F38:0 * 0.95);
BTR (0, 0, 0, N37:0, 0, 0, 0) ;
N37:0/15 := RETAIN(0);
F38:28 := (N37:19 + N37:43) * F38:24;
F38:20 := ((2.0 * F38:20) + ((F38:28 - F38:33) / F38:17)) / 3.0;
F38:33 := F38:28;
to read in data for the card because this is the only BTR in the program that I can not account for, but monitoring the data file compared to the 1771IFE Manual does not seem to be correct. Only one other BTR in the program and it is writtten in ladder. I can not tell by this code which slot it is reading data from or the length. I can not find any documentation on The BTR instruction in structured text. Any help will be appreciated.I do not have documentation for this program.
IF ((S:30 <> N37:40)) THEN
F38:17 := S:30 / 1000.0;
N37:40 := S:30;
END_IF;
F38:0 := ((S:8 / 1000.0) * 0.05) + (F38:0 * 0.95);
BTR (0, 0, 0, N37:0, 0, 0, 0) ;
N37:0/15 := RETAIN(0);
F38:28 := (N37:19 + N37:43) * F38:24;
F38:20 := ((2.0 * F38:20) + ((F38:28 - F38:33) / F38:17)) / 3.0;
F38:33 := F38:28;