coding with the event register? PMD N-series

Hello,

I'm relatively new to this, so looking for resources to help with coding the CME engine of the N-series from PMD..
I have the N-series prototype kit in hand and I'm using it to control a Brushed DC motor with incremental encoder. there is also a Hall effect sensor for homing. Think, conveyor belt that only drive in one direction, with a static mounted hall effect sensor and a magnetic reference mounted on the belt. The DI input from the Hall Effect is active low, ie it goes 5v>0v at the home position and sits at 5v when away from home.
I believe the default setup of the N-series DI is active high? with the default setup the signal register reads the DI and the corresponding Event register latches. but if i reverse the signal sense in the code, to match the active low of the hall sensor the event register stops latching, i still see the the signal register change in response to the DI but the event register has stopped latching? In my test the hall effect is generating both a rising and falling edge because the belt drives all the way through, ie the DI goes 5v>0v>5v as the belt drives through, and the signal register goes 1>0>1 (or 0>1>0 depending on the signal sense set) my understanding to date is that the main effect of of reversing the signal sense is that it switches whether the event register responds to the rising edge(0>1) to falling edge(1>0)? But for a reason that escapes me this doesn't appear to be happening?

Regards

Olly
 
Top