I need to periodically trigger 2 outputs at certain encoder value.
Siemens advices us to use a FM350-1 to do this.
For example:
When the actual count value (ACT_CNTV)=2000àtrigger DQ0
When the actual count value (ACT_CNTV)=5000àtrigger DQ1 AND reset the encoder value to start all over again.
The triggering of the two FM350-1 outputs is no problem, but my question is: how can I reset the encoder value, without lose of pulses.
A second question is that when I write a value to CMP_V1 or CMP_V2 (new comparator value) I expects to read this value in ACT_CMP1 and ACT_CMP2, but these variables stay 0.
Thank for your advice
Leonardo
Siemens advices us to use a FM350-1 to do this.
For example:
When the actual count value (ACT_CNTV)=2000àtrigger DQ0
When the actual count value (ACT_CNTV)=5000àtrigger DQ1 AND reset the encoder value to start all over again.
The triggering of the two FM350-1 outputs is no problem, but my question is: how can I reset the encoder value, without lose of pulses.
A second question is that when I write a value to CMP_V1 or CMP_V2 (new comparator value) I expects to read this value in ACT_CMP1 and ACT_CMP2, but these variables stay 0.
Thank for your advice
Leonardo