How can I generate 4 to 20 mA current when using the SS7012 with a 24 V power supply?
It is not problematic to use a 24 V power supply. Use constant-current output from -4 to -20 mA. Both the SS7012 and 7016 generate bipolar output that can operate as either sink or source.