Is the sub routine where the output is being scanned/called?
you didn't mentioned which PLC you use, if it is an AB, is there a JSR assigned to call this sub-routine
Double-check the wiring connections between the output card and the devices you are trying to control. Ensure that the wires are correctly connected and securely attached. Make sure the common wire is properly connected to the appropriate terminals.