Hi!
Try to connect external board with opto-isolated inputs to kflop. It will be board for limit switches. I was connect it to JP4. No I need to determine what pins in kflop meet screw terminals. By default pins i/o in JP4 is output pins.
I was added this code in initialization c-file:
SetBitDirection(16,0);
SetBitDirection(17,0);
SetBitDirection(18,0);
SetBitDirection(19,0);
SetBitDirection(20,0);
SetBitDirection(21,0);
SetBitDirection(22,0);
SetBitDirection(23,0);
SetBitDirection(24,0);
SetBitDirection(25,0)
After initialization I begin to to click on the line limit buttons and look into Digital I/O window in Kmotion. Nothing happes. Why state of bins is not changes when I was push buttons?