使用PLC的自动化制造系统——3.2.1 Inputs

2023-10-10 03:20

本文主要是介绍使用PLC的自动化制造系统——3.2.1 Inputs,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

3.2.1 Inputs

3.2.1 输入

    In smaller PLCs the inputs are normally built in and are specified when purchasing the PLC. For larger PLCs the inputs are purchased as modules, or cards, with 8 or 16 inputs of the same type on each card. For discussion purposes we will discuss all inputs as if they have been purchased as cards. The list below shows typical ranges for input voltages, and is roughly in order of popularity.

 

在较小的PLC中,输入通常是内置的,在购买PLC时要指定。对于较大的PLC,输入是作为模块或卡购买的,在每个卡中有8点或16点同一个类型。为了便于讨论,我们将讨论假定所有的输入点是按卡购买的。下面名单显示了典型的输入电压范围,粗略按照常用程度排列。

12-24 Vdc

100-120 Vac

10-60 Vdc

12-24 Vac/dc

5 Vdc (TTL)

200-240 Vac

48 Vdc

24 Vac

PLC input cards rarely supply power, this means that an external power supply is needed to supply power for the inputs and sensors. The example in Figure 3.2 shows how to connect an AC input card.

PLC的输入卡很少供电,这意味着需要给输入和传感器提供一个外部电源。图3.2中的例子显示了如何连接到一个AC输入卡。

In the example there are two inputs, one is a normally open push button, and the second is a temperature switch, or thermal relay. (NOTE: These symbols are standard and will be discussed later in this chapter.) Both of the switches are powered by the positive/hot output of the 24Vac power supply - this is like the positive terminal on a DC supply. Power is supplied to the left side of both of the switches. When the switches are open there is no voltage passed to the input card. If either of the switches are closed power will be supplied to the input card. In this case inputs 1 and 3 are used - notice that the inputs start at 0. The input card compares these voltages to the common. If the input voltage is within a given tolerance range the inputs will switch on. Ladder logic is shown in the figure for the inputs. Here it uses Allen Bradley notation for ControlLogix. At the top is the tag (variable name) for the rack. The input card (’I’) is in slot 3, so the address for the card is bob:3.I.Data.x, where ’x’ is the input bit number. These addresses can also be given alias tags to make the ladder logic less confusing.

 

在这个例子中有两个输入,一个是常开按钮,第二个是一个温度开关,或热继电器。(注意:这些符号是标准符号,在这一章稍后将讨论。)这两个开关都采用了正极/火线24VAC电源的输出-这就像在一个直流的电源正极。 电源提供给两个开关的左侧。当开关打开时,没有电压传递到输入卡。如果任一开关闭合,电源将提供给输入卡。在这种情况下输入13是使用的-注意,输入在0开始。输入卡比较这些和公共端的电压。如果输入电压是在一个给定的容差范围内,输入开关将接通。在图中显示了梯形逻辑图的输入。在这里它使用ControlLogix A-B的符号。在顶部是它机架上的标签(变量名)。输入卡('I')是在插槽3,所以这个卡的地址是bob:3.I.Data.x,其中,'x'是输入位的数字。这些地址也可以给定别名标签,使梯形逻辑产生较少的混乱。

NOTE: The design process will be much easier if the inputs and outputs are planned first, and the tags are entered before the ladder logic. Then the program is entered using the much simpler tag names.

注:如果输入和输出首先计划好,并且标签在梯形逻辑前输入,设计过程将非常简单。然后输入程序将使用简单得多的标签名。

Many beginners become confused about where connections are needed in the circuit above. The key word to remember is circuit, which means that there is a full loop that the voltage must be able to follow. In Figure 3.2 we can start following the circuit (loop) at the power supply. The path goes through the switches, through the input card, and back to the power supply where it flows back through to the start. In a full PLC implementation there will be many circuits that must each be complete.

