You would connect the BLK to the input and the blue to the Term 12 of the G540, presumably there is a powers supply for the G540 inputs provided?
The Brown would be your 5v if this is what you have.