Thanks for the quick reply. Below are the PI M-230 pinouts and the connection I did. Probably I messed with inhibit pins and limit pins but I don't where.
Pinouts of PI M-230.25 DB15 ConnectorInternal Use 1
Motor (-) (in) 9
Motor(+) (in) 2
Power-GND 10
Interal Use 3
Interal Use 11
+5 V (in) 4
Negative Limit (out) 12
Positive Limit (out) 5
Internal Use 13
Limit GND 6
Encoder: A(+)/ENC A (out) 14
Encoder: A(-) (out) 7
Encoder: B(+)/ENCB (out) 15
Encoder: B(-) (out) 8
Connection with MID-7652 Motor Drive (I use Axis 1)
MID-7652 Motor Drive PI 230.25 DB15 ConnectorEncoder 1 ConnectionsEncoder A 1 ------------------------- 14 Encoder: A(+)
---------------
Encoder A 2 ------------------------- 7 Encoder: A(-)
Encoder B 3 ------------------------- 15 Encoder: B(+)
---------------
Encoder B 4 ------------------------- 8 Encoder: B(-)
Index 5
-------
Index 6
+5 V 7 ------------------------- 4 +5 V
Digital Ground 8 ------------------------- 10 Power-GND
Limit 1 ConnectionsFoward Limit 1 ------------------------- 5 Positive Limit
Home Input 2
Reverse Limit 3 ------------------------- 12 Negative Limit
------------------
Inhibit Input 4
----------------
Inhibit Output 5
Digital Ground 6 ------------------------- 6 Limit GND
Servo Motor 1 ConnectionsMotor + 1 ------------------------- 2 Motor (+)
Motor - 2 ------------------------- 9 Motor (-)
Case Ground 3
NC 4
NC 5