cny70 with 40106 and PIC, only detects 1 time every time I reset
Item 10 indicates port B0 has become an output and is being driven low, and is fighting the 40106. I don't use the CCS compiler, which is apparently what you're using, but consider this description of the output_B function: 



So it looks like you should use the #use*_io directive rather than (or in addition to) TRIS to set the direction of the port pins (specifically #use fixed_IO). 

 These non-standard C things are irritating