How can I add additional TTL ports (op2, op3, op4) with different times, to the code?
LOOP:
TSTGE CH 4 VAR1
TSTGT CH 21
SET VAR1 0
TSTEQ VAR1 OP8
GOTO LOOP
SET OP8 VAR1
TSTEQ VAR1 1
EMAIL EM1
TSTEQ VAR1 0
EMAIL EM2
Credit goes to rossw for the code...
Could you possible implement the "set var8 line number....delay 8000" in some simple code (turning op1 on - off, etc..) so that I could follow the code.
Sorry for being so novice, but I will learn!
Thanks for the support!
I'm trying to learn PLC and have a problem following the code.
After a "callsub", does the the program return to start OR the next line after the "callsub" ?
Once I understand the basic flow of the program, I'll be able to make some progress.
Thanks!
I'm trying to learn PLC and have a problem following the code.
After a "callsub", does the the program return to start OR the next line after the "callsub" ?
Once I understand the basic flow of the program, I'll be able to make some progress.
Thanks!
When do you use the NPO line?
I'm a little confused... after doing a "callsub" and then the "RET", where does the program flow to? To "STARt", or the line after the previous "callsub" ?
I'm a hardware guy with no code experience.
I was wondering if some of you code people could post some examples with remarks?
Just the basics, so us non-coders can build upon it and understand the flow.
Thanks!!
I'm new to plc.. has anyone written code for controlling a sprinkler system.
I need to turn 4 relays on 4 times a day for 5 minutes.
I just need some code to follow and then I should be able to modify it. Any help will be appreciated!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.