Ladder diagram is a common programming language for various PLCs. Although the instruction symbols used by PLCs of different manufacturers are not consistent, the design and programming methods of ladder diagrams are basically the same.
When programming with ladder diagrams, you must first determine the programming component number used. PLCs distinguish operating components by number. The address numbers of the internal components of the FX2N PLC we selected are shown in the following table. Be sure to clarify when using it. Each component must not play several roles at the same time. Generally speaking, the number of input points of a configured PLC always corresponds to the number of input signals of the control object, and the number of output points corresponds to the number of output control loops (if there is an analog quantity, the number of analog quantity channels must be equivalent to the actual one). Therefore, the allocation of I/O is actually to assign the input and output point numbers of the PLC to the actual I/O circuits. When programming, establish the logic or control relationship according to the point number, and when wiring, "match the number" according to the point number. The I/O address allocation of the FX2N series and some other memory allocations have been introduced before. Students can also refer to the programming manual of the FX series.
2. Ladder diagram programming rules
1. The coil and contacts of each relay are numbered the same, and there is no limit on the number of contacts of each component that can be used.
2. Each row of the ladder diagram starts from the left, and the coil is connected to the rightmost side (no more contact points are allowed on the right side of the coil).
3. The coil cannot be directly connected to the left busbar.
4. In a program, if the coil with the same number is used twice, it is called double coil output. It can easily cause misoperation and should be avoided as much as possible.
5. There is no real current flow in the ladder diagram. In order to facilitate the analysis of the PLC's periodic scanning principle and logical cause and effect, it is assumed that there is "current" flowing in the ladder diagram. This "current" can only flow in one direction in the ladder diagram - that is, from left to right, and the level can only change from top to bottom.
Previous article:How to save Siemens S7-200PLC program data after power failure
Next article:How to set the power-off retention of Siemens S7-200PLC counter?
Recommended ReadingLatest update time:2024-11-16 13:57
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 【New Year's Taste Competition】+ Spring Festival Customs
- ESD electrostatic protection classic book - "ESD Secrets: Electrostatic Protection Principles and Typical Applications"
- [TI star product limited time purchase] + AWR683ISK run demo
- Fancy PCB Exhibition (1)
- Why is it said that 90% of EMC is designed? (Long article)
- Recommended postgraduate schools
- Share CC2541 Bluetooth learning about ADC
- MSP430 LCD5110 driver programming example
- NUCLEO F446RE meets X-NUCLEO-IKS01A3
- A huge reward! Looking for someone who can crack the RSA2048 and factory protocol in the ECU!