台达DVP LC用电位器的电压模拟传感器DVP AD SL模拟量输入成功程序
- 格式:docx
- 大小:1.78 MB
- 文档页数:6
伺服位置控制说明
1、目的:本技术文档旨在说明用台达PLC发出脉冲指令给伺服控制器,进而控制伺服电机按指定方向(正方向)旋转指定角度。
2、相关设备型号
3、台达PLC接线
4、伺服控制器接线
43接Y3(正脉冲指令输入)
39 接Y3(正方向指令输入)
L1C接火线,L1C跟R 短接L2C接火线,L2C 跟S 短接注:伺服电机与控制器采用专用配线连接
5、PLC程序
6、伺服控制器设置(位置模式)
1. 恢复出厂设置:P2-08 设置参数为10,P2-10 设置为101, p2-15 设置为0, p2-16 设置为0, p2-17 设置为0 ,重新上电。
(不按上述设置,只改p2-08, 会报错)
2. 位置模式选择:P1-01 设置参数为00,重新上电。
设置P1-00为2,脉冲+方向模式。
3. 设置DI1为Servo On:P2-10设置为101(默认初始值就是101)
4. 设置电子齿轮比:根据功能具体要求确定合适的电子齿轮比。
这里我们设置为160。
设置P1-44 和P1-45。
5. 设置增益:P2-00,P2-02。
电机抖动,这个参数设置的要小些。
6. P0-02 :设置为01 脉冲指令输入脉冲数(电子齿轮比之后)
7、相关照片
图 1 伺服接线
图 2 PLC接线
ε S。
DVP-0280130-01 20211108………………………………………………………………… ENGLISH …………………………………………………………………Thank you for choosing Delta’s DVP series PLC. DVP04AD-E2 analog input module receives external 4 points of analog input signals (voltage or current) and converts them into 16-bit digital signals. You can select voltage input or current input by the wiring. In addition, you can access the data in the module by applying FROM/TO instructions or read the average value of channels directly by using MOV instruction (Please refer to allocation of special registers D9900 ~ D9999).EN DVP04AD-E2 is an OPEN-TYPE device. It should be installed in a control cabinetfree of airborne dust, humidity, electric shock and vibration. To preventnon-maintenance staff from operating DVP04AD-E2, or to prevent an accident from damaging DVP04AD-E2, the control cabinet in which DVP04AD-E2 isinstalled should be equipped with a safeguard. For example, the control cabinet in which DVP04AD-E2 is installed can be unlocked with a special tool or key. EN DO NOT connect AC power to any of I/O terminals, otherwise serious damagemay occur. Please check all wiring again before DVP04AD-E2 is powered up. After DVP04AD-E2 is disconnected, Do NOT touch any terminals in a minute. Make sure that the ground terminal on DVP04AD-E2 is correctly grounded in order to prevent electromagnetic interference.FR DVP04AD-E2 est un module OUVERT. Il doit être installé que dans une enceinteprotectrice (boitier, armoire, etc.) saine, dépourvue de poussière, d’humidité, de vibrations et hors d’atteinte des chocs électriques. La protection doit éviter que les personnes non habilitées à la maintenance puissent accéder à l’appareil (par exemple, une clé ou un outil doivent être nécessaire pour ouvrir a protection). FR Ne pas appliquer la tension secteur sur les bornes d’entrées/Sorties, ou l’appareilDVP04AD-E2 pourra être endommagé. Merci de vérifier encore une fois lecâblage avant la mise sous tension du DVP04AD-E2. Lors de la déconnection de l’appareil, ne pas toucher les connecteurs dans la minute suivante. Vérifier que la terre est bien reliée au connecteur de terre afin d’éviter toute interférence électromagnétique.Product Profile & DimensionUnit:mmExternal WiringNote 1: When performing analog input, please isolate other power wirings.Note 2: When the A/D module is connected to current signals, make sure you short-circuit “V+” and “I+” terminals.Note 3: If the noise is too significant, please connect FE to the grounding terminal.Note 4: Please connect the terminal on both the power module and A/D module to the system earth point and ground the system contact or connect it to the cover of power distribution cabinet. Note 5: If the ripples at the loaded input terminal are too significant that causes noise interference on the wiring, connect the wiring to 0.1 ~ 0.47μF 25V capacitor.I/O Terminal LayoutElectrical SpecificationsAnalog / Digital module (04A/D)Power supply voltage 24VDC (20.4VDC ~ 28.8VDC) (-15% ~ +20%)Analog / Digital module (04A/D)Max. rated powerconsumption1W, supplied by external power sourceConnector European standard removable terminal block (Pin pitch: 5mm)Operation/storage temperature Operation: 0°C~55°C (temp.), 5~95% (humidity), Pollution degree2 Storage: -25°C~70°C (temp.), 5~95% (humidity)Vibration/shock immunity International standards: IEC61131-2, IEC 68-2-6 (TEST Fc)/ IEC61131-2 & IEC 68-2-27 (TEST Ea)Series connection to DVP-PLC MPU The modules are numbered from 0 to 7 automatically by their distance from MPU. Max. 8 modules are allowed to connect to MPU and will not occupy any digital I/O points.Functions SpecificationsAnalog / Digital module Voltage input Current inputAnalog input channel 4 channels / each moduleRange of analog input ±10V ±5V ±20mA 0 ~ 20mA 4 ~ 20mA Range of digitalconversion±32,000 ±32,000 ±32,000 0 ~ 32,000 0 ~ 32,000Max./Min. range of digital data ±32,384 ±32,384 ±32,384 -384~+32,384-384~+32,384Hardware Resolution 14 bits 14 bits 14 bits 13 bits 13 bits Input impedance ≧1MΩ250ΩRange of absolute input ±15V ±32mAOverall accuracy ±0.5% when in full scale (25°C, 77°F)±1% when in full scale within the range of 0 ~ 55°C (32 ~ 131°F)Response time 400μs / each channel Digital data format 2’s complement of 16 bitsAverage function Supported. Available for setting up sampling range in CR#8 ~ CR#11. Range: K1 ~ K100.Self-diagnosis Upper and lower bound detection in all channelsIsolation method Optical coupler isolation between digital circuits and analog circuits. No isolation among analog channels.500VDC between digital circuits and Ground500VDC between analog circuits and Ground500VDC between analog circuits and digital circuits500VDC between 24VDC and GroundControl RegisterCR# Attrib. Register name Explanation#0 O R Model name Set up by the system:DVP04AD-E2 model code = H’0080#1 O R Firmware version Display the current firmware version in hex.#2 O R/W CH1 input mode setting Input mode: Default = H’0000.Take CH1 for example:Mode 0 (H’0000): Voltage input (±10V) Mode 1 (H’0001): Voltage input (±5V)Mode 2 (H’0002): Voltage input (0 ~ +10V) Mode 3 (H’0003): Voltage input (0 ~ +5V) Mode 4 (H’0004): Current input (±20mA) Mode 5 (H’0005): Current input (0 ~ +20mA) Mode 6 (H’0006): Current input (+4~ +20mA) Mode -1 (H’FFFF): Channel 1 unavailable#3 O R/W CH2 input mode setting #4 O R/W CH3 input mode setting #5 O R/W CH4 input mode setting#8 O R/W CH1 sampling range Set sampling range in CH1 ~ CH4: Range = K1 ~ K100 Default = K10#9 O R/W CH2 sampling range #10 O R/W CH3 sampling range #11 O R/W CH4 sampling range #12 X R CH1 average input value Average value of input signals at CH1 ~ CH4#13 X R CH2 average input value #14 X R CH3 average input value #15 X R CH4 average input value #20 X R CH1 present input value Present value of input signals at CH1 ~ CH4#21 X R CH2 present input value #22 X R CH3 present input value #23 X RCH4 present input value#28 O R/W Adjusted Offset value of CH1 Set the adjusted Offset value of CH1 ~ CH4. Default = K0Definition of Offset in DVP04AD-E2:The corresponding voltage (current) input value when the digital output value = 0. #29 O R/W Adjusted Offset value of CH2 #30 O R/W Adjusted Offset value of CH3 #31 O R/W Adjusted Offset value of CH4 #34 O R/W Adjusted Gain value of CH1 Set the adjusted Gain value in CH1 ~ CH4. Default = K16,000Definition of Gain in DVP04AD-E2:The corresponding voltage (current) input value when the digital output value = 16,000.#35 O R/W Adjusted Gain value of CH2 #36 O R/W Adjusted Gain value of CH3 #37 O R/W Adjusted Gain value of CH4Adjusted Offset Value, Adjusted Gain Value:Note1: When using Mode 6 for input, the channel do NOT provide setups for adjusted Offset or Gainvalue. Note2: When input mode changes, the adjusted Offset or Gain value automatically returns to defaults.#40 O R/WFunction: Set value changingprohibited Prohibit set value changing in CH1 ~ CH4.Default= H’0000.#41 X R/WFunction: Save all the setvalues Save all the set values, Default =H’0000 #43 X R Error statusRegister for storing all error status. Refer to table of error status for more information.#100 O R/WFunction: Enable/Disable limitdetectionUpper and lower bound detection, b0~b3corresponds to Ch1~Ch4 (0: Enable/1:Disable). Default= H’0000.#101 X R/W Upper and lower bound statusDisplay the upper and lower bound status (0: Not exceed /1: Exceeds upper or lower bound value), b0~b3 corresponds toCh1~Ch4 for lower bound detection result; b8~b11 corresponds to CH1~CH4 for upper bound detection result. #102 O R/W Set value of CH1 upper boundSet value of CH1~CH4 upper bound. Default = K32000. #103 O R/W Set value of CH2 upper bound #104 O R/W Set value of CH3 upper bound #105 O R/W Set value of CH4 upper bound #108 O R/W Set value of CH1 lower bound Set value of CH1~CH4 lower bound. Default = K-32000.#109 O R/W Set value of CH2 lower bound #110 O R/W Set value of CH3 lower bound#111 O R/W Set value of CH4 lower boundSymbols:O: When CR#41 is set to H’5678, the set value of CR will be saved. X: set value will not be saved.R: able to read data by using FROM instruction. W: able to write data by using TO instruction. ※ CR#43: Error status value. See the table below:Descriptionbit0 K1 (H’1) Power supply error bit6K64 (H’40)CH4 Conversion error bit1 K2 (H’2) Reservedbit9 K512(H’0200)Mode setting errorbit2 K4 (H’4) Upper/lower bound error bit10 K1024(H’0400) Sampling range error bit3 K8 (H’8)CH1 Conversion errorbit11 K2048(H’0800) Upper / lower bound setting error bit4K16 (H’10) CH2 Conversion errorbit12 K4096(H’1000)Set value changing prohibitedbit5 K32 (H’20) CH3 Conversion errorbit13 K8192(H’2000) Communicationbreakdown on nextmoduleNote: Each error status is determined by the corresponding bit (b0 ~ b13) and there may be morethan 2 errors occurring at the same time. 0 = normal; 1 = error※ Module Reset (Available for firmware v1.10 or above): When modules need reset, write H’4352 inCR#0 then disconnect and turn on the power again. The resetting initializes parameter setups to provide normal functions for other modules. Connect to only one module during reset, wait 1 second before disconnecting the power.Explanation on Special Registers D9900~D9999When DVP-ES2 MPU is connected with modules, registers D9900~D9999 will be reserved for storing values from modules. You can apply MOV instruction to operate values in D9900~D9999.When DVP-ES2 MPU is connected with DVP04AD-E2, the configuration of special registers is as below:Module #0Module #1 Module #2 Module #3 Module #4 Module #5 Module #6 Module #7DescriptionD1320 D1321 D1322 D1323 D1324 D1325 D1326 D1327 Model Code D9900 D9910 D9920 D9930 D9940 D9950 D9960 D9970CH1 averageinput value D9901 D9911 D9921 D9931 D9941 D9951 D9961 D9971CH2 averageinput value D9902 D9912 D9922 D9932 D9942 D9952 D9962 D9972CH3 averageinput value D9903 D9913 D9923 D9933 D9943 D9953 D9963 D9973CH4 averageinput value Note 1: D9900 ~ D9999 are average input values of CH1 ~ CH4 and the sampling range is K1 ~ K100.When the sampling range is set to K1, the values displayed in D9900~D9999 are current values. You can use: 1. ES_AIO Configuration Function of WPLSoft or 2. FROM/TO instructions (CR#8 ~ CR#11) to set the sampling range as K1.Adjust A/D Conversion CurveUsers can adjust the conversion curves according to the actual needs by changing the Offset value (CR#28 ~ CR#31) and Gain value (CR#34 ~ CR#37).Gain: The corresponding voltage/current input value when the digital output value = 16,000.Offset: The corresponding voltage/current input value when the digital output value = 0.Equation for voltage input Mode0 / Mode2: 0.3125mV = 20V/64,000 = 10V/32,000()Offset Gain Offset V V X Y -⎪⎪⎭⎫⎝⎛-⨯⨯=320001016000)()(Y=Digital output, X=Voltage input Equation for voltage input Mode1 / Mode3: 0.15625mV = 10V/64,000 = 5V/32,000()Offset Gain Offset V V X Y -⎪⎪⎭⎫ ⎝⎛-⨯⨯=32000516000)()(Y=Digital output, X=Voltage input Equation for current input Mode4 / Mode5: 0.625μA = 40mA/64,000 = 20mA/32,000 ()Offset Gain Offset mA mA X Y -⎪⎪⎭⎫⎝⎛-⨯⨯=320002016000)()(Y=Digital output, X=Current input Equation for current input Mode6: 0.5μA = 16mA/32,000Adopt the Equation of current input Mode4/Mode5, substitute Gain for 19200(12mA) and Offset for 6400 (4mA)()6400192006400320002016000-⎪⎪⎭⎫⎝⎛-⨯⨯=)()(mA mA X YY=Digital output, X=Current inputMode 0:Mode 1:Mode 0 of CR#2 ~ CR#5 -10V ~ +10V ,Gain = 5V (16,000),Offset = 0V (0) Mode 1 of CR#2 ~ CR#5 -5V ~ +5V ,Gain = 2.5V (16,000), Offset = 0V (0) Range of digital conversion -32,000 ~ +32,000 Max./Min. range of digital conversion-32,384 ~ +32,384Mode 2:Mode 3:Mode 4:Mode 4 of CR#2 ~ CR#5-20mA ~ +20mA, Gain = 10mA (16,000), Offset = 0mA (0) Range of digital conversion -32,000 ~ +32,000 Max./Min. range of digital conversion-32,384 ~ +32,384Mode 5:Mode 6:Mode 5 of CR#2 ~ CR#5 0mA ~ +20mA, Gain = 10mA (16,000), Offset = 0mA (0) Mode 6 of CR#2 ~ CR#5 +4mA ~ +20mA, Gain = 12mA (19,200), Offset = 4mA (6,400) Range of digital conversion 0 ~ +32,000 Max./Min. range of digital conversion-384 ~ +32,384……………………………………………………………… 繁體中文 …………………………………………………………………………感謝您採用台達DVP 系列產品。
电位计读取模拟量连接plc程序电位计是一种常用的传感器,用于测量某个物理量,并将其转换为模拟电压信号。
在连接电位计到PLC程序之前,我们需要了解电位计的工作原理和PLC的输入模块。
**1. 电位计的工作原理**电位计是通过测量一个可变电阻器的阻值来实现对某个物理量的测量。
它通常由一个固定的外壳和一个旋转的轴组成。
当旋转轴被转动时,内部滑动触点与外部固定触点之间的距离会改变,从而改变了整个电路中的总阻值。
**2. 连接电位计到PLC程序**要连接电位计到PLC程序,我们需要使用PLC输入模块来读取模拟信号。
通常情况下,PLC输入模块具有多个模拟输入通道,每个通道可以读取一个模拟信号。
以下是连接电位计到PLC程序的步骤:**步骤1:确定电位计输出范围**我们需要确定电位计输出信号的范围。
这可以通过查看电位计规格表或使用万用表进行测量来完成。
假设我们得出结论:0V对应于0度角度位置,5V对应于180度角度位置。
**步骤2:选择合适的PLC输入模块**根据电位计输出范围和系统要求,选择一个合适的PLC输入模块。
确保该模块具有足够的模拟输入通道,并且能够接受电位计输出信号的范围。
**步骤3:连接电位计到PLC输入模块**使用导线将电位计的输出端连接到PLC输入模块的相应模拟输入通道。
确保连接正确,避免接错引脚或短路。
**步骤4:配置PLC程序**在PLC编程软件中,配置相应的输入通道为模拟输入,并设置合适的量程和标定参数。
这些参数将用于将电位计输出信号转换为实际物理量值。
**步骤5:读取电位计信号并处理**在PLC程序中,使用合适的指令来读取电位计信号。
这可以是类似于“ANALOG INPUT”或“AI”的指令,具体取决于所使用的PLC品牌和型号。
一旦读取了电位计信号,我们可以根据需要进行进一步处理。
可以将读取到的模拟值与预设阈值进行比较,并采取相应的控制措施。
**注意事项:**- 在连接电位计到PLC程序时,确保使用合适的导线和连接器,并正确连接引脚。
***编程可参考<DVP-PLC应用技术手册_特殊模块篇.PDF>
1、DVP04AD-SL为左侧模块,所设置的编号从100开始,左侧第二个模块为101;
2、对于右侧模块,编号从0开始,第二个为1;
3、可用电位器模拟模拟量输入;
4、DVP04AD-SL可耐24V直流电压;
5、D0的精度需要调试;
接线不在赘述,具体程序如文件夹中的PDF文档。
6、PLC接线,1),UP0接24V,ZP0接0V,Y0-Y7输出24V;
2),PNP接法:S/S接0V,X0-X7接24V;
NPN接法:S/S接24V,X0-X7接0V;
7、编程时,需要先点击”扩充模块图标”
8、进入编程界面
9、控制器CR的地址需要对照使用说明书,其中CH1输入模式设定应为m2=#2,即梯形图
为
10、CH1平均次数设定梯形图为
11、CH1输入信号平均值为
12、CH1输入信号现在值为:
13、DVP04AD-SL接线方式为:相当于电压表,V1+接正极,V1-接负极,FG接屏蔽线;
若为电流输入,V1+与I1+短接,再接入,相当于电流表
1)V1+接电位器+极,V1-接电位器负极,并联在两端,相当于电压表测电压。
14、整个电路图如下图所示
15、
16、。
PLC模拟量输入输出方法模拟量的输入方法有两种。
1.用模拟量输入模块输入模拟量把模拟量输入给plc最简单的方法是,用模拟量输入模块(单元),简称AD单元。
模拟量输入模块的功能是将模拟过程信号转换为数字格式。
模拟量输入流程是通过传感器把物理量转变为电信号,这个电信号可能是离散性的电信号,需要通过变送器转换为标准的模拟量电压或电流信号,模拟量模块接收到标准的电信号后通过A/D转换,转变为与模拟量成比例的数字量信号,并存放在缓冲器里,待CPU读取模拟量模块缓冲器的内容,并传送到指定的存储区中待处理。
使用模拟量输入模块时,要了解其性能,主要的性能如下。
·模拟量规格:指可承受或可输出的标准电流或标准电压的规格,一般多些好,便于选用。
·数字量位数:指转换后的数字量,用多少位二进制数表达。
位越多,精度越高。
·转换路数:只可实现多少路的模拟量的转换,路越多越好,可处理多路信号。
·转换时间:只实现一次模拟量转换的时间,越短越好。
·功能:指除了实现数模转换时的一些附加功能,有的还有标定、平均峰值及开方功能。
2.用采集脉冲输入模拟量PLC可采集脉冲信号,可用于高速计数单元或特定输入点采集。
也可用输入中断的方法采集。
而把物理量转换为电脉冲信号也比较方便。
模拟量输出方法有三种。
1.用模拟量输出模块(单元)控制输出为使控制的模拟量能连续、无波动地变化,最好的方法是用模拟量输出模块。
模拟量输出模块的功能是将数字输出值转换为模拟信号,简称DA单元。
模拟量输出模块的参数有诊断中断、组诊断、输出类型选择(电压、电流或禁用)、输出范围选择及对CPU STOP模式的响应。
模拟量输出流程是:CPU把指定的数字量信号传送到模拟量模块的缓冲器中,模拟量模块通过D/A转换器,把缓冲器的内容转变为成比例的标准电压或电流信号,标准电压或电流驱动相应的执行器动作,完成模拟量控制。
使用模拟量输出模块时应按以下步骤开展:[1]选用。
***编程可参考<DVP-PLC应用技术手册_特殊模块篇.PDF>
1、DVP04AD-SL为左侧模块,所设置的编号从100开始,左侧第二个模块为101;
2、对于右侧模块,编号从0开始,第二个为1;
3、可用电位器模拟模拟量输入;
4、DVP04AD-SL可耐24V直流电压;
5、D0的精度需要调试;
接线不在赘述,具体程序如文件夹中的PDF文档。
6、PLC接线,1),UP0接24V,ZP0接0V,Y0-Y7输出24V;
2),PNP接法:S/S接0V,X0-X7接24V;
NPN接法:S/S接24V,X0-X7接0V;
7、编程时,需要先点击”扩充模块图标”
8、进入编程界面
9、控制器CR的地址需要对照使用说明书,其中CH1输入模式设定应为m2=#2,即梯形图
为
10、CH1平均次数设定梯形图为
11、CH1输入信号平均值为
12、CH1输入信号现在值为:
13、DVP04AD-SL接线方式为:相当于电压表,V1+接正极,V1-接负极,FG接屏蔽线;
若为电流输入,V1+与I1+短接,再接入,相当于电流表
1)V1+接电位器+极,V1-接电位器负极,并联在两端,相当于电压表测电压。
14、整个电路图如下图所示
15、
16、。