Problem: automatic, step and manual mode in SCL

BoSChoW

Member
Join Date
Apr 2006
Location
Nova Gorica
Posts
107
Hi guys,
i was trying to make a program in simatic step 7 with which i could with the useing of a switch choose between automatic, manual and step mode. Any ideas how do i do that in SCL. I was trying to do it with a CASE statemant followed by an IF but i failed, it seems that the program remains stuck in the CASE statement in the last execution . . . The program looks like this:

IF auto OR step //if auto mode or step mode is selected
THEN
CASE auto OF
1: IF op_inp.DW0=plc_inp.DW0 //if the value of inputs tyed in OP7 is equal to number of connected inputs
THEN output1:=true; output2:=false; steping:=2;
ELSIF op_inp.DW0<>plc_inp.DW0 //if the values are not equal
THEN output1:=false; output2:=false; steping:=1;
END_IF;
.
.
.
.
16: IF op_inp.DW16=plc_inp.DW16 //if the value of inputs tyed in OP7 is equal to number of connected inputs
THEN output15:=true; output16:=false; GOTO I;
ELSIF op_inp.DW0<>plc_inp.DW0 //if the values are not equal
THEN output15:=false; output16:=false; steping:=16;
END_IF;
END_CASE;

I: IF auto //if auto mode is selected
then step:=steping; //the value of steping is aquired by step
else
IF step //is setp mode is selected
then
IF start //and if the start button is pressed
then step:=steping; // the value of steping is aquired by step
else GOTO I;
END_IF;
END_IF;
END_IF;

This is my version of the program and any other suggestions are very much aprishiated. Thank you for your help and time.
 

Similar Topics

The project on the operator workstation keeps disconnecting, even though I have an installation server and operating station set up through...
Replies
0
Views
55
I have a problem, I'm running an AE Licence Manager on a Windows 2016 Server, and my Window Maker is on another separate Windows 2016 Server. My...
Replies
0
Views
78
I have one old Ansaldo VFD from 37kW and it have only sign OFF on the display after put it on the 3x400VAC. Is there any idea, how to solve this...
Replies
1
Views
79
Hello, I need to write the following program in Ladder language, but I could not integrate the Fibonacci sequence into the ladder. Can you help...
Replies
23
Views
594
On all pages of my project i have a lot of information, texts and details that should not not be shown. I can remove them for each part apart from...
Replies
0
Views
72
Back
Top Bottom