许多初学者在上图的电路中哪里需要连接感到困惑。关键是要记住的是电路,这意味着电压必须能够流动,有一个完整的循环电。在图3.2中,我们可以在电源开始电路(循环)。路径经过开关,通过输入卡,再回到电源,回流到开始的地方。在一个完整的的PLC执行过程,有许多电路每一个必须完成。

A second important concept is the common. Here the neutral on the power supply is the common, or reference voltage. In effect we have chosen this to be our 0V reference, and all other voltages are measured relative to it. If we had a second power supply, we would also need to connect the neutral so that both neutrals would be connected to the same common. Often common and ground will be confused. The common is a reference, or datum voltage that is used for 0V, but the ground is used to prevent shocks and damage to equipment. The ground is connected under a building to a metal pipe or grid in the ground. This is connected to the electrical system of a building, to the power outlets, where the metal cases of electrical equipment are connected. When power flows through the ground it is bad. Unfortunately many engineers, and manufacturers mix up ground and common. It is very common to find a power supply with the ground and common mislabeled.

第二个重要的概念是公共地。在这里,电源不带电端是公共地,或参考电压。实际上,我们选择这个是作为我们的0V参考,所有其他电压相对于它测量。如果我们有第二个电源,我们需要连接中性点,使这两个中性点连接到同样的公共地。通常的公共地和地容易混淆。公共地是一个参考,或基准电压,用来做0V使用,但地是用于防止冲击和损害到设备。地连接到地面建筑物下一个金属管道或网。这是连接到建筑物的电气系统,对电源插座,是连接到电气设备的金属构件。当电源流经地是严重的。不幸的是许多工程师,制造者混淆了的地和公共地。在电源的接地和公共地贴错标签是很常见的。

Remember - Don’t mix up the ground and common. Don’t connect them together if the common of your device is connected to a common on another device.

记住-不要混淆的接地和公共地。不要连接在一起,如果您的设备的公共地是连接到另一台设备上的公共地不要将它们连接到一起。

One final concept that tends to trap beginners is that each input card is isolated. This means that if you have connected a common to only one card, then the other cards are not connected. When this happens the other cards will not work properly. You must connect a common for each of the output cards.

最后一个初学者往往陷入其中的概念是每个输入卡是孤立的。 这意味着,如果你连接一个公共地仅到一个卡,那么其他卡未连接。当发生这种情况时,其他卡将无法正常工作。你必须连接一个公共地到每一个输出卡。

There are many trade-offs when deciding which type of input cards to use.

DC voltages are usually lower, and therefore safer (i.e., 12-24V).

DC inputs are very fast, AC inputs require a longer on-time. For example, a 60Hz wave may require up to 1/60sec for reasonable recognition.

DC voltages can be connected to larger variety of electrical systems.

AC signals are more immune to noise than DC, so they are suited to long distances, and noisy (magnetic) environments.

AC power is easier and less expensive to supply to equipment.

AC signals are very common in many existing automation devices.

有许多权衡确定使用哪些类型的输入卡。

 •直流电压通常较低,因此更安全(即12 - 24V)。

 •直流输入非常快,AC输入需要较长的时间。例如,60Hz 波可能需要高达1/60sec的合理辨认时间。

 •直流电压可连接到大容量的店里系统。

 •交流信号比直流信号更不容易受噪音的影响,所以适合长距离散和噪音(磁)环境。

 •交流电源对设备更容易,更便宜。

 •交流信号在许多现有的自动化设备是非常普遍的。

ASIDE: PLC inputs must convert a variety of logic levels to the 5Vdc logic levels used on the data bus. This can be done with circuits similar to those shown below. Basically the circuits condition the input to drive an optocoupler. This electrically isolates the external electrical circuitry from the internal circuitry. Other circuit components are used to guard against excess or reversed voltage polarity.

除了:PLC的输入必须转换为各种逻辑电平,5Vdc的逻辑电用于数据总线。这可以与如下的电路类似。 基本上电路条件的输入驱动光耦合器。这种电从内部隔离外部的电路。其它电路组件被用来防止过压或逆转电极性。

