Explaining The Basics Of RS-232 Serial Communications

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
the unist quantum communicates to machine tools using the rs-232 serial communication protocol the term serial means data is sent one bit at a time sending more than one bit at a time is called parallel rs-232 is a specific serial protocol that defines the wiring and flow control used to send these data fits it was originally designed to send data between computers using modems and a telephone line and you will see this legacy as we learn more about the protocol let's begin by looking at the wiring we start with two pieces of equipment that need to communicate with each other to keep it simple let's say one only sends and the other only receives in reality both sides send and receive but if you understand how the communication works in one direction you can apply it to both data is generated by the sender which puts it in a send buffer the temporarily holds the data to get the data from the sender's buffer through the buffer on the receiver we need a wire on the sender side this is the transmit data or TX wire on the receivers end this is the received data or rx wire once these are connected together the data can flow from the sender to the receiver this is the simplest case but the designers of the rs-232 specification asked a few basic questions what if for example the receiver is missing in our simple case the sender would continue to transmit the data to nowhere so the rs-232 designers added a control wire which tells the sender that the receiver is there on the sender side this wire is called the data terminal ready or DTR on the receivers end this is called the data set ready or des when these are connected and the proper voltage is set by the receiver the sender knows the receiver is there and once again data can safely flow but what if the sender transmits the data too fast how fast this data is sent is called the baud rate if the baud rate is so high that the receiver cannot get the data out of its buffer fast enough the buffer overflows and once again data is lost to counter this the designers added another control wire so the sender and receiver can coordinate when to send the data on the sender side this is the request to send or RTS on the receiver side this is the clear to send or cts with this additional line the receiver tells the sender when it needs to pause and buffer overruns are avoided using this send stop signal is known as Hardware flow control the RTS cts wire is the hardware that controls when data flows between the devices for completeness sake there are two more wires defined in the rs-232 spec both of these are related to modems so seldom used anymore these are the data carrier detect or DCD which tells the modem when an analog signal is being received from another modem and the ring indicator or RI that tells the modem that the phone is ringing since we're talking about modems you may be thinking wait a minute there are no modems between the quantum and the machine tool and you're right instead of using modems you can loop the control wires from the sender side to the receiver side on the same device and then the device will tell itself that things are ready to go even when there is no modem because null is a programmer term or nothing or empty and there is no modem this is called a null modem with a null modem we're back at the most basic case and we only need to connect the transmit and receive wires between two devices to transfer data to be technically accurate we also need a ground wire to establish where the signal voltages are referenced from this third wire is called the signal ground or SG with these three wires we can communicate between two rs-232 devices an arrangement is descriptively called a three wire null modem this is what the quantum uses of course this means the function is that the control wires handle making sure there is a device on both ends and that the receiver is ready to receive the data sent are no longer being done so another enterprising person figured out you could perform the same flow control function by sending special packets of data over the transmit and receive lines using special packets to control when the data is sent it's called software flow control and the packets themselves are called X on and X off when the receiver is ready for data it sends an X on when it needs the sender to stop it sends an X bar this is less reliable than Hardware flow control since the flow control packets themselves are data but it often works well enough to be worthwhile with this you now understand the idea of null modem how data is sent and both hardware and software flow control these are the basics of rs-232 serial communications you
Info
Channel: Unist Inc.
Views: 323,649
Rating: 4.93612 out of 5
Keywords: mql, Minimum Quantity Lubrication, sawing, drilling, cnc, cnc machine, metal cutting, chips, coolube, unist, metal, green, near dry, tapping, milling, routing, turning, broaching, flood coolant, machining, tool, milling machine, swarf, dry chips, metal cutting fluid, cutting lubricants, near dry machining, cutting oil, micro machining, throughspindle, machining lubrication, quantum, cutting fluid, CNC, machine tools, RS-232, RS-232 Serial Communications
Id: XVEnxipCIJ0
Channel Id: undefined
Length: 5min 58sec (358 seconds)
Published: Mon Oct 16 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.