If power is AC24V, no need to distinguish the cable, if power is DC, please refer to the label on cable, the red is positive and black is negative in default.