Hollysys PLC - the use of PLC serial port communication

Create Date: 2024-8-30 12:03:23|Source: HollySys/HollySys

Serial communication is done using 3 wires: (1) ground, (2) sending, and (3) receiving. Since serial communication is asynchronous, ports are capable of sending data on one wire and receiving data on the other. Other threads are used for handshakes, but are not required.

The most important parameters for serial communication are baud rate, data bits, stop bits, and parity. For two ports to pass through, these parameters must match:

a, baud rate: This is a parameter that measures the speed of communication. It indicates the number of bits delivered per second. For example, 300 baud means 300 bits are sent per second. When we refer to clock cycles, we are referring to the baud rate, for example, if the protocol requires a baud rate of 4800, then the clock is 4800Hz.

This means that the serial communication has a sampling rate of 4800Hz on the data line. Usually the baud rates for telephone lines are 14400, 28800 and 36600. The baud rate can be much larger than these values, but the baud rate is inversely proportional to the distance. High baud rates are often used for communication between instruments placed in close proximity.

b, Data Bits: This is a parameter that measures the actual data bits in the communication. When a computer sends a packet, the actual data will not be 8 bits, the standard values are 5, 7 and 8 bits. How you set it up depends on the message you want to send.

For example, the standard ASCII code is 0-127 (7 bits). The extended ASCII code is 0-255 (8 bits). If the data uses simple text (standard ASCII code), then 7 bits of data are used for each packet. Each packet refers to a byte and includes start/stop bits, data bits, and parity bits. Since the actual data bits depend on the choice of communication protocol, the term "packet" refers to any communication situation.

c, Stop bit: Used to represent the last bit of a single packet. Typical values are 1, 1.5 and 2 bits. Since the data is timed on the transmission line, and each device has its own clock, it is likely that there will be a small out-of-sync between the two devices in the communication.

So the stop bit not only indicates the end of the transfer, but also provides the opportunity for the computer to correct the clock synchronization. The more bits that are applied to the stop bits, the more tolerant different clock synchronizations will be, but the slower the data transfer rate will be.

d, parity bit: a simple error detection method in serial communication. There are four ways to detect errors: even, odd, high, and low. Of course, it is possible to do without a check digit. For even and odd checks, the serial port will set a check bit (one bit after the data bit) to ensure that the transmitted data has even or odd logical bits.

For example, if the data is 011, then for the even check, the check digit is 0, and the number of bits to ensure the logical high is an even number. If it is an odd check, check bit 1, so that there are 3 logical high bits. The high and low positions are not really checked data, and the simple set logic is high or the logic is low. This allows the receiving device to know the state of a bit and has the opportunity to determine if there is noise interfering with the communication or if the transmitted and received data is out of sync.
Hollysys PLC - the use of PLC serial port communication

More on that
Hollysys DCS - DCS daily maintenance and fault analysis and troubleshooting methods Hollysys DCS - DCS daily maintenance and fault analysis and troubleshooting methods

01. Power supply The DCS power supply system is mostly a "dual backup hot redundant power supply", and the prevention and control of power failures is mainly reflected in the inspection and daily maintenance. Generally speaking, as long as the unit is normal ...

Hollysys debuted at the 13th Berlin International Rail Transit Exhibition Hollysys debuted at the 13th Berlin International Rail Transit Exhibition

On September 20, 2022, Berlin time, the 13th Germany Berlin International Rail Transit Exhibition (InnoTrans 2022) opened at the Berlin International Exhibition Center in Germany. Following the 2018 exhibition, Hollysys once again appeared at the Berlin International Railway Exhibition (hereinafter referred to as the Berlin Exhibition) ...

Hollysys PLC - Precautions in the operation of PLC (1) Hollysys PLC - Precautions in the operation of PLC (1)

First, the working environment (1) Temperature The PLC requires that the ambient temperature is 0-55oC, and it cannot be placed under the components with large heat generation during installation, and the surrounding ventilation and heat dissipation space should be large enough. (2) Humidity In order to ensure the insulation performance of PLC, the relative humidity of the air ...

Hollysys PLC - the isolation technology of the input/output loop of the PLC control system Hollysys PLC - the isolation technology of the input/output loop of the PLC control system

1. Circuit isolation The isolation of analog circuits is more complex, mainly depends on the accuracy requirements of the transmission channel, the higher the accuracy requirements, the higher the cost of the channel; However, when the performance requirements rise to the main contradiction, the isolation components should be selected based on performance, and the ...

Hollysys PLC - Introduction to the 4 basic concepts of PLC signals Hollysys PLC - Introduction to the 4 basic concepts of PLC signals

Analog signal: refers to a continuous current signal or voltage signal, and analog signal can be divided into standard signal and non-standard signal. Switching signal: It can be divided into active signal and passive signal, which is basically an on-off signal, and can be measured on and off with a multimeter ohm. ...

Hollysys OCS industrial optical bus control system was successfully applied in Sinopec project Hollysys OCS industrial optical bus control system was successfully applied in Sinopec project

On November 13, 2022, Zhong'an United Coal Chemical Branch came with exciting news that the 20,000 tons/year butene-1 plant produced qualified butene-1 products at 22 o'clock on the same day, and the one-time start-up was successful. The control system of the device adopts the innovative technology product "OCS Industrial Optical Bus Control ...

Hollysys DCS – the steps for DCS to properly power off and power on Hollysys DCS – the steps for DCS to properly power off and power on

DCS is properly blacked out When the DCS needs to be powered off for maintenance due to overhaul or other reasons, we often directly power off the DCS, but sometimes this non-standard operation will bring serious consequences, such as configuration loss, PID parameter loss, etc. So there is a need for blackouts and re-on...

