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,048
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
253
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
590
Hi all, This is my first post; I am new to PLC Controls stuff and English is not my native language, so I apologize in advance if something is...
Replies
4
Views
476
Hi! I am working on a project were we will be replacing an 300 CPU with a 1500 CPU and we are working on migrating / converting code. There is a...
Replies
9
Views
1,004
Back
Top Bottom