Because of a variety of reasons colleagues are very unpleasant to go, equipment is not moving up, is my life.Write a simple program, debugging equipment, the results of colleagues said the problem, not only the motor is not controlled. I had to check the program from the beginning, because the program is very simple, so certainly not a procedural problem. After a few troubleshooting equipment, it is found in a connection between the stepper motor driver direction control of the terminal and the
St language is one of the 5 standard languages stipulated in Iec61131-3, the PLC which is commonly used to see the brand supports this language (Schneider, AB can directly choose to create this type of program segment or function block, Siemens a little Trouble), one of the advantages of St language is good transplant, The St language of the family is basically similar, so if there is a giant good algorithm, with St language implementation is no bette
Ace construction in Windows (VC ++ 6.0 environment) 1. extract ace-5.5.zip to the required installation directory. E:/is used as an example to decompress the package to form the ace_wrappers folder. Therefore, Ace is stored in the ace_wrappers/ace directory. Ace_root = E:/ace_wrappers. 2. Create an ace_root environment
Today, writing a study note of the PLC, this article will introduce the most basic operation of the PLC and control instructions, this article will be directly on.1. Basic Arithmetic Operation instruction1) Integer arithmetic2) Long integer operation3) Real arithmetic、STL Programming Example (arithmetic operations for 16-bit integers)liw10//the input word IW10 load accumulator 1 Low word lmw12//the accumula
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 programming language, which is usually composed of a series of instructions, which can accomplish most simple control
Ace construction (VC ++ 6.0 environment)
Ace construction in Windows1.Extract ace-5.5.zip to the required installation directory. Here, E: \ is used as an example to decompress the package and form the ace_wrappers folder. Therefore, Ace will exist in the ace_wrappers \ ACE
Document directory
1. There are no monographs on ACE except for the three books written by Douglas Schmidt and Stephen Huston.
2. ACE is very difficult to use and is very easy to use with errors
3. ACE code quality is not high. It is more like a research project than an industrial product.
5. ACE is too complex,
the event action when the event occurs and disappears, through the event trigger condition, can open the picture, play the sound, execute the *.exe executable program and set the variable value, etc.2.5 Real-time databaseThe user specifies the data storage method, which can be stored in the database by timing, conditional expression and rate of change.2.6 Control StrategyWith FBD61499 graphical programming, users can complete advanced complex control with simple drag-and-drop and wiring. Input
The timers in the PLC are placed in a specific PRG task unit, and the PRG unit needs to be placed in a specific periodic cycle task in order to be executed, and this cycle cycle task cycle T; The timing time of the timer T0; T and T0 The order of magnitude, or size determines the accuracy of the timer.Ttest:ton;Uicount:uint;TTest (in: = Not ttest.q, PT: = t#2s);IF TTEST.Q ThenUicount: = uicount+10;End_ifSituation one: T0 > > t (Timer T0 (seconds) time
Double-click Plctask, and then cycle ticks to modify the PLC scan cycle, for example, modified to 2ms?In order to verify whether it is really 2ms, can be used in the program with the counter binding, PLC2MS scan once, the counter is also increased by 0.002 per cycle, so you can see whether the time is one second of the increase.?In TC2, you need to switch to the task configuration and then navigate to a task (default is standard only), and then modify
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 not find out the specific problem, did not th
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 not find out the specific problem, did not th
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, the new version of the ladder to make improv
Serial initializationD8120 Description:※ According to MD320 Communication protocol, no frame head and frame tail, then (BIT9,BIT8) = (0,0).※BIT13~15 is a set item when a computer is linked to a communication, it must be set to 0 when using the RS command.※RS485 does not consider the method of setting the control line, when using FX2N-485-BD, FX0N-485ADP, (bit11,bit10) = (in).※ If the communication parameters between the PLC and the inverter are as fol
The engine set consists of 1 petrol engines and 1 diesel engines, which is required to control the engine group with PLC, so that the speed of each engine is stabilized at the set speed, and the starting and delay of the cooling fan are controlled. Each engine is set with a Start button and a Stop button.The program is as follows:1. Program Module2. Symbol table3. Fan Control Program4. Starter Control5. Start the UnitNote: 1) Complete a local instance
The FB block can be called multiple times by the OB1, and all parameters and static data of the function are stored in a separate data block (DB) that is assigned to the function block, which is referred to as the background data block. When the FB is called, the background data block is automatically opened, the value of the actual parameter is stored in the background data block, and when the block exits, the data in the background data block remains.Below through the case design introduction
, word, and doubleword)
A> byte (B): the continuous 8-bit binary number starting from 0 is called a byte. B> word (W): two adjacent bytes constitute the length of a word. C> double-character (DW): the adjacent four bytes constitute the length of a double-character. D> storage features of long and double-character data: high storage is low in bytes, and its position is high in bytes.
6. Negative (signed number) Representation
A> negative expression: PLC
S7-300 PLC Siemens
This is the second video study note of Yang Shengfeng.
1. Digital Volume Module
1) Digital Volume input module
The digital input module converts the Digital Signal levels sent during the field process to the internal signal levels of the S7-300.
A. Digital Input module sm321 (external 24 V power supply required)
Sm321 has four types of modules: DC 16-point input, DC 32-point input, AC 16-point input, and AC 8-point input.
Figure:
B
I. Ace Overview
Ace adaptive communication environment (Adaptive Communication Environment) is a free-to-use, open-source object-oriented (OO) framework, which implements many core modes for concurrent communication software. ACE provides a rich set of reusableC ++Wrapper facade and architecture components can be used to complete common communication software tas
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.