当前位置:网站首页>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 )
边栏推荐
- 26file filter anonymous inner class and lambda optimization
- How to get list length
- 05. Security of blog project
- 【华为机试真题详解】检查是否存在满足条件的数字组合
- Embedded interview questions (IV. common algorithms)
- 29io stream, byte output stream continue write line feed
- Analysis of grammar elements in turtle Library
- A master in the field of software architecture -- Reading Notes of the beauty of Architecture
- 巨杉数据库再次亮相金交会,共建数字经济新时代
- Vulhub vulnerability recurrence 69_ Tiki Wiki
猜你喜欢

进程和线程

大型网站如何选择比较好的云主机服务商?

Yygh-11-timing statistics

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

B站刘二大人-线性回归 Pytorch

59. Spiral matrix

毕业设计游戏商城

Game push image / table /cv/nlp, multi-threaded start

What impact will frequent job hopping have on your career?

How can large websites choose better virtual machine service providers?
随机推荐
Embedded interview questions (IV. common algorithms)
LeetCode_字符串反转_简单_557. 反转字符串中的单词 III
ARTS Week 25
Check the useful photo lossless magnification software on Apple computer
01. Project introduction of blog development project
Questions d'examen écrit classiques du pointeur
Processes and threads
UCF (2022 summer team competition I)
【经验】win11上安装visio
初识CDN
SQLite queries the maximum value and returns the whole row of data
jdbc使用call调用存储过程报错
HAC cluster modifying administrator user password
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
B站刘二大人-反向传播
Promise summary
SQLite add index
Text classification still stays at Bert? The dual contrast learning framework is too strong
Qt TCP 分包粘包的解决方法
Problems encountered in installing mysql8 on MAC