Hi to all and thanks for your help

I finally finished wiring all, motors, limits, probe, drivers and tested and all working good.
I only need wire the alarm of the closed loop hybrid drivers and i don't understand how to connect correctly to csmio input.
The manual of the driver say:
ALM+ When over-current, over-voltage, under-voltage or position error alarm, the alarm signal is valid (output optocoupler is on). ALM+ is connected to the pull-up resistor to the positive terminal of the output power supply. Themaximumdrivecurrentis50mA.
ALM- ALM- is connected to the negative terminal of the output power supply.
With this i understand the ALM- go to Digital Input - (Pin 25/Input 11 in my case of csmio). And the ALM+ go to Pin 12/input 11+ of csmio and to 24v+ power supply with a resistor in middle (i don't know what resistor go in middle with 24v power supply if this is correct).
I attach a little schematic i made with my interpretation.
Thanks for your help i really appreciate it.