使用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

相关文章

Python使用FastAPI实现大文件分片上传与断点续传功能

《Python使用FastAPI实现大文件分片上传与断点续传功能》大文件直传常遇到超时、网络抖动失败、失败后只能重传的问题,分片上传+断点续传可以把大文件拆成若干小块逐个上传,并在中断后从已完成分片继... 目录一、接口设计二、服务端实现(FastAPI)2.1 运行环境2.2 目录结构建议2.3 serv

Spring Security简介、使用与最佳实践

《SpringSecurity简介、使用与最佳实践》SpringSecurity是一个能够为基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架,本文给大家介绍SpringSec... 目录一、如何理解 Spring Security?—— 核心思想二、如何在 Java 项目中使用?——

springboot中使用okhttp3的小结

《springboot中使用okhttp3的小结》OkHttp3是一个JavaHTTP客户端,可以处理各种请求类型,比如GET、POST、PUT等,并且支持高效的HTTP连接池、请求和响应缓存、以及异... 在 Spring Boot 项目中使用 OkHttp3 进行 HTTP 请求是一个高效且流行的方式。

Java使用Javassist动态生成HelloWorld类

《Java使用Javassist动态生成HelloWorld类》Javassist是一个非常强大的字节码操作和定义库,它允许开发者在运行时创建新的类或者修改现有的类,本文将简单介绍如何使用Javass... 目录1. Javassist简介2. 环境准备3. 动态生成HelloWorld类3.1 创建CtC

使用Python批量将.ncm格式的音频文件转换为.mp3格式的实战详解

《使用Python批量将.ncm格式的音频文件转换为.mp3格式的实战详解》本文详细介绍了如何使用Python通过ncmdump工具批量将.ncm音频转换为.mp3的步骤,包括安装、配置ffmpeg环... 目录1. 前言2. 安装 ncmdump3. 实现 .ncm 转 .mp34. 执行过程5. 执行结

Java使用jar命令配置服务器端口的完整指南

《Java使用jar命令配置服务器端口的完整指南》本文将详细介绍如何使用java-jar命令启动应用,并重点讲解如何配置服务器端口,同时提供一个实用的Web工具来简化这一过程,希望对大家有所帮助... 目录1. Java Jar文件简介1.1 什么是Jar文件1.2 创建可执行Jar文件2. 使用java

C#使用Spire.Doc for .NET实现HTML转Word的高效方案

《C#使用Spire.Docfor.NET实现HTML转Word的高效方案》在Web开发中,HTML内容的生成与处理是高频需求,然而,当用户需要将HTML页面或动态生成的HTML字符串转换为Wor... 目录引言一、html转Word的典型场景与挑战二、用 Spire.Doc 实现 HTML 转 Word1

Java中的抽象类与abstract 关键字使用详解

《Java中的抽象类与abstract关键字使用详解》:本文主要介绍Java中的抽象类与abstract关键字使用详解,本文通过实例代码给大家介绍的非常详细,感兴趣的朋友跟随小编一起看看吧... 目录一、抽象类的概念二、使用 abstract2.1 修饰类 => 抽象类2.2 修饰方法 => 抽象方法,没有

MyBatis ParameterHandler的具体使用

《MyBatisParameterHandler的具体使用》本文主要介绍了MyBatisParameterHandler的具体使用,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参... 目录一、概述二、源码1 关键属性2.setParameters3.TypeHandler1.TypeHa

Spring 中的切面与事务结合使用完整示例

《Spring中的切面与事务结合使用完整示例》本文给大家介绍Spring中的切面与事务结合使用完整示例,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考... 目录 一、前置知识:Spring AOP 与 事务的关系 事务本质上就是一个“切面”二、核心组件三、完