当前位置:网站首页>CoDeSys note 2: set coil and reset coil
CoDeSys note 2: set coil and reset coil
2022-07-06 05:42:00 【Gutie_ bartholomew】
Set coil
It can be understood as a self-locking coil , Imagine that the front contact is a key switch , When this switch is pressed , The coil is set to ture, Or it can be understood as 1, Coil pull , The contact state corresponding to the coil is reversed .
Then the front contact can no longer control it , How can I reset it ?
Reset coil
And the logic of the set coil is opposite , It can be understood here , Imagine there is a key switch in front ( characteristic : When not pressed, the physical electrical circuit is connected , The line will disconnect when you press it ), In the beginning , The whole line is connected , This coil ( Reset coil ) There is electricity , its The logic is 1, No output . If you press the switch at this time , The line is disconnected , Coil power loss , its Logic becomes 0, Have output . If you release the switch again at this time , The line is connected again , The coil is energized again , Logic changes again by 1, No output .
I understand it :
1、 When the external normally closed button is not pressed ,i0.5 This normally closed contact is not triggered , This contact is conductive , Not connected here means that the contact is normal , There's no flip , It doesn't mean that the circuit is not connected , In this context, it means this , At this time, the rear reset coil is charged . This is the time ,q0.1 The coil is closed , Its value is 1, But it has no output .
2、 When the external normally closed button is pressed ,i0.5 Connect , The connection here refers to the change of the contact from normally closed contact to normally open contact , A flip has occurred , In fact, the physical circuit is cut off , The back coil loses power .
For this reset coil , After power loss, the state changes to 0, This is when the output begins , Output is 0, Its important function has worked : Change the upper set coil into 0( The setting coil has changed to 1 了 ) from 1 become 0 It's called reset , So it resets the setting coil . And the setting coil becomes 0 after , It will no longer output .
3、 This is the time , The external normally closed button is released , Not connected , In fact, there is electricity on the circuit of the reset coil , The reset coil remains disconnected in the previous step ( Non closing state ).
Be careful , The reset coil at this time is completely different from the ordinary coil , At this time, the coil is energized , however , Its coil is not engaged (1), Its coil is disconnected (0). If it is an ordinary coil , When it is powered on, it immediately pulls in (1), Disconnect immediately after power loss (0).
The final effect ,q0.1 The final state is the output of the reset coil 0 Controls the , And the output of the set coil 1 invalid .
To sum up :
Reset coil and set coil are not ordinary coils , It's important here , Don't simply think that their law is also the law of ordinary coils , Even if their power is turned into 1, Power loss turns into 0, Logic is 0 and 1.
Ordinary coil Output immediately after power on 1, Output as soon as power is lost 0, If the front call changes, it will change immediately
Set coil Output immediately after power on 1, After that, no matter whether there is electricity in front , Its output is 1
Reset coil Output immediately after power loss 0, At this time, you can clear the setting coil 0, After that, whether there is a click in front or not , Its output is 0, Until the setting coil turns it into 1
In fact, it can also be directly separated from physical devices , Understand directly with program software , Imagine as a register , Setting is to change this variable into data 1, Reset is to change this variable into data 0
Whether the coil has output ?
The output is 0 still 1?
These two questions are easy to confuse people , My understanding is as follows
They are all coils , Each has its own state of attraction and disconnection , Pull in as 1, Disconnect as 0, But they don't have to output their own state , But once they meet certain conditions, they start to output , that :
When the setting coil has output , The output is 1
When the reset coil has output , The output is 0
The following is a good story :
PLC Coil output and reset , Many people will make mistakes , Can you use ?
PLC Program explanation and several ladder diagrams that beginners must master
How to understand Siemens PLC Set and reset instructions ( Super practical )
边栏推荐
- [Jiudu OJ 07] folding basket
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- A master in the field of software architecture -- Reading Notes of the beauty of Architecture
- 【torch】|torch. nn. utils. clip_ grad_ norm_
- PDK process library installation -csmc
- Promotion hung up! The leader said it wasn't my poor skills
- [force buckle]43 String multiplication
- Check the useful photo lossless magnification software on Apple computer
- Remember an error in MySQL: the user specified as a definer ('mysql.infoschema '@' localhost ') does not exist
- Web Security (V) what is a session? Why do I need a session?
猜你喜欢
[SQL Server fast track] - authentication and establishment and management of user accounts
First acquaintance with CDN
Unity Vector3. Use and calculation principle of reflect
The digital economy has broken through the waves. Is Ltd a Web3.0 website with independent rights and interests?
- [email protected] raspberry pie"/>
[email protected] raspberry pie
B站刘二大人-线性回归及梯度下降
PDK process library installation -csmc
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
26file filter anonymous inner class and lambda optimization
RustDesk 搭建一个自己的远程桌面中继服务器
随机推荐
Installation de la Bibliothèque de processus PDK - csmc
PDK工艺库安装-CSMC
js Array 列表 实战使用总结
【SQL server速成之路】——身份验证及建立和管理用户账户
[detailed explanation of Huawei machine test] statistics of shooting competition results
02. 开发博客项目之数据存储
Problems encountered in installing mysql8 on MAC
Game push: image / table /cv/nlp, multi-threaded start!
Rustdesk builds its own remote desktop relay server
How to use PHP string query function
How to download GB files from Google cloud hard disk
类和对象(一)this指针详解
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
02. Develop data storage of blog project
嵌入式面试题(一:进程与线程)
After the project is released, index Html is cached
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Questions d'examen écrit classiques du pointeur
[string] palindrome string of codeup