Interesting things in C Language _ C language applications you don't know

Source: Internet
Author: User

I. Introduction

I have never understood what it means to be "simple and simple". Maybe it means that the literati and the guests look down upon each other. For me, however, it is said that the ignorant are fearless.

No matter what your linguistics looks like, you can have a narrow eye. You can only see the areas you are focused on, but you cannot have a narrow mind.

You can focus on a certain field, and you can become everyone. But if you are narrow-minded, you will not be an admirable person.

I have a unique hobby in computer science, or I have a special hobby for creating things by myself, because learning computer programming doesn't require much.

Hardware facilities can see what they have created; while engaged in automation, although programming, but without some special hardware, writeProgramBasically, it is useless. Basically

No one will install a PLC or something in their own homes to achieve automatic control. Of course, if you think you need it, you can do it yourself. But computers are different. Now many families have

Their computers, especially mobile phones, are even more prevalent.

I have been diving in major forums, for example, chinaunix, csdn, 51cto, itlab, and so on. I often see people in the Linux and win camps start to scold each other, and there are various languages.

Competition, we often see users in C Language criticized C ++, and users in C ++ criticized C, there are many similar things.

It's boring.

In many cases, many people look down on VB users. However, VB has a wide range of application scenarios. Let's take a look at it from the perspective of automation:

1. Industrial Control monitoring screen

There are vbs scripts in Simon WinCC (and another script C script to be mentioned today), winccflexible has vbs scripts, and INTOUCH has similar C scripts, in Rockwell's

HMI images have VB scripts and similar scripts in Honeywell's HMI; they are widely used;

2. You can use the script to debug the inverter. This is complicated and requires a good understanding of the operating parameters of the inverter before using the script. Both drivermonitor and driverwindow have their own scripts.

.

3. You can also use the VB script to control the system in the numerical control system. Currently, most of the Siemens Numerical Control systems use the Windows operating system and Linux operating systems, in addition, the interface and operation habits

The modified version is basically the same as that of win.

I can only say: the person who is ignorant is fearless. You can have different sexual opinions, but you cannot force others to accept your sexual opinions. Maybe you can read this book "those who hold different sexual opinions". I still remember

A rose can be anything except a rose. This sentence is about women. This book is also about women. There are many interesting words in it, for example, the physical rebellion of women.

 

Ii. Question

1. c applications in industrial control

Many IT people may think that the C language can only be used in computer, single chip microcomputer and other development applications, but they do not know that the C language development in the industrial control field is also very promising. In the development of Siemens, the C language is really

A very powerful development tool has advantages over any other language. Compilation is fast but complicated, and C ++ is barely usable, but the speed is really slow. Although VB is widely used, but it does not work.

C seems to be the only choice for applications that control the running time in US (microseconds.

The C language development kit is available in Step 7. In some development processes of hot rolling and cold rolling (TDC is a relatively high-end application and s7400 is a little lower), many people use it.

C and STL (Assembly level) have done experiments (not a great team, but they are experts in the field, and the language is not a problem for the great team). Programs Developed with C run faster than STL, it is easy to understand. Although

CFC/SFC is used for the TDC program in the actual development application, and lad/STL/FBD is used for the S7 program; however, a lot of precision and high-speed controls are developed using C to develop FC/FB that can be used in CFC/SFC or glad/STL/FBD.

And can be called again. Here of course, you can use the check box. The speed of the check box is faster than that of the glad/STL/FBD (the check box is faster than STL because the compilation process will optimize the logic, generally, human logic sometimes involves trivial and useless operations.

The reason why C language is faster than STL is roughly the same. In fact, CFC/SFC is compiled by using the CL (here we will insert a sentence, and the Cl is a Pascal-like compiler, the language structure used is also Pascal-like ).

C development scripts can be used in WinCC, and C Development scripts are faster than vbs. Let's take a look at the figure:

The above is a typical C action under WinCC. Next, let's take a look at section C.Code:

Do you feel familiar with this?

 

2. c development in MATLAB

Many people may have heard of MATLAB or used MATLAB. But I guess most people do not know that MATLAB can be used as a software development tool to develop graphical interfaces,

In essence, Matlab is a C language compiler.

In fact, in many industrial development processes, MATLAB can be used to simulate the system. For example, to simulate the stress analysis of hot rolling and Cold Roll, this hardware facility is usually not used for simulation.

A high-level mathematical model can be created to generate the desired data and graphics.

The figure above shows you:

Note the last sentence: integrate with C ++ Fortran COM and Java; Integrate C, C ++, Fortran, COM, and Java.

In fact, there are many functions in MATLAB, such as LS, Dir, mkdir, and a series of system management commands that can be executed.

 

Iii. Conclusion

When the frog jumps out of the well, it will find that the world is so broad.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.