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

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...

Timer instruction

In mitsubishi PLC Gx-Developer programming software we have total 512 timers From T0 - T511. These timers are categorized into 5 groups depending upon the time base and type of timer as :- T0 - T199 timers works as Done bit of TON timer (time base-100ms). T200 - T245 timers works as Done bit of TON timer (time base-10 ms). T246 - T249 timers works as Done bit of retentive timer (time base- 1 ms). T250 - T255 timers works as Done bit of retentive timer (time base-100 ms). T256 - T511 timers works as Done bit of TON timer (time base- 1 ms). You may be aware of the working of the TON timer and RTO timer, which works similarly of TON and Retentive timers in AB PLC, the only difference is you only get the done bit of timers in mitsubishi PLC. To enter proper preset value to the timers of various time bases we need to convert the seconds into the respective time bases. Below table shows the conversion of pre-set values into the respective time bases. We can use the sa...