(no subject)
CodeExport2Text
home
(Thread)
Last updated: 2023-06-23
Home
almafra
wiki
(WikiPage)
This is the personal project of almafra. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-06-24
wiki Discussion
almafra
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-06-24
blog Discussion
almafra
blog
(Discussion)
Forum for blog comments
Last updated: 2023-06-24
(no subject)
almafra
wiki
(Thread)
Last updated: 2023-06-24
blog Discussion
weiwei2
blog
(Discussion)
Forum for blog comments
Last updated: 2023-06-26
wiki Discussion
weiwei2
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-06-26
(no subject)
weiwei2
wiki
(Thread)
Last updated: 2023-06-26
Home
weiwei2
wiki
(WikiPage)
This is the personal project of weiwei2. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-06-26
wiki Discussion
sjwilks
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-06-27
blog Discussion
sjwilks
blog
(Discussion)
Forum for blog comments
Last updated: 2023-06-27
Home
sjwilks
wiki
(WikiPage)
This is the personal project of sjwilks. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-06-27
(no subject)
sjwilks
wiki
(Thread)
Last updated: 2023-06-27
Simple question about program
furk
blog
(Blog Post)
Hello guys, I am new at this forum and a beginner in codesys. I am working on a small project, in which there are two lamps(Red L1, Green L2) and a button(T1). The red lamp should be on for at least 5s and max 10s. If a button is pressed the red lamp should be off and th green lamp on after 3s. The green phase should last for 5 s and then the red phase should start again. I did write the following programm and no error is shown, but unfortunately it does not work. I would be really grateful for any kind of help PROGRAM Aufgabe2 VAR state:UINT:=1; R_Trig_Taster:R_TRIG; timer3s:TON; timer5s:TON; timer10s:TON; END_VAR R_Trig_Taster(CLK:=GVL.T1); CASE state OF 1://red phase GVL.L1:=TRUE; GVL.L2:=FALSE; timer5s(IN:=TRUE,PT:=T#5S); timer10s(IN:=TRUE,PT:=T#10S); IF timer5s.Q=TRUE THEN WHILE timer10s.Q=FALSE DO IF R_trig_Taster.Q=TRUE THEN timer3s(IN:=TRUE,PT:=T#3S); IF timer3s.Q=TRUE THEN state:=2; timer3s(IN:=FALSE,PT:=T#3S); timer5s(IN:=FALSE,PT:=T#5S); timer10s(IN:=FALSE,PT:=T#10S); END_IF END_IF END_WHILE END_IF IF timer10s.Q=TRUE THEN state:=2; timer5s(IN:=FALSE,PT:=T#5S); timer10s(IN:=FALSE,PT:=T#10S); END_IF 2://green phase GVL.L1:=0; GVL.L2:=1; timer5s(IN:=TRUE,PT:=T#5S); IF timer5s.Q=TRUE THEN state:=1; timer5s(IN:=FALSE,PT:=T#5S); END_IF END_CASE
Last updated: 2023-06-27
Home
furk
wiki
(WikiPage)
This is the personal project of furk. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-06-27
Simple question about program discussion
furk
blog
(Thread)
Simple question about program discussion
Last updated: 2023-06-27
wiki Discussion
furk
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-06-27
blog Discussion
furk
blog
(Discussion)
Forum for blog comments
Last updated: 2023-06-27
(no subject)
furk
wiki
(Thread)
Last updated: 2023-06-27
Home
marc-p
wiki
(WikiPage)
This is the personal project of marc-p. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-06-28
wiki Discussion
marc-p
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-06-28
blog Discussion
marc-p
blog
(Discussion)
Forum for blog comments
Last updated: 2023-06-28
(no subject)
marc-p
wiki
(Thread)
Last updated: 2023-06-28
Home
lyonj15
wiki
(WikiPage)
This is the personal project of lyonj15. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-06-28
wiki Discussion
lyonj15
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-06-28