Author Topic: Sequencer control from within a CusFn routine?  (Read 10354 times)

skj1402

  • Newbie
  • Posts: 28
  • The Innovator!
    • View Profile
Sequencer control from within a CusFn routine?
« on: October 22, 2005, 08:25:52 AM »
Is it possible to control a sequencer from within a cusfn routine?

I need to reset a sequencer back to level 1 if a certain logical condition is met from within a custom function. Any example would be appreciated. Thanks!

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Sequencer control from within a CusFn routine?
« Reply #1 on: October 22, 2005, 11:08:52 AM »
Yes, the step counter for Sequencer is the counter #1 to #8, so to change the step for Seq1, just reassign CTRPV[1] to a new value:

   CTRPV[1] = 1  ' to change it to step one.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS

skj1402

  • Newbie
  • Posts: 28
  • The Innovator!
    • View Profile
Re:Sequencer control from within a CusFn routine?
« Reply #2 on: October 22, 2005, 12:05:56 PM »
Thanks for the quick reply and for the solution!