Hello,
Trying to understand the MOD in Logix 5000 when used in a CPT block.
I'm familiar with MOD or modulo as a ratio or division remainder.
However when it is used in a CPT block is seems to set a restriction/reset value for your calculation.
See below, When Index_REG_Length is set to 1000 the loop goes to 1000 and resets. I removed any fault handlers just to make sure and it still works as long as the value is not larger than a DINT maximum.
**Never mind cant upload pictures.
The MOD is used in help file examples but not expanded on.
Am I looking at this right or is there something else going on here?
Thanks,
Matthew
Trying to understand the MOD in Logix 5000 when used in a CPT block.
I'm familiar with MOD or modulo as a ratio or division remainder.
However when it is used in a CPT block is seems to set a restriction/reset value for your calculation.
See below, When Index_REG_Length is set to 1000 the loop goes to 1000 and resets. I removed any fault handlers just to make sure and it still works as long as the value is not larger than a DINT maximum.
**Never mind cant upload pictures.
The MOD is used in help file examples but not expanded on.
Am I looking at this right or is there something else going on here?
Thanks,
Matthew
Last edited: