Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for realizing PLC port control by C language in digital control machine tool system

A numerical control machine tool and port control technology, applied in the direction of digital control, memory system, program control design, etc., to achieve the effect of solving the difficult to understand PLC language, simple and convenient processing process, and wide application range

Inactive Publication Date: 2011-05-11
SHANGHAI WEIHONG ELECTRONICS TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing PLC configures ports, but the PLC language is not easy to understand, and sometimes the PLC program is difficult to write, which requires a simple and easy-to-understand language to achieve this purpose

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
  • Method for realizing PLC port control by C language in digital control machine tool system
  • Method for realizing PLC port control by C language in digital control machine tool system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific illustrations.

[0024] see figure 1

[0025] 1. Obtain port information in the timer, and the address of the port and other information

[0026] To use C language to control the port, we must first obtain the information of the port. Our timer has high precision and scans once every 20 milliseconds to obtain the current state of the port.

[0027] How to get the port address:

[0028] 11. The addressing method of the physical port:

[0029] The physical ports are divided into input ports and output ports, which are addressed by channels, and each channel has 32 numbers, that is, each channel can accommodate 32 ports. Among them, 100 channels are divided for the input port and the output port, which means that the system can accommodate 3200 physical input ...

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 relates to a method for realizing PLC port control by C language in a digital control machine tool system, which comprises the following steps: 1. scanning a port by a timer to obtain port information; 2. processing the port information by C language to generate a C language port processing program; 3. calling a C language port to process a generated library file; 4. scanning by thetimer to obtain a port state; and 5. giving back the port information to a drive. The method can control the port of a digital control machine tool by the C language, effectively substitutes the control of a PLC on the port, solves the problems of difficult understanding and writing of a PLC language and has simple and convenient processing process, stable and reliable working and wide application range.

Description

technical field [0001] The invention relates to the field of numerically controlled machine tool systems, in particular to the technical field of port control of the numerically controlled machine tool system, and specifically refers to a method for completing PLC port control in a numerically controlled machine tool system using C language. Background technique [0002] Manufacturing is the basic industry of the national economy. The level of manufacturing is an important indicator of a country's industrial development. The level of CNC machine tools is related to the level of the country's manufacturing industry. [0003] In the existing technology, we will use the CNC system to perform corresponding cutting or welding, etc. When using the machine tool for high-pressure water jet cutting machine operations, or other cutting and engraving, sometimes it is necessary to open certain ports for output, such as in water cutting Water valves, high pressure, sand valves, etc., al...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/45G05B19/18
Inventor 牟凤林齐伟郑之开
Owner SHANGHAI WEIHONG ELECTRONICS TECH