Recent content by philspargo

  1. P

    plc code question from a novice

    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...
  2. P

    plc code question from a novice

    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!
  3. P

    plc code question from a novice

    So loop is just executed once?
  4. P

    plc code question from a novice

    I don't see "loop:" listed as a opcode.   Can someone explain  the code Flow. (when you break out of the loop and where it goes)   Thanks again!
  5. P

    plc code question

    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!
  6. P

    simple question about PLC code

    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!
  7. P

    Simple programming questions

    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" ?
  8. P

    code examples with remarks

    I would like to turn on op1 at 8:00 AM, for 1 minute, on Monday, Wednesday and Saturday's IF ip1 = 1.
  9. P

    code examples with remarks

    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!!
  10. P

    simple program to control sprinklers

    I follow the logic except for: SUB AIP1 AIP2 RAM2 (built-in a/d converters?) Please explain.
  11. P

    simple program to control sprinklers

    I would like to turn ON one relay, for one minute, on every hour. This will give me something to experment with.
  12. P

    simple program to control sprinklers

    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!
Back
Top