Hollysys PLC - a component of the PLC control cabinet Hollysys PLC - a component of the PLC control cabinet

1. Open empty A master air switch that is the power control for the entire cabinet. 2. Power supply A 24VDC switching power supply. 3、PLC This should be chosen according to the needs of the project. If the scale of the project is small, the integrated PLC can be used directly; If the item ...

Hollysys safety barriers won excellent products Hollysys safety barriers won excellent products

On December 18, 2020, the "8th Member Congress and 2020 Zhejiang Enterprise Leaders Summit" hosted by Zhejiang Enterprise Confederation, Entrepreneur Association and Industrial Economics Federation (hereinafter referred to as the "Three Associations" of Zhejiang Province) was held in Hangzhou. At the conference, the top 100 in Zhejiang Province in 2020 were commended.

Hollysys PLC - PLC should be noted in operation (2) Hollysys PLC - PLC should be noted in operation (2)

2. Interference in the control system and its sources On-site electromagnetic interference is one of the most common factors in PLC control system and most likely to affect the reliability of the system. It is therefore essential to know the source of on-site disturbances ...

Hollysys DCS - DCS common communication faults and solutions Hollysys DCS - DCS common communication faults and solutions

01 Node bus failure The node bus material is usually a coaxial cable, so as long as there is a cable disconnected, the communication of all devices on the bus will be paralyzed, which will cause serious phenomena such as data loss, equipment stoppage and operation interruption, and may eventually directly or indirectly cause huge ...

Hollysys PLC - What are the three large quantities in PLC? Hollysys PLC - What are the three large quantities in PLC?

1. The switching quantity is also called the logical quantity, which means that there are only two values, 0 or 1, ON or OFF. It is the most commonly used control, and controlling it is the advantage of PLC, and it is also the most basic application of PLC. The purpose of switching control is to follow the current input combination with the historical input according to the switching quantity.

HollySys PLC - the usage and principle of PLC programming interrupts HollySys PLC - the usage and principle of PLC programming interrupts

When the PLC understands the interrupt function, it needs to understand the PLC's operating cycle or scan cycle. It is necessary to talk about the process of PLC sequential control loop execution, which is a prerequisite for understanding interruptions and must be mastered. It is divided into three parts, input processing, program processing, and output processing. 1、 ...

Hollysys PLC - Introduction to the composition of PLC control cabinet Hollysys PLC - Introduction to the composition of PLC control cabinet

1. Open empty A master air switch that is the power control for the entire cabinet. 2. Power supply A 24VDC switching power supply. 3、PLC This should be chosen according to the needs of the project. If the scale of the project is small, the integrated PLC can be used directly; If the item ...

Hollysys will make a blockbuster appearance at the first Shenzhen Nuclear Expo in 2022 Hollysys will make a blockbuster appearance at the first Shenzhen Nuclear Expo in 2022

From November 15th to 17th, the 2022 China Nuclear Energy High-Quality Development Conference and Shenzhen International Nuclear Energy Industry Innovation Expo (hereinafter referred to as the "2022 Shenzhen Nuclear Expo") will be grandly reopened at the Shenzhen World Convention and Exhibition Center.   The theme of this year's Nuclear Expo is "Nuclear Gathering in the Bay Area, Activating the World".

Hollysys PLC - Electrical troubleshooting of PLC control loop Hollysys PLC - Electrical troubleshooting of PLC control loop

In general, PLCs are extremely reliable devices with a very low failure rate. The probability of hardware damage such as the CPU of the PLC or software running errors is almost zero; If the PLC input point is not caused by strong current intrusion, it will hardly be damaged; The normally open point of the PLC output relay, if it is not a short circuit of the peripheral load ...

Hollysys PLC - what are the commonly used networking methods of PLC? Hollysys PLC - what are the commonly used networking methods of PLC?

1 Universal serial port module Based on the serial port communication module to realize the network connection, the network structure is shown in Figure 1, the form of computer link is adopted, the corresponding settings are carried out in the configuration software of the host computer, and the communication can be carried out with multiple PLCs without programming, and the FXlS of Mitsubishi ...

Hollysys PLC - maintenance steps of PLC control cabinet Hollysys PLC - maintenance steps of PLC control cabinet

1. Data backup When carrying out maintenance, we must cut off the power, data backup between power outages is an important link, for the data that needs to be archived for a long time, you can back up the historical trend data to the mobile hard disk, and then turn off the Windows-based operating system (Note...

Hollysys assisted the successful construction and operation of the largest natural gas deep processing base in Xinjiang Hollysys assisted the successful construction and operation of the largest natural gas deep processing base in Xinjiang

On August 16, 2021, the Tarim Oilfield Natural Gas Ethane Recovery Project, the largest natural gas deep processing base in Xinjiang (1), a key project of PetroChina, was successfully completed and put into operation, with stable operation and the production of qualified ethane products. Tarim Oilfield Natural Gas Ethane Recovery Project ...

Hollysys PLC - common causes and treatment methods of PLC failures in operation Hollysys PLC - common causes and treatment methods of PLC failures in operation

1. Peripheral circuit component failure This type of failure often occurs in the failure of the PLC after a certain period of work. In the PLC control loop, if there is a component damage fault, the PLC control system will immediately and automatically stop working. The input circuit is a PLC that accepts switching quantities, analog ...

CATEGORIES BYPASS
Customer Service Center

Online Consultation:QQ


ContactContact

Contact: Manager Huang

Contact QQ: 3271883383

Contact number: 13522565663


Scan the code to add WeChat (please save the picture first on the mobile phone)

working hoursworking hours

Weekdays: 9:00-17:00

Holidays: Only emergencies are handled

Contact us

Contact us

Contact number QQ consultation
QQ consultation

3271883383

Company address
Back to top