261
CHAPTER
8
Special Function I/O and
Serial Communication Interfacing
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
SECTION
2
Components
and Systems
electronics organizations, such as the Institute of Electrical and Electronics
Engineers (IEEE) and the Electronic Industries Association (EIA). These
institutions define public specifications through which manufacturers can
establish communication schemes that allow compatibility among different
manufacturers’ products. Proclaimed standards, such as the IEEE 488 instru-
ment bus, the EIA RS-232C, the EIA RS-422, and the EIA RS-485, are
examples of well-defined proclaimed standards.
De facto standards are interface methods that have gained popularity through
widespread use. Although these popular standards have been adopted
throughout the industry, they have no official definition. Because they are not
properly defined, some de facto standards cause interface problems; however,
other standards, such as the 20 mA current loop, are good, well-defined de
facto standards.
Serial communication, as the name implies, occurs in serial form through
simple, twisted-pair cables. Serial data transmission is used for most periph-
eral communication devices, since these devices are slow in nature and
require long cable connections. Serial communication allows peripheral
equipment, such as terminals, modems, operator interface panels, and line
printers, to receive ASCII information.
Two of the most popular standards for serial communication are the RS-
232C and the 20 mA current loop. Other PLC standards are the RS-422 and
RS-485, which improve performance and give greater flexibility in data
communication interfaces.
The data communication links used with peripheral equipment can be
unidirectional or bidirectional. If a peripheral is strictly either an input or an
output device, then data transmission occurs in only one direction. In this
case, a unidirectional serial signal line is all that is required to complete the
link. Devices that serve as both input and output devices (e.g., video
terminals) require bidirectional links. There are two ways to achieve this
bidirectional communication. First, a single data line can be used as a shared
communication line. The data can be sent in either direction, but only in one
direction at a time. This operation is known as half duplex. If simultaneous
bidirectional communication is required, two lines can connect the PLC to
the peripheral. One line would be assigned permanently as an input, while the
other would be a permanent output. This mode is known as full duplex. Figure
8-43 illustrates the unidirectional, half-duplex, and full-duplex communica-
tion methods.
SERIAL COMMUNICATION