PLC5 Structured Text

Kmitch

Member
Join Date
Jul 2002
Posts
19
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;
 
Never used BTR in ST, would guess the parameters are similar to the ladder version.
Does the BTR even work? Does the values in N37:0 ever change?


Is there a BTW for this module?
 
I have not used a block transfer instruction in structured text myself. However, generally speaking, the "block format" instructions (BTR/BTW, MSG, PID) in sturctured text follow the sequentially from the ladder instructions. I don't think it is a coincidence that the ST version you listed has the same number ofg fields as the ladder version, discounting the module type which just preloads the control word.

Keith
 
Keith,
You are correct. I found an example and it showed just that. As you see my code does not have anything for the Data File.
I am not sure if my RSLogix5 Ver.6.30.00 is compatible with the structured text. I will try to dig up some 6200 software next week.:oops:
Thanks
Keith
 

Similar Topics

I am just beginning with ST. I would very much appreciate it if someone could point me in the right direction to find some good examples. Or if...
Replies
2
Views
4,625
I am using the following formula and I am getting error, Invalid Expression - too many closing parenthesis. when i copy the formula to notepad or...
Replies
4
Views
145
Preface: Kinda long, so I made section titles Intro: I just want to see if anyone here has seen anything similar. A PLC5-40 series C enhanced...
Replies
3
Views
364
Hi, can anyone help me get a pdf file for this RSP files. They are from a PLC5. Thanks
Replies
5
Views
506
Back
Top Bottom