SCL and timers

komatic

Member
Join Date
Apr 2007
Location
Ukraine
Posts
29
Hi all, i am newbe in SCL
my question:
what better use in SCL S5 timers or SFB timers

and may i use timers in IF-ELSE structure, like this (i think its not good):

IF m0.0
THEN
BCD := S_ODT(T_NO:=T1,
S:= condition_1,
R:= condition_2,
TV:= T#60s,
Q:=M1.0);
END_IF;
 
I'd use the SFB timers as you don't need to keep track of timer numbers as you do when using the S5 timers.

I would also process the timers all the time.
 

Similar Topics

Hello, I want to create a FC function that uses SCL code that checks deviation of a controllers actual measured value from its setpoint and then...
Replies
3
Views
7,107
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
81
Hi, I have an intermediate-advance knowledge of programming with TIA Porta in Ladder, would you recommend me to start learning SCL for it to...
Replies
11
Views
559
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
317
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
652
Back
Top Bottom