|
jtauser
Moderator
  
USA
496 Posts |
Posted - 24 Jul 2010 : 22:40:52
|
Go to the Jazz hardware configuration and click the HSI tab. This is where you assign an MI to hold the counter's value. This MI will increment automatically every time power transitions on the input (usually I0). To reset the counter, just store a 0 to it.
One caveat- the MI you choose will reset to 0 whenever power is cycled to the PLC. If you need to remember the counter's value, continually copy the value to another MI in your logic. Use SB 2 to copy that MI to your counter's MI on the first scan.
Joe T. |
 |
|