PLC state machine programming Article 5-state machine automatic generation PLC program, plc Article 5
This article is relatively simple, so I am just getting started, and there is not much nonsense.
1. When selecting the solver, You must select a fixed step.
2. Right-click the Chart state machine and the menu on t
PLC state machine programming Article 4-historical state processing, plc Article 4
Today, we add the previous control task to the historical state. This task will be complicated. For such tasks, we tend to automatically generate PLC programs and write them by ourselves, which is prone to errors. But for demonstration,
Today's high-level languages are mostly object-oriented, but PLC programming, like earlier Basic/fortran languages, is process-oriented.The basic process of PLC logic processing is:1) write the data entered by the external device to the input image area (I).2) logic processing, including read I area, write Q area.3) Export the data from the output image area (Q)
1. First download Mitsubishi PLC programming software GX Developer, currently the latest version is 8.86. As shown in the following figure. Download the installation, need serial number, if you have Mitsubishi PLC can apply for serial number, if learning to use, you can search the Internet.
2. After the installation completes, opens the software GX D
PLC commonly used programming language:There are many programming languages in the programmable controller, they are ladder diagram language, Boolean mnemonic language, function chart language, function module diagram language and structured statement description language, etc. Ladder language and Boolean mnemonic language is the basic
PLC Ladder diagram Programming exercise
Traffic light ControlWhen the SW2 is off, it is easy to turn the traffic lights on and off, but when the SW2 is turned on (ie into the night mode), the red and green lights are not lit when the simulation is added.I guess the reason is that the ladder control of the one by one corresponding principle in the night mode to join the ladder after the problem, I did
PLC Ladder diagram Programming exercise
Traffic light ControlWhen the SW2 is off, it is easy to turn the traffic lights on and off, but when the SW2 is turned on (ie into the night mode), the red and green lights are not lit when the simulation is added.I guess the reason is that the ladder control of the one by one corresponding principle in the night mode to join the ladder after the problem, I did
PLC Ladder diagram Programming exercise
Traffic light Control
?Update: Ladder diagram in the introduction of auxiliary relays, the lamp does not light the problem has been resolved, and I also found that the original ladder diagram can not achieve the counter power-off reset, and the original ladder to test the convenience of not strictly in accordance with the practice requirements set timing time,
, through the artificial way, in a random order of the tank emptying. As soon as the tank "empty" signal is detected, the system will automatically inject water into the tank until the tank "full" signal is detected. The order of water tank injection is the same as the tank emptying order, each time only one water tank for water injection operation. Control systems such as:The program is as follows:1. Symbol table2. Program Module General diagram3.FBFB parameter setting diagram:FB Program diagra
: Motor:structSpeed:intCurrent:realEnd_structC. StringString strings are a one-dimensional array of up to 254 characters (CHAR), with a maximum length of 256 bytes (the first 2 bytes are information that stores the length of the string). such as ' I ' M is string 'D. Date and timeThe date and time (Date_and_time) is used to store the year, month, day, hour, minute, second, millisecond, and week, accounting for 8 bytes, saved in BCD format. Week 1~7 represents Monday to Sundaysuch as: dt#2014-09-
1. Traffic light Control:requirements : In the scenario where the SW1 switch is turned on, the traffic light controller starts to work and the controller stops working when the SW1 is turned off.SW2 for control mode selector switch:When the SW2 is turned off, the green, yellow, and red lights turn on, the specific timing is: green light 100 seconds, flash 5 seconds (every second light off once), yellow light 5 seconds, red light on 100 seconds.When the SW2 is turned on, the intersection becomes
With parameter FC, when editing the function, define the formal parameter in the local variable declaration table, and use the virtual symbolic address in the function (FC) to complete the program writing.Here's a simple example of how to write a parameter FC function.This example completes the programming of a mathematical formula: Y = (X + 5) * 11/5;The procedure is as follows:The FC mathematical formula is written as follows (internally defined inp
PLC Ladder diagram Programming exerciseTraffic light ControlIn a scenario like this, when the SW1 switch is turned on, the traffic light controller starts to work and the controller stops working when the SW1 is turned off.SW2 for control mode selector switch:When the SW2 is turned off, the green, yellow, and red lights turn on, the specific timing is: green light 100 seconds, flash 5 seconds (every second
Float examples and plc programming examplesFloat instance description
Float is a powerful attribute. In the actual front-end development process, people often use it for layout. However, sometimes, it is difficult to use it.
For example, now we want to implement a two-column layout, with the left column fixed in width, and the right column automatically expanded in width.
See:
Idea: Use div + float, div1 a
Programming development must-read books: 10 books that every web developer should read [figure]:When developers ask me what books they should read, I usually tell them that you read the book. Many developers read other people's code, and the best way to improve yourself is to read, and the more efficient you are, the m
imagine I am very good.
3: UNIX environment advanced programming UNIX Network Programming volume 1 2 which of the three books is better? Or should I read this book? I personally think that UNIX network programming can see the server design in the Directory and the thread process problems. Should I read this first?
In
", "UNIX Network Programming"Author W.richard Stevens personal website http://www.kohala.com/Master Works Department Classic, unfortunately 1999 to another world to maintain UNIX ...Description: Engage in Linux network programming, want to learn TCP/IP must look at the master W.richard Stevens This six book, basically six books after reading the foundation is als
JDBC database programming and jdbc programming books
**************************************** ******************************************************
Original works, from the "Xiaofeng residual month xj" blog, welcome to reprint, reprint please be sure to indicate the source (http://blog.csdn.net/xiaofengcanyuexj ).
For various reasons, there may be many shortcomi
Tags: GPO discard Linu related Extensions inux programming system interfaceThe UNIX environment Advanced programming terminology is many, the concept content, also many, but the study concept nature, the standard rule class thing, presumably is this--needs to expand the content many.Linux programming, illustrated, the code is sufficient enough, it seems that the
Sold out ~~!!!
I flipped through two more books and added a total of five books to the previous one. Let's take a look ~~
Are Dangdang buy genuine, put me here a little waste, anyway, certainly cheap, trading way we Q chat: 423257356 (note to buy a book), mail: zhangyue0503@sohu.com ~~~
1... NET FrameworkProgramDesign (revision)
. NET Framework programming
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.