dskplc
Member
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.
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.