Kreutzer:
think of your PLC output as if there is a normally-open relay contact between COM and Y1. Does it make sense now? Just connect your negative battery post to PLC's COM terminal and voila! you got yourself a complete circuit!
Now, the pitfalls. There might be a real relay inside, but not necessarily. That's why you were asked about the particular PLC model you are using. If, instead of a relay, there is a transistor inside, the polarity becomes important (unlike mechanical relay contacts, transistors conduct current only in one direction). You may end up switching wires of your battery and the LED.
There must be a resistor in series with the LED. The value of the resistor should be 9V / 20 mA = 450 Ohm. You may pick a 750 Ohm resistor and it should work. The resistor power rating is 9V * 20 mA = 0.18 Watt. Pick a standard 1/4 Watt size or larger. Thanks to Messrs. Ohm and Joule for discovering all that...
"SMEMA" is Surface-Mount Equipment Manufacturers Association. SMEMA 1.2 protocol is de-facto standard in printed-circuit board manufacturing, where production is usually done on long lines containing a variety of equipment from different manufacturers: bare board loaders, conveyors, paste dispensers, chip and component placers, ovens, stackers, buffers, shuttlegates, turntables etc., etc.
The protocol defines what does it take to make all this stuff work together. In addition to board transfer heights and other mechanical considerations, it defines a set of two discreet signals, going each direction along the line: upstream and downstream. Any two adjacent pieces of equipment are connected with at least four wires (although the standard connector is 14-pin round plastic AMP). A "previous" unit sets a signal whenever it has a board ready to move to the "next". The "next" unit sets a signal whenever it is ready to accept a board. There are some timing diagrams to follow.
Despite its simplicity, almost any "SMEMA-compatible" manufacturer manages to screw it up in its own way. Been there, done that...