Using SBR in a Structured Text Routine

dskplc

Member
Join Date
Aug 2013
Location
New Zealand
Posts
119
Hello, I am stuck and need advice on using SBR in ST using RSLogix 5000.
I am very new to ST, mainly have used If and End_If. I have tried to read up on ST but so far no luck with my errors. I am using an SBR(), an XIC and a MOV. There are zero parameters in the SBR.
Here is what I have so far with 3 errors:

TRUE =: 1;
SBR_0_ST_XIC := TRUE; // BOOL
SBR_0_Out_ST :=2; // For MOV

If SBR(0) AND (SBR_0_ST_XIC) Then
(SBR_0_Out_ST = SBR_0_Out_ST_Result)
End_If;

The errors I am getting are:
1. BOOL (conditional) expression expected in the line with If
2. SBR unexpected in the line with If
3. End_If unexpected

Thanks in advance for any advice on how to deal with these errors.

ST for SBR.PNG
 

Similar Topics

I am wanting to use a subroutine to do data calculations to separate and combine 32bit and 16 bit words. I am doing this to move data to and from...
Replies
10
Views
3,699
I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
58
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
118
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
221
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
59
Back
Top Bottom