As you say, we know the 5i22 controller chip outputs will be active low. Now I'm trying to figure out the info about the stepper driver that needs 24V signal. As I need to convert the 5V from the 5i22 to that 24V, I have to determine if I need isolation to use optocouplers.Conversely, I would use 74LS07 for the level shifting.Is the 5i22 board going to drive an existing motor board, and if so, what is it?
Now we know the 5i22 controller chip outputs will be active low. All that is needed is the motor driver board info.
Normally you should not need isolation if you take all power commons to a common star point, also if using a P.C./5i22 combo, the P.C. power is connected to earth ground in the P.C.5. That's what I have to be clear if I need isolation. I don't have enough information about the stepper driver to determine if I need isolation. If isolation wouldn't be required I would just use a 74LS07 for level shifting.
But that is active high input, isn't it? But as stated above it should be active low, so the I/O pin should be connected to the cathode of the LED, correct me if I'm wrong or I'm misunderstanding your schematicI modified the circuit as below, so you still can use high(1) as control signal, the output pin was connected to input of 5i22, the I/O of 5i22 was connected to the resistor and pull high.
View attachment 150746
Yes, that is active high and the output was low to the I/O of 5i22, so it was matched the required what the states of 5i22 that I posted in #20, the input to output just like an inverter, but the output is an open drain.But that is active high input, isn't it? But as stated above it should be active low, so the I/O pin should be connected to the cathode of the LED, correct me if I'm wrong or I'm misunderstanding your schematic

Look at this final edition, what do you think?I modified the circuit as below, so you still can use high(1) as control signal, the output pin was connected to input of 5i22, the I/O of 5i22 was connected to the resistor and pull high.
View attachment 150746

No.Look at this final edition, what do you think?
You should reversed the D2 LED and connected the negative pin of LED from pin 49(Power) to Pin 50(GND), you also don't need the R2, because it was connected to the pull high resistor in the I/O of 5i22 and I already mentioned it in #24