Supercharge Your Innovation With Domain-Expert AI Agents!

Serial port communication method for S7-200Smart PLC and LonWorks gateway

A technology of serial port communication and gateway, which is applied in the field of serial port communication, and can solve the problems that serial port communication cannot be sent and received at the same time, and cannot be identified

Inactive Publication Date: 2021-09-07
中电科鹏跃电子科技有限公司 +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Aiming at the above-mentioned technical problems that the sending and receiving of the existing serial communication cannot be carried out at the same time, and the frame head and the frame tail cannot be identified during data analysis, the present invention provides a real-time indiscriminate reception and supports multi-byte S7-200 Smart PLC The serial port communication method with LonWorks gateway

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Serial port communication method for S7-200Smart PLC and LonWorks gateway

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0030] In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral Ground connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediary, and it can be the internal...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention belongs to the technical field of serial port communication methods, and particularly relates to a serial port communication method for an S7-200Smart PLC and a LonWorks gateway. The method comprises the following steps: setting an initial condition for receiving data in serial port communication of the PLC; setting an ending condition of PLC serial port communication receiving data; circularly receiving the trigger; processing received data; and sending a control command. According to the method, the message can be received once the RCV serial port is started to receive the instruction by setting the starting condition of serial port communication, so that the LonWorks gateway data can be received in real time without difference, and the limitation of starting and ending characters does not need to be considered; besides, when the RS485 asynchronous half-duplex communication device receives data, switching between command receiving and command sending is carried out by utilizing interruption prohibition and timing interruption delay operation, and control command sending is completed, so sending and receiving actions of RS485 asynchronous half-duplex communication are realized.

Description

technical field [0001] The invention belongs to the technical field of serial port communication methods, in particular to a serial port communication method between an S7-200 Smart PLC and a LonWorks gateway. Background technique [0002] Railway passenger cars 25T, 25G and CR200J currently use the LonWorks bus to interconnect electrical equipment such as axle temperature alarms, smoke and fire alarms, PLCs, anti-skid devices, plug doors, under-car power supplies, and air conditioners in each compartment. Currently facing the following problems: 1. Sending and receiving cannot be carried out at the same time. The communication protocol between PLC and LonWorks gateway is mainly divided into two types: one is that the LonWorks gateway sends the train data on the Lon side to PLC in real time, which is called protocol 1; The first is the control command sent by PLC to the LonWorks gateway, called protocol 2, which is triggered by the outside. In this way, there is a problem, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/40H04L12/66H04L29/08
CPCH04L12/40H04L12/66H04L67/125
Inventor 史志鹏康健飞乔春张军齐雷先谭兆海谢涵超赵晖侯彦亘温美玲杜超袁士成陈建鹏韩少锋曹峻
Owner 中电科鹏跃电子科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More