这篇关于使用PLC的自动化制造系统——3.2.1 Inputs的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/177571

相关文章

JavaScript中的reduce方法执行过程、使用场景及进阶用法

《JavaScript中的reduce方法执行过程、使用场景及进阶用法》:本文主要介绍JavaScript中的reduce方法执行过程、使用场景及进阶用法的相关资料,reduce是JavaScri... 目录1. 什么是reduce2. reduce语法2.1 语法2.2 参数说明3. reduce执行过程

如何使用Java实现请求deepseek

《如何使用Java实现请求deepseek》这篇文章主要为大家详细介绍了如何使用Java实现请求deepseek功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录1.deepseek的api创建2.Java实现请求deepseek2.1 pom文件2.2 json转化文件2.2

python使用fastapi实现多语言国际化的操作指南

《python使用fastapi实现多语言国际化的操作指南》本文介绍了使用Python和FastAPI实现多语言国际化的操作指南,包括多语言架构技术栈、翻译管理、前端本地化、语言切换机制以及常见陷阱和... 目录多语言国际化实现指南项目多语言架构技术栈目录结构翻译工作流1. 翻译数据存储2. 翻译生成脚本

C++ Primer 多维数组的使用

《C++Primer多维数组的使用》本文主要介绍了多维数组在C++语言中的定义、初始化、下标引用以及使用范围for语句处理多维数组的方法,具有一定的参考价值,感兴趣的可以了解一下... 目录多维数组多维数组的初始化多维数组的下标引用使用范围for语句处理多维数组指针和多维数组多维数组严格来说,C++语言没

在 Spring Boot 中使用 @Autowired和 @Bean注解的示例详解

《在SpringBoot中使用@Autowired和@Bean注解的示例详解》本文通过一个示例演示了如何在SpringBoot中使用@Autowired和@Bean注解进行依赖注入和Bean... 目录在 Spring Boot 中使用 @Autowired 和 @Bean 注解示例背景1. 定义 Stud

使用 sql-research-assistant进行 SQL 数据库研究的实战指南(代码实现演示)

《使用sql-research-assistant进行SQL数据库研究的实战指南(代码实现演示)》本文介绍了sql-research-assistant工具,该工具基于LangChain框架,集... 目录技术背景介绍核心原理解析代码实现演示安装和配置项目集成LangSmith 配置(可选)启动服务应用场景

使用Python快速实现链接转word文档

《使用Python快速实现链接转word文档》这篇文章主要为大家详细介绍了如何使用Python快速实现链接转word文档功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 演示代码展示from newspaper import Articlefrom docx import

oracle DBMS_SQL.PARSE的使用方法和示例

《oracleDBMS_SQL.PARSE的使用方法和示例》DBMS_SQL是Oracle数据库中的一个强大包,用于动态构建和执行SQL语句,DBMS_SQL.PARSE过程解析SQL语句或PL/S... 目录语法示例注意事项DBMS_SQL 是 oracle 数据库中的一个强大包,它允许动态地构建和执行

SpringBoot中使用 ThreadLocal 进行多线程上下文管理及注意事项小结

《SpringBoot中使用ThreadLocal进行多线程上下文管理及注意事项小结》本文详细介绍了ThreadLocal的原理、使用场景和示例代码,并在SpringBoot中使用ThreadLo... 目录前言技术积累1.什么是 ThreadLocal2. ThreadLocal 的原理2.1 线程隔离2

Python itertools中accumulate函数用法及使用运用详细讲解

《Pythonitertools中accumulate函数用法及使用运用详细讲解》:本文主要介绍Python的itertools库中的accumulate函数,该函数可以计算累积和或通过指定函数... 目录1.1前言:1.2定义:1.3衍生用法:1.3Leetcode的实际运用:总结 1.1前言:本文将详