Siemens S7-1200 SCL

Michal_dk

Member
Join Date
Oct 2007
Location
Vejen
Posts
153
Hi Guys!

I'm preparing a short training for some colleagues on how to use the S7-1200 CPU and while explaining the 3 different programming languages I ran into a slight problem :eek:

How on earth do I make a simple program with a couple of branches in SCL? :confused:

I have:

LADex.png

And what I have figured out in SCL:

SCLex.png

But to me this seems a lot of programming to get the simple branch, is there a simpler way of doing this?

Mind you that the training is not intended to make programmers of my colleagues, merely to help them setup and test small systems when visiting customers.

Best regards,

Michal
 
You could eliminate the If then else and use

Code:
output := (logic expression)

but apart from that, that's what you get using SCL
 
Hmm, yes I see. I think my problem was that I wanted to "go the other way around" i.e. starting with the expression and ending with the output.

But this looks a lot more like I expected it to:

SCLex2.png

Thanks! :site:

Best regards,

Michal
 

Similar Topics

Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
251
commentaire communiqué siemens s7-1200 avec vfd delta ? (cablage et sur tia portal )
Replies
0
Views
127
Hi, I have a 1214 on ip 192.168.0.100. This is connected to other modules through a switch on same network. I need to connect this to a company...
Replies
1
Views
179
Hi Experts, I would like to make firmware upgrade from v3.0 to v4.5 (S7-1200 CPU 1215C). Can I do it from v3.0 to v4.5? Do I need to take some...
Replies
6
Views
283
Hi Guys, I am trying to establish communication over profinet between Siemens S7-1200 PLC as IO device and codesys plc as IO controller. But I am...
Replies
43
Views
2,855
Back
Top Bottom