CODESYS: Using TON and CTU function blocks in Structured text (ST) programming

preview_player
Показать описание
-------------------------------------------------------------------------------------------------------------------------------------
In this video, you will learn how to use the Timer and Counter function blocks in ST programming. TON is the on-delay timer and CTU is the up-counting counter
Рекомендации по теме
Комментарии
Автор

Hi there! I have a strange question: can I use timer with variable time (not fixed - 1s, for example with "t" seconds, where I can write any value on "t")?

metanigga
Автор

is it possible to connect CODESYS with any PLC for example, Im using WECON PLC EDITOR

ikramantaki
Автор

Hello,
is there any way to stop the turn on delay?
For example using a stop button means stop counting the time-> motor won't turn on

Flofet
Автор

Hi there i am new to codesys i am trying to run an output say a motor for a set time but i cannot find the right funtion block/timer for this can you help me out

preetparmar
Автор

Hi, can you make a video on "Encoder programing and simulation with Codesys Structure Text? " I searched a lot, but couldn't find it. It will be much helpful...

ronniegems
Автор

Hi Tohid, I am trying to implement a delay of for example 5seconds. What I tried is make a TON and then an if loop so it looks like this:
my_ton : TON;
my_ton(IN:= TRUE, PT := T#5s)
label1: counter1 := counter1+1;
IF NOT(my_ton.Q) THEN (*As long as Q is low, go back untill Q is high (so after 5
JMP label1; seconds) *)
END_IF
But for some reason it doesn't recognise the label. Do you know how to solve this. I also tried doing this with a while loop but that makes my PLC crash.
Thanks in advance!
Bart

fcbfcbfcb
Автор

Post a video using jump command program and also traffic signal program

jeevarathinam