Help regarding CASE Structure in Allen Bradley Studio 5000

huzzygr8

Member
Join Date
Oct 2020
Location
Germany
Posts
13
Hello everyone,
I have recently started a new project using ST in Studio 5000.
Previously, I have programmed in ST in Siemens. As i was writting my code in Studio 5000 i came across the following problem with CASE_OF

// In Siemens i had the following code:

CASE #req OF
#MANUAL: //constant as a selector variable
expressions.....
END_CASE

It works perfectly fine

// In AB Studio 5000 i have written the following code:

CASE G.Req OF
C.MANUAL: //constant as a selector variable (shows error here)
expressions.....
End_Case;

The above code returns an error. How can i use C.MANUAL as a selector for my case structure.

Note: Both G.Req and C.MANUAL are of INT data type
 
I have not programmed AB in ST but have you tried putting in fixed values like 1,2,3 etc. just to check the case statement is working, as I said I have never done AB in ST and it might be the case that it will not accept variables even constants.
I also suggest you post this in the main Q&A as many people do not even look in the practice area.
 

Similar Topics

Hello everyone, I have recently started a new project using ST in Studio 5000. Previously, I have programmed in ST in Siemens. As i was writting...
Replies
4
Views
2,837
Dear Memners, i have an issue regarding factory talk view alarm sound, i have set internal bell for sevarity =1, internal speeker are working fine...
Replies
2
Views
2,058
I have a micrologix 1200 with me, it communicates with pc with the help of Rs-232 Cable. My computer have Usb so i connect the usb to serial cable...
Replies
2
Views
1,471
I have panelview 550 and micrologix 1200 with me i have loaded a program in ML 1200 and downloaded a hmi screen through rs 232 port on hmi through...
Replies
3
Views
1,528
Hi all, I have a request from client as follows, There's one PID for Control valve which would be controlling on basis of temperature. One...
Replies
1
Views
1,502
Back
Top Bottom