Professional Documents
Culture Documents
Siemens
Intro to Structured Control Language (SCL)
in TIA Portal with S7-1200/1500
Agenda
1
10/2/2019
• Math
• String Operations
• Array Operations
• Communication
• Program Flow
2
10/2/2019
3
10/2/2019
4
10/2/2019
10
5
10/2/2019
11
SCL – Comments
12
6
10/2/2019
SCL – Regions
13
14
7
10/2/2019
15
16
8
10/2/2019
17
• Breakpoint
not allowed.
18
9
10/2/2019
19
20
10
10/2/2019
• One fixed-point number with sign and the other does not, result receives next larger type with
sign
– SINT + USINT = INT
• One fixed-point number and floating point, result receives floating point type
– INT + REAL = REAL
21
22
11
10/2/2019
23
24
12
10/2/2019
25
26
13
10/2/2019
• CONTINUE
– Finishes current execution of FOR, WHILE, or REPEAT loop
– Skips remaining lines and jumps to loop check condition
• EXIT
– Leaves a FOR, WHILE, or REPEAT at any point in loop
– Skips remaining lines while exiting loop
27
28
14
10/2/2019
29
• Array defined in DB
30
15
10/2/2019
31
Live Demos
32
16
10/2/2019
SCL - Resources
• Structured Control Language (SCL V4, V5.0) for S7-300/S7-400 Programming
https://support.industry.siemens.com/cs/us/en/view/1137188
https://support.industry.siemens.com/cs/us/en/view/18735131
https://support.industry.siemens.com/cs/us/en/view/109755202
SCL Chapter
33
17