Quantcast
Channel: Siemens Latest Topics
Viewing all articles
Browse latest Browse all 698

SCL Code not working.

$
0
0

Hello, 

I am new to SCL programming in TIA Portal. 

I have some experience in TwinCat3, but i have  difficulties getting som simpelt code to work in TIA. 

This code works fine in TwinCat, but i does not work in TIA. 

"Timer".TOF(IN:=NOT "Timer".Q, PT:=T#2s); 

"TimerOneShot"(CLK := "Timer".Q);

IF "TimerOneShot".Q THEN
    "Test" := "Test" + 1;
END_IF;

Can anyone help me in the right track.... ?? 


Viewing all articles
Browse latest Browse all 698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>