<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Airfrozen的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Airfrozen</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Airfrozen]]></copyright><item><title><![CDATA[ET 200SP：overview]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/109489293</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/109489293</guid><author>Airfrozen</author><pubDate>Wed, 04 Nov 2020 16:23:55 +0800</pubDate><description><![CDATA[SIMATIC ET 200SP is a scalable and highly flexible distributed I/O system for connecting process signals to a higher-level controller via a fieldbus.

The SIMATIC ET 200SP distributed I/O system is installed on a mounting rail. It consists of:
● CPU/interf]]></description><category></category></item><item><title><![CDATA[Programming basics: Block calls]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/108584116</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/108584116</guid><author>Airfrozen</author><pubDate>Thu, 29 Oct 2020 10:15:49 +0800</pubDate><description><![CDATA[Principles of block calls

For your blocks to be executed in the user program, they need to be called from another block.
When one block calls another block, the instructions of the called block are executed. Only when execution of the called block has bee]]></description><category></category></item><item><title><![CDATA[Memory areas]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/109255022</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/109255022</guid><author>Airfrozen</author><pubDate>Sat, 24 Oct 2020 13:09:51 +0800</pubDate><description><![CDATA[Basics of a memory reset

A memory reset on the CPU is possible only in "STOP" mode.
When memory is reset, the CPU is changed to an "initial status". This means:
● An existing online connection between the PG/PC and the CPU is disconnected.
● The content o]]></description><category></category></item><item><title><![CDATA[Mode of operation of S7-1500 CPUs]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/109228716</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/109228716</guid><author>Airfrozen</author><pubDate>Sat, 24 Oct 2020 10:07:54 +0800</pubDate><description><![CDATA[Basics of the operating modes of S7-CPUs

Operating modes describe the states of the CPU. The following operating modes are possible:
● STARTUP
● RUN
● STOP
● HOLD
In these operating modes, the CPU can communicate via the PN/IE interface, for example.

If ]]></description><category></category></item><item><title><![CDATA[Hardware and network editor]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/109189650</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/109189650</guid><author>Airfrozen</author><pubDate>Wed, 21 Oct 2020 19:21:08 +0800</pubDate><description><![CDATA[The hardware and network editor opens when you double-click on the "Devices and Networks" entry in the project tree. The hardware and network editor is the integrated development environment for configuring, networking and assigning parameters to devices a]]></description><category></category></item><item><title><![CDATA[G120C: Installing the inverter]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/108608388</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/108608388</guid><author>Airfrozen</author><pubDate>Tue, 15 Sep 2020 20:29:37 +0800</pubDate><description><![CDATA[Mounting position



Protection against condensation or electrically conductive contamination
Protect the device, e.g. by installing it in a control cabinet with degree of protection IP54. Further measures may be necessary for particularly critical operati]]></description><category></category></item><item><title><![CDATA[G120C: EMC-compliant setup of the machine or plant]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/108607177</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/108607177</guid><author>Airfrozen</author><pubDate>Tue, 15 Sep 2020 20:00:13 +0800</pubDate><description><![CDATA[4.1 EMC-compliant setup of the machine or plant

The inverter is designed for operation in industrial environments where strong electromagnetic fields are to be expected.
Reliable and disturbance-free operation is only guaranteed for EMC-compliant installa]]></description><category></category></item><item><title><![CDATA[G120C: Description]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/108606651</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/108606651</guid><author>Airfrozen</author><pubDate>Tue, 15 Sep 2020 19:20:46 +0800</pubDate><description><![CDATA[3.1 Scope of delivery inverters FSAA ... FSC

The delivery comprises at least the following components:
● A ready to run inverter with loaded firmware.
● 1 set of terminal strips for connecting the inputs and outputs
● 1 set of shield plates, including mou]]></description><category></category></item><item><title><![CDATA[Programming basics: Blocks in the user program]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/108548334</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/108548334</guid><author>Airfrozen</author><pubDate>Mon, 14 Sep 2020 17:44:06 +0800</pubDate><description><![CDATA[摘自Programming the PLC

1.1 Operating system and user program

The following figure shows the interaction of the operating system and the user program:



Operating system (OS)

The tasks of the operating system, for example, include the following:
● Proces]]></description><category></category></item><item><title><![CDATA[Stop Categories]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107620813</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107620813</guid><author>Airfrozen</author><pubDate>Mon, 27 Jul 2020 20:59:22 +0800</pubDate><description><![CDATA[摘自https://machinerysafety101.com/2010/09/27/emergency-stop-categories/

Stop Categories

The stop categories discussed here are not exclusive to emergency stop functions. They areSTOPfunctions and may be used for normal stopping functions as well as the ..]]></description><category></category></item><item><title><![CDATA[Safe Drive Control including Safe Torque Off (STO)]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107616567</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107616567</guid><author>Airfrozen</author><pubDate>Mon, 27 Jul 2020 20:31:21 +0800</pubDate><description><![CDATA[摘自https://machinerysafety101.com/2017/07/03/safe-drive-control-sto/

Since we are controllingmachinery, safety is always aconcern. In the 1990’s when Istarted designing machinery with motor drives, dealing with safety concerns usually meant adding asui...]]></description><category></category></item><item><title><![CDATA[S7-1200和S7-1500转换操作]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107424371</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107424371</guid><author>Airfrozen</author><pubDate>Sat, 18 Jul 2020 13:59:21 +0800</pubDate><description><![CDATA[CONVERT：转换值

“转换值”指令将读取参数 IN 的内容，并根据指令框中选择的数据类型对其进行转换。转换值将在 OUT 输出处输出。

如果满足下列条件之一，则使能输出 ENO 的信号状态为“0”：

使能输入 EN 的信号状态为“0”。
	执行过程中发生溢出之类的错误。


ROUND：取整

可以使用“取整”指令将输入 IN 的值四舍五入取整为最接近的整数。该指令将输入 IN 的值解释为浮点数，并转换为一个 DINT 数据类型的整数。如果输入值恰好是在一个偶数和一个奇数之间，则选择偶数。指令结果]]></description><category></category></item><item><title><![CDATA[S7-1200和S7-1500数学函数]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107214890</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107214890</guid><author>Airfrozen</author><pubDate>Sat, 18 Jul 2020 09:03:50 +0800</pubDate><description><![CDATA[CALCULATE：计算

可以使用“计算”指令定义并执行表达式，根据所选数据类型计算数学运算或复杂逻辑运算。

可以从指令框的“???”下拉列表中选择该指令的数据类型。根据所选的数据类型，可以组合某些指令的函数以执行复杂计算。将在一个对话框中指定待计算的表达式，单击指令框上方的“计算器”图标可打开该对话框。表达式可以包含输入参数的名称和指令的语法。不能指定操作数名称和操作数地址。

在初始状态下，指令框至少包含两个输入（IN1 和 IN2）。可以扩展输入数目。在功能框中按升序对插入的输入编号。

使用输入]]></description><category></category></item><item><title><![CDATA[驾考科目一：安全行车和文明驾驶]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107368750</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107368750</guid><author>Airfrozen</author><pubDate>Wed, 15 Jul 2020 21:32:53 +0800</pubDate><description><![CDATA[停车位

颜色为白色的泊位，表示此停车位为收费停车位。
	颜色为黄色的泊位，表示此停车位为专属停车位。
	颜色为蓝色的泊位，表示此停车位为免费停车位。
高速公路匝道

高速公路匝道是高速公路出口或入口靠右侧的一条道路。一般在150到200米。入口处匝道过后是加速车道，出口处匝道紧接在减速道之后。匝道内车速一般要求低于40km/h，加速车道内应迅速加速至60km/h以上。在匝道上不准超车，掉头，停车和倒车。

灯光变化

车辆在平面路上行驶，灯光距离不变；在一般的弯道，灯光由路中移到路侧；上坡时灯光由高变低。]]></description><category></category></item><item><title><![CDATA[驾考科目一：道路交通安全法律、法规和规章]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107305277</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107305277</guid><author>Airfrozen</author><pubDate>Wed, 15 Jul 2020 19:27:50 +0800</pubDate><description><![CDATA[牵引故障机动车应当遵守下列规定：

被牵引的机动车除驾驶人外不得载人，不得拖带挂车。
	被牵引的机动车宽度不得大于牵引机动车的宽度。
	使用软连接牵引装置时，牵引车与被牵引车之间的距离应当大于四米，小于十米。
酒后驾驶

饮酒后驾驶机动车的，处暂扣6个月机动车驾驶证，并处1000元以上2000元以下罚款。因饮酒后驾驶机动车被处罚，再次饮酒后驾驶机动车的，处十日以下拘留，并处1000元以上2000元以下罚款，吊销机动车驾驶证。

醉酒驾驶机动车的，吊销机动车驾驶证，依法追究刑事责任，五年内不得重新取得机动车驾]]></description><category></category></item><item><title><![CDATA[S7-1200和S7-1500比较操作]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107214436</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107214436</guid><author>Airfrozen</author><pubDate>Wed, 08 Jul 2020 20:45:10 +0800</pubDate><description><![CDATA[CMP ==：等于

可以使用“等于”指令判断第一个比较值（&lt;操作数 1&gt;）是否等于第二个比较值（&lt;操作数 2&gt;）。

如果满足比较条件，则指令返回逻辑运算结果 1。如果不满足比较条件，则指令返回 0。

在指令上方的操作数占位符中指定第一个比较值（&lt;操作数 1&gt;）。在指令下方的操作数占位符中指定第二个比较值（&lt;操作数 2&gt;）。

如果启用了 IEC 检查，则要比较的操作数必须属于同一数据类型。如果未启用 IEC 检查，则操作数的宽度必须相同。

比较浮点数
]]></description><category></category></item><item><title><![CDATA[梯形图中常闭常开触点的选择]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107120871</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107120871</guid><author>Airfrozen</author><pubDate>Sat, 04 Jul 2020 10:55:48 +0800</pubDate><description><![CDATA[梯形图编程中一个触点应该选择常闭还是常开，对于输出线圈的常开常闭触点较好判断，而对输入DI信号的常开常闭触点的选择比较让人困惑。

DI信号在梯形图中的常开常闭触点：梯形图中常开触点输出与DI信号一致，即PLC接收到DI输入为1，梯形图中常开触点为1。常闭触点则与输入信号相反，输入信号为1时，梯形图中常闭触点为0，即不导通。注意，梯形图中常开常闭触点与实际输入的常开常闭触点无关。



上图为电机正反转正转的梯形图。

思路：以KM_Forward=1为目标。

1. start按钮，常开触点接到PLC。工]]></description><category></category></item><item><title><![CDATA[S7-1200和S7-1500计数器操作]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107069888</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107069888</guid><author>Airfrozen</author><pubDate>Wed, 01 Jul 2020 18:59:14 +0800</pubDate><description><![CDATA[CTU：加计数

可以使用“加计数”指令，递增输出 CV 的值。如果输入 CU 的信号状态从“0”变为“1”（信号上升沿），则执行该指令，同时输出 CV 的当前计数器值加 1。每检测到一个信号上升沿，计数器值就会递增，直到达到输出 CV 中所指定数据类型的上限。达到上限时，输入 CU 的信号状态将不再影响该指令。

可以查询 Q 输出中的计数器状态。输出 Q 的信号状态由参数 PV 决定。如果当前计数器值大于或等于参数 PV 的值，则将输出 Q 的信号状态置位为“1”。在其它任何情况下，输出 Q 的信号状态]]></description><category></category></item><item><title><![CDATA[S7-1200和S7-1500定时器操作]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107051359</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107051359</guid><author>Airfrozen</author><pubDate>Tue, 30 Jun 2020 22:02:40 +0800</pubDate><description><![CDATA[TP：生成脉冲

使用“生成脉冲”(Generate pulse) 指令，可以将输出 Q 置位为预设的一段时间。

当输入 IN 的逻辑运算结果 (RLO) 从“0”变为“1”（信号上升沿）时，启动该指令。指令启动时，预设的时间 PT 即开始计时。无论后续输入信号的状态如何变化，都将输出 Q 置位由 PT 指定的一段时间。PT 持续时间正在计时时，即使检测到新的信号上升沿，输出 Q 的信号状态也不会受到影响。

可以扫描 ET 输出处的当前时间值。该定时器值从 T#0s 开始，在达到持续时间值 PT 后结束]]></description><category></category></item><item><title><![CDATA[S7-1200和S7-1500位逻辑指令]]></title><link>https://blog.youkuaiyun.com/Airfrozen/article/details/107028195</link><guid>https://blog.youkuaiyun.com/Airfrozen/article/details/107028195</guid><author>Airfrozen</author><pubDate>Mon, 29 Jun 2020 21:43:52 +0800</pubDate><description><![CDATA[---| |---：常开触点

常开触点的激活取决于相关操作数的信号状态。当操作数的信号状态为“1”时，常开触点将关闭，同时输出的信号状态置位为输入的信号状态。当操作数的信号状态为“0”时，不会激活常开触点，同时该指令输出的信号状态复位为“0”。

两个或多个常开触点串联时，将逐位进行“与”运算。串联时，所有触点都闭合后才产生信号流。

常开触点并联时，将逐位进行“或”运算。并联时，有一个触点闭合就会产生信号流。

---| / |---: 常闭触点

常闭触点的激活取决于相关操作数的信号状态。当操作数的信]]></description><category></category></item></channel></rss>