Skip to main content

Introduction of Programming language

Hello !!!!
Today i am going to tell you some basics of the programming language.

Program :- The set of instructions given in proper sequence to get the desired output is known as the program.
To create program we should learn some programming languages .there are many programming languages and these are classified into below categories.


There are manly three  categories of programming languages as :-

  • Lower level language :-    Instructions are given in the form of binary Coded, its very difficult to understand for people but Computers can understand.
  • Assembly level Language :-   Here some instructions are used as Sum, Sub, etc. Computer cant understand the language and its quite difficult for humans to understand. 
  • C- Higher level language :-   Instructions are given in small English statements. Its easy to understand for common people but computer cant understand.
Now all you have one doubt that all we write the codes (English statement ) in any programming languages and how this codes computer can understands ????!!


The answer to this is the Compiler.
The compiler do the work of converting the higher lower language to the lower level language so the computer can easily understand the language and do the task.

Software :- now by combining these all small small programs we can made a software.i.s the set of program is called as a software.

now to before starting to write a program you need to understand the flowchart to get the idea how to think about a solution of the problem and how to initiate  for program writing.

Flowchart :-The diagrammatically representation of the problem solution using the certain symbols connected to each other by an arrow is called as a flow chart, or diagram representing the workflow or any process is called the flow chart.

below's are some symbols used in flowchart:-



now see some tips on C programming language :-

C programming language is the case sensitive language, that means it differentiates in between the lower and upper characters , but nearly everywhere lower case characters are preferably used with some exceptions also.

In C Programming every single statement has to be terminated with semicolon (;).

At the beginning of the program one has to introduce the pre-processors if any . Generally the pre-processor ” include” is indicated and it has to be followed by the operator Hash (#).

Then after the header files are come, generally with the “Include pre-processor”. header files come along with prototypes of Different functions- we will discuss them letter.

Also there are many control statements and loops to make decision like if statement, if else statement, do while loop, while loop, etc.

Comments

Popular posts from this blog

Timers in Siemens PLC Simatic manager

Timer :- Timer is nothing but a specialized clock in a programming software used to count the preset time intervals. In   Siemens PLC we have various ty pes of timers as :- 1) S_PULSE(Pulse timer), 2) S_PEXT(Extended Pulse Timer), 3) S_ODT(On Delay Timer), 4) S_ODTS(Retentive On Delay Timer), 5) S_OFFDT(Off Delay Timer). You must find out another five instruction sets in Timer Block in Simatic Manager STEP 7 as :- -(SP) pulse timer coil, -(SE) extended pulse timer coil, -(SD) on delay timer coil, -(SS) retentive on delay timer coil, -(SF) off delay timer coil. 1) S_PULSE(Pulse timer) :- S_PULSE Timer   Above Fig Shows how to use this timer in programming software,in this fig i have used 5 sec as a preset value, If you want to change it replace the 5 with any duration you want in S5T# 5 S.    In S_PULSE timer if input to timer is ON then timer starts Counting time as well as we get the Output at the instant the input is made ON. In t...

HOW TO DOWNLOAD AND INSTALL WONDERWARE FOR WINDOWS 8,7,10.

##You can Download a ZIP file of the software From Below link. https://drive.google.com/file/d/159y8W0c_bw0vvf1DNDQ08_QsLZ9h2Tb1/view?usp=sharing 1 ) You Can Also Watch a Video Tutorial of it  below. 2) You can also read out steps from below :-

Bit Logic Instruction in Simatic manager

There are total 14 instructions under the bit logic instruction like NO contact, NC contact, SR flip-flop, RS flip-flop,invert power flow etc. lets see the detailed use of them.  A) Normally open contact :- Normally open contacts are closed when the bit value stored at the specific address is equal to 1 (one)(here the specific address refers to the address assigned to the NO contact), when we press the Normally open contact assigned to the specific address then it becomes functionally closed and we get supply. here in below fig. when we press the NO contact I0.0 then Output Q0.0 gets ON and when we release the input I0.0 then Output gets OFF. B)Normally Closed Contact :- Normally closed contacts are closed when the bit value stored at the specific add, i.e. the address assigned to the NC contact is equal to 0(zero). when we press the Normally closed contact assigned to the specific address then it becomes functionally open and supply is cuts off. NC contact wor...