Thanks for the answer, but I understand that I have to edit it.
Only the 7i76 card has a different pin arrangement. Otherwise, the pins on P1 are DB25. Fortunately, the pins for the first four axes are identical. I already wrote that, it works without problems.
But while the 7i78 has spindle control, serial interface and encoder for the spindle on pins 05-13, the 7i76 has an output for the fifth stepper motor, two serial interfaces and an encoder on the same pins. That encoder is labeled ENx, unlike the encoder on the 7i78 - it is QUADx. I don't know if it's the same.
So if, for example, I activate the spindle encoder on P1 in pncconf, will it be the same for the 7i78? And further, on connectors P1 and P2 (on which the 7i78 can be physically located), there is no option to set spindle dir, enable. I set this on P7 but I need it to be on P1. Will it be enough to overwrite the IO number and will it work?
Let me not forget, on the P7 pins it is possible to set the direction of rotation for the spindle - two pins, but on the P1 DB25 there is a SPINDIR pin which is one pin. So if I set one pin on P7 to CW and the other to CCW, will it get to the right place on the 7i78?