台达DVPPLC用电位器的电压模拟传感器DVPADSL模拟量输入成功程序
- 格式: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通过计算转换,将这些模拟量信号转换为内部的数值信号。
从而实现系统的监控及控制。
从现场的物理信号到PLC内部处理的数值信号,有以下几个步骤:从以上PLC模拟量的信号输入流程可以看到,在自动化过程控制系统中,模拟量信号的输入是非常复杂的。
但是,在现目前的工业现场,对模拟量信号的处理已基本都采用电流信号方式进行传输,相比于电压信号方式,电流信号抗干扰能力更强,传输距离更远,信号稳定。
这里就PLC对模拟量信号的转换过程进行一个简单的分解介绍。
PLC对模拟量信号的转换西门子S7-200SMART PLC模拟量模块对模拟量信号的转换范围台达DVP系列模拟量模块对模拟量信号的转换范围从以上可以看到:1、模拟量信号接入PLC后,PLC将模拟量信号转换为了整型数据,不是浮点数(如西门子-27,648 到 27,648);2、不同品牌的PLC对模拟量转换范围是有差异的(如西门子-27,648 到 27,648;台达-32,384 到 32,384);3、PLC同一个模块对不同类型的模拟量信号的转换范围是一致的(如西门子对±10 V、±5 V、±2.5 V 或 0 到 20mA的模拟量信号的转换范围均为-27,648 到 27,648);故从以上几点我们可以知道,接入PLC的模拟量信号还需要进行再转换处理,才可以得到与实际物理量相匹配的数据;在进行数据转换处理的时候,还应该与使用的PLC模块的处理数据范围相对应。
PLC数据转换处理过程1、模拟量信号与PLC转换数据之间的转换从以上内容知道,从PLC直接读取到的模拟量信号为整型数据,整型数据无法直观的反馈出实际的物理量大小,故为了能够直观的反馈出现场的过程信号情况,还应该将这些整型数据转换为反馈直观真实的浮点数信号。
………………………………………………………………… ENGLISH …………………………………………………………………Thank you for choosing the Delta DVP series PLC. Four channels on DVP04DA-H3 are able to receive four pieces of 16-bit digital data from a CPU module, and convert them into analog signals (voltages or currents). Users can read data from the module or write data into the module by means of the instruction FROM/TO in a DVP-EH2 series PLC. There are 49 control registers in the module, and they are 16-bit registers. Whether the output signals are voltage outputs or current outputs depends on the wiring. The voltage output range is ±10VDC. (The resolution is 312.5μV.) The current output range is 0~20 mA. (The resolution is 0.625μA).a Please read this instruction sheet carefully before using the product.a Switch off the power supply before wiring. Please do not touch the internal circuit untilthe power supply has been switched off for one minute.a DVP04DA-H3 is an OPEN-TYPE device. It should be installed in a control cabinetfree of airborne dust, humidity, electric shock and vibration. To prevent thenon-maintenance staff from operating the product, or to prevent an accident from damaging the product, the control cabinet should be equipped with a safeguard. For example, the control cabinet is unlocked with a special tool or key.a DO NOT connect the input AC power supply to any of I/O terminals; otherwiseserious damage may occur. Check all the wiring again before switching on the power supply. Do NOT touch any terminals when the power supply is switched on.a Make sure that the ground terminal is correctly grounded in order to preventelectromagnetic interference.Product Profile & DimensionsUnit: mm1. Groove (35 mm) 6.Terminals2. Connector 7.Mounting hole3. Model name 8.Arrangement of I/O terminals4. POWER, ERROR, and D/A LED indicators9.Connector5. Mounting holeI/O Terminal LayoutExternal Wiringa reIt is*1. Please isolate the analog output from other power cables.*2. If the ripple is large for the input terminal of the load and results in the noise interference with the wiring, please connect the module to the capacitor having a capacitance within the range between 0.1μF and 0.47μF with a working voltage of 25V.*3. Please connect the terminal on a CPU module and the terminal on DVP04DA-H3 toa system ground, and then ground the system ground, or connect it to a distribution box.SpecificationsDigital-to-analog module Voltage output Current outputSupply voltage 24VDC (20.4VDC~28.8VDC) (-15%~+20%)Number of channels 4 channelsAnalog output range -10V~+10V 0~20mA Digital data range -32,000~+32,000 0~32,000 Resolution 16 bits (312.5μV) 15 bits (0.625μA)Input impedance 0.5 Ω or belowOverall accuracy 25°C/77°F: ±0.5% of the input within the range0~55°C/32~131°F: ±1% of the input within the rangeResponse time 1msMaximum outputcurrent10mA -Permissible loadimpedance-0~500ΩData format Two’s complement (16-bit data)Isolation The internal circuit is isolated from the analog outputs by an optocoupler, and the analog channels are not isolated from one another.Protection The voltage output is equipped with the short circuit protection. However, users must notice that a long-term short circuit will damage the internal circuit. The current output can be an open circuit.Digital-to-analog module Voltage output Current outputCommunication mode (RS-485) ASCII/RTU modeCommunication speed: 4,800/9,600/19,200/38,400/57,600/115,200 bpsASCII data: 7-bit, even bit, 1 stop bit (7, E, 1)RTU data: 8-bit, even bit, 1 stop bit (8, E, 1)When DVP04DA-H3 is connected to a CPU module, the RS-485 communication can not be used.Connection with a DVP-PLC CPU The modules are numbered according to their distances from the CPU module. The numbers start from 0 to 7. Eight modules at most can be connected, and they do not occupy digital inputs/outputs.Other SpecificationsPower specificationsRated maximum power consumption 24VDC (20.4VDC~28.8VDC) (-15% ~ +20%); 4.5W An external power supply supplies the DC voltage.Environment specificationsOperation/Storage Operation: 0°C~55°C (temperature); 50~95% (humidity); pollution degree 2Storage: -25°C~ 70°C (temperature), 5~95% (humidity)Vibration/Shock resistance International standards IEC 61131-2, IEC 68-2-6 (TEST Fc)/IEC 61131-2 & IEC 68-2-27 (TEST Ea)Control RegisterCR# ParameteraddressAttribute Register name Description#0 H’5032 O R Model The model is defined by the system. The modelof DVP04DA-H3 is H’6408.Users can read the model from the register by means of the program.b15 ~ b12b11 ~ b8B7 ~ b4 b3 ~ b0 CH4 CH3 CH2 CH1#1 H’5033 O R/W Output modes Mode 0000: Voltage output (-10 V~+10V) Mode 0001: Voltage output (-5 V~+5 V) Mode 0010: Voltage output (1 V~+5 V) Mode 0011: Current output (4 mA~+20 mA) Mode 0100: Current output (0 mA~+20 mA) Mode 1111: The channel is disabled.CR#1: The value in the register represents the working modes of the four channels. If CH1 is in mode 0 (b3~b0=0000), CH2 is in mode 1 (b7~b4=0001), CH3 is in mode 2 (b11~b8=0010), and CH4 is in mode 3 (b15~b12=0011), the value in CR#1 is H’3210. The default value in the register is H’0000.#2 H’5038 X R/W Value sent by CH1#3 H’5039 X R/W Value sent by CH2#4 H’503A X R/W Value sent by CH3#5 H’503B X R/W Value sent byCH4Values sent by CH1~CH4 are stored in theseregisters.Range: K-32000~K32000Default: K0Unit: LSB#6 H’5044 O R/W Offset used for calibrating the signal sent by CH1#7 H’5045 O R/W Offset used for calibrating the signal sent by CH2#8 H’5046 O R/W Offset used for calibrating the signal sent by CH3#9 H’5047 O R/W Offset used forcalibrating thesignal sent byCH4Users can store the offsets in these registers.Default: K0Unit: LSB#12 H’504A O R/W Gain used for calibrating the signal sent by CH1#13 H’504B O R/W Gain used for calibrating the signal sent by CH2#14 H’504C O R/W Gain used for calibrating the signal sent by CH3#15 H’504D O R/W Gain used forcalibrating thesignal sent byCH4Users can store the gains in these registers.Default: K16,000Unit: LSB#30 H’5050 X R Errorstate The error state is stored in this register. Please refer to error message table below.#31 H’5051 O R/W CommunicationaddressThe RS-485 communication address is stored inthis register. The setting range is 01 ~ 254. Thedefault value is K1.#32 H’5052 O R/W CommunicationspeedCommunication speed:4,800/9,600/19,200/38,400/57,600/115,200 bpsASCII data: 7-bit, even bit, 1 stop bit (7, E, 1)RTU data: 8-bit, even bit, 1 stop bit (8, E, 1)Default: H’0002b0: 4,800 bps; b1: 9,600 bps (default)b2: 19,200 bps; b3: 38,400 bpsb4: 57,600 bps; b5: 115,200 bps (bits/second)b6~b13: Reservedb14: The high byte of the CRC checksum isinterchanged with the low byte of the CRCchecksum. (Only the RTU mode supportsthe interchange.)b15: Switch between the ASCII mode and theRTU mode (0: ASCII mode (default))b15 ~ b12b11~b9b8~b6 b5~b3 b2~b0Reserved CH4 CH3 CH2 CH1#33 H’5053 O R/W Restoring allthe settingvalues to thefactory settingThe default value is H’0000. Take CH1 forexample. If the value of b2 is 1, all the settingvalues are restored to the factory setting.#34 H’5054 O R FirmwareversionThe current version of the firmware isrepresented by a hexadecimal number. Forexample, if the current version of the firmware is1.0A, it is represented by H’010A.#35 ~ #48 For system use onlyThe definitions of the symbols:O indicates that the register is a latched register. (Data needs to be written into the register through the RS-485 communication.) X indicates that the register is a non-latched register. R indicates that the data can be read from the register by means of the instruction FROM or through the RS-485 communication.W indicates that the data can be written into the register by means of the instruction TO or through the RS-485 communication.Least significant bit (LSB): 1. Voltage output: 1LSB=10 V/32,000=0.3125 mV2. Current output: 1 LSB=20 mA/32,000=0.625 μA※ Error state tableError state Value b15 ~ b8 b7b6b5b4 b3 b2 b1 b0The power supply is abnormal. K1(H’1) 0000 0 0 0 1Hardware failure (GPIO) K2(H’2) 0000 0 0 1 0Offset/Gain error K8 (H’8) Reserved0000 1 0 0 0Note: Every error state depends on the value of a corresponding bit. There may more than two error states at the same time. If the value of a bit is 0, there is no error. If the value of a bit is 1, there is an error.CR#0~CR#34: Their corresponding parameter addresses are H’5032~H’5054. Users can read/write data through the RS-485 communication. When users use the RS-485 communication, they must separate the module from the CPU module.1. They support the communication speed 4,800/9,600/19,200/38,400/57,600/115,200bps.2. Users can use the Modbus ASCII/RTU mode.ASCII data: 7-bit, even bit, 1 stop bit (7, E, 1)RTU data: 8-bit, even bit, 1 stop bit (8, E, 1)3. Function code:H’03: Reading the data from the registerH’06: Writing the data into the registerH’10: Writing the data into several registers.4. If the register is a latched register, users need to write the data into the registerthrough the RS-485 communication. If users write the data into the latched register by means of the instruction TO/DTO, the data is not retained when there is power failure.Adjust Conversion CurveUsers can adjust the conversion curves according to the practical application by changing the offset values (stored in CR#6~CR#9) and the gain values (stored inCR#12~CR#15).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.y Equation for voltage output Mode0: 0.3125mV = 20V/64,000()()⎟⎠⎞⎜⎝⎛×⎥⎦⎤⎢⎣⎡+−×=32000)(1016000V Offset Offset Gain X V YY=Voltage output, X=Digital inputy Equation for current output Mode1: 0.625μA = 20mA/32,000()()⎟⎠⎞⎜⎝⎛×⎥⎦⎤⎢⎣⎡+−×=32000)(2016000mA Offset Offset Gain X mA YY=Current output, X=Digital inputy Equation for current output Mode2: 0.5μA = 16mA/32,000Adopt the equation of current output mode 1, substitute Gain for 19,200(12mA) andOffset for 6,400(4mA)()()⎟⎠⎞⎜⎝⎛×⎥⎦⎤⎢⎣⎡+−×=32000)(20640016000640019200mA X mA YY=Current output, X=Digital inputy Mode 0:y Mode 1:Mode 0 (CR#1) -10V~+10V; Gain=5V (16,000),Offset = 0V (0) Mode 1 (CR#1) -5V~+5V; Gain=2.5V (16,000),Offset = 0V (0) Range of digital values-32,000~+32,000y Mode 2:y Mode 3:Volt ag e ou tp utC urren t ou tp uty Mode 4:Mode 2 (CR#1) 1V~+5V; Gain=3V; Offset=1VMode 3 (CR#1) +4mA~+20mA; Gain=12mA (19,200); Offset=4mA (6,400) Mode 4 (CR#1) 0mA~+20mA; Gain=10mA (16,000); Offset=0V (0) Range of digital values 0~+32,000……………………………………………………………… 繁體中文 …………………………………………………………………………感謝您採用台達DVP系列產品。
***编程可参考<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通讯调试方法。
台达PLC出厂通讯格式为,ASCII,9600,7,E,1,支持功能码03H,06H,10H,如用串口调试程序向PLC(站号为1)的D0写H1770,ASCII字符为: “: 010610001770620d0a”应在串口调试程序中写入的16进制代码为: 3A 30 31 30 36 31 30 30 30 31 37 37 30 36 32 0D 0A 注意阿ASCII模式下字符0对应16进制30H,1对应16进制31H ,依次类推......你的串口协议是对的,与PLC的默认协议完全相符,PLC不用再作协议设定。
你发送的数据中有几个错误:1、尾码不是0A0D,而应是0D0A。
2、16进制数据与ASCII码混在了一起,"010*********"是ASCII码,应全部转换为16进制。
正确的字符串数据是=":"+"010*******"+LRC码("EA")+CR(0D)+LF(0A)转换为16进制="3A3031303130343030313045410D0A",你把引号内的内容复制到你的串口调试软件中,按16进制发送试试。
我已经试过了,返回数据是=":01810777" (3A 30 31 38 31 30 37 37 37 0D 0A)我是一个PLC初学者,在Micro Programmable Logic Controller FC4A使用手册中,遇到一个问题:在17-2中电缆线连接器脚位表格下,有一个“注:准备连接埠1的电缆显示,请不要插入第6和7针。
如果第6和7针连接在一起,便无法使用使用者通讯。
”但是现在所配制的电缆就是第6和7针之间的电阻值接近于0。
在WindLDR中,简单输入输出和定时、计数器可以编程并下载到PLC中正常运行,在使用TXD和RXD指令时按照手册中所述进行梯形图编程时,无法运行,接收状态码显示15,无法进行串行通讯。
台达D V P28S V11P L C控制台
达B2伺服接线及程序说明
(总2页)
-CAL-FENGHAI.-(YICAI)-Company One1
-CAL-本页仅作为文档封面,使用请直接删除
伺服位置控制说明
1、目的:本技术文档旨在说明用台达PLC发出脉冲指令给伺服控制器,进而控制伺服电机按指定方向(正方向)旋转指定角度。
2、相关设备型号
3、台达PLC接线
4、伺服控制器接线
注:伺服电机与控制器采用专用配线连接
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接线
图3 整体接线。
PLC如何使⽤模拟量?接线加程序实例讲解⾸先我们了解⼀下什么是数字量和模拟量?为什么PLC需要使⽤模拟量?数字量数字量是物理量的⼀种。
它们的变化在时间上是不连续的,总是发⽣在⼀系列离散的瞬间。
这⼀类物理量叫做数字量。
也就是离散量,指得是分散开来的、不存在中间值的量。
模拟量模拟量是指变量在⼀定范围连续变化的量;也就是在⼀定范围(定义域)内可以取任意值(在值域内)。
数字量是分⽴量,⽽不是连续变化量,只能取⼏个分⽴值,如⼆进制数字变量只能取两个值。
那么对于实际的⼯业应⽤⽽⾔,数字量和模拟量都是必不可少的。
因为在⼯⼚的⾃动化控制中,我们需要对温度,压⼒,液位,深度等等数据进⾏监控并控制。
⽐如说⼀个锅炉的控制,我们需要⽔烧到⼀定温度,⼀般来说该温度是可调的,⽐如说50摄⽒度,或者70摄⽒度,⽽数字量则不能满⾜这些条件。
再举个例⼦,⼀些化⼯企业需要测量液体的酸碱度,那么酸碱度不可以⽤数字量的0或者1表⽰,只能使⽤模拟量,PH6.5,PH7.0等等才可以清晰的描绘出实际的数据。
那么学习模拟量其实应该学习两部分内容;⼀硬件;硬件包括选型和接线,选型就是针对不同的⼯况选择不同的模拟量以及PLC,⽐如说模拟量使⽤0-10V,4-20ma还是0-20ma还是特殊的热电偶信号等等。
其次就是接线,⼤家不要⼩瞧了接线,针对不同的PLC有不同的接线⽅法。
对于西门⼦S7-300系列来说,我们需要使⽤拓展模块,打开西门⼦STEP7,徐楠则合适的PLC和模拟量模块,并将模块添加进去。
对于PLC⽽⾔,每⼀个模拟量都有⼀个固定的地址,这个地址是可以在程序中进⾏识别并计算的,续智能则合适的地址并添加进去。
根据现场设备,选择合适的量程,如果是测量温度的话需要使⽤特定的温度模块,并选择合适的温度信号。
对于温度的控制,我们以前⽂章有介绍过,需要的朋友可以去寻找。
对于电压信号,有多种可选类型,可根据实际设备的信号类型进⾏选择。
⽐如说-10V—10V,-5V—5V,-1V—1V,1-5V。
PLC模拟量输入输出方法模拟量的输入方法有两种。
1.用模拟量输入模块输入模拟量把模拟量输入给plc最简单的方法是,用模拟量输入模块(单元),简称AD单元。
模拟量输入模块的功能是将模拟过程信号转换为数字格式。
模拟量输入流程是通过传感器把物理量转变为电信号,这个电信号可能是离散性的电信号,需要通过变送器转换为标准的模拟量电压或电流信号,模拟量模块接收到标准的电信号后通过A/D转换,转变为与模拟量成比例的数字量信号,并存放在缓冲器里,待CPU读取模拟量模块缓冲器的内容,并传送到指定的存储区中待处理。
使用模拟量输入模块时,要了解其性能,主要的性能如下。
·模拟量规格:指可承受或可输出的标准电流或标准电压的规格,一般多些好,便于选用。
·数字量位数:指转换后的数字量,用多少位二进制数表达。
位越多,精度越高。
·转换路数:只可实现多少路的模拟量的转换,路越多越好,可处理多路信号。
·转换时间:只实现一次模拟量转换的时间,越短越好。
·功能:指除了实现数模转换时的一些附加功能,有的还有标定、平均峰值及开方功能。
2.用采集脉冲输入模拟量PLC可采集脉冲信号,可用于高速计数单元或特定输入点采集。
也可用输入中断的方法采集。
而把物理量转换为电脉冲信号也比较方便。
模拟量输出方法有三种。
1.用模拟量输出模块(单元)控制输出为使控制的模拟量能连续、无波动地变化,最好的方法是用模拟量输出模块。
模拟量输出模块的功能是将数字输出值转换为模拟信号,简称DA单元。
模拟量输出模块的参数有诊断中断、组诊断、输出类型选择(电压、电流或禁用)、输出范围选择及对CPU STOP模式的响应。
模拟量输出流程是:CPU把指定的数字量信号传送到模拟量模块的缓冲器中,模拟量模块通过D/A转换器,把缓冲器的内容转变为成比例的标准电压或电流信号,标准电压或电流驱动相应的执行器动作,完成模拟量控制。
使用模拟量输出模块时应按以下步骤开展:[1]选用。
DVP-PLC特殊模块怎么使用DVP-PLC特殊模块怎么使用?成都永浩机电工程技术有限公司做了以下总结供大家参考:一、模拟输入模块DVP04AD/DVP06AD在自动化的领域中,有许多的测量单元,是以模拟信号的模式进行传送的动作,且以电压-10~10V 与电流-20~20mA 范围最为常见。
若要将模拟信号作为PLC 控制演算的参数,则需转换为数字量。
例如:电压-10~10V。
经由AD 模块的转换成为-8,000~+8,000 的数值范围后,PLC 再以FROM/TO 指令对AD 模块的CR 寄存器进行读写的动作,所传回至PLC 的信号为K-8,000~ K8,000 的数字量,即可提供PLC 进行运算处理。
DVP04AD (DVP06AD)模拟信号输入模块可接受外部4 (6)点模拟信号输入(电压或电流皆可),并将其转换成14 位的数字信号。
通过主机以指令FROM/TO 来读写模块内的数据,摸块内具有49 个CR (Control Register)寄存器,每个寄存器为16bits。
可经由配线选择电压输入或电流输入。
电压输入范围±10V (±8,000,分辨率为。
电流输入范围±20mA (±4,000,分辨率为5μA)。
二、模拟输出模块DVP02DA/DVP04DA在应用的领域中,有许多的控制信号,是以模拟信号的模式进行控制,且以0~10V 与0~20mA范围为最常见的信号范围。
因此需将PLC 数值数据转换为模拟信号来控制周边装置。
例如:PLC 数值数据0~4,000 的范围。
经由DA 模块的转换成为0~10V 的电压值,所输出的电压即可提供周边模拟装置进行控制。
DVP02DA (DVP04DA) 模拟信号输出模块,可通过DVP-PLC 主机程序以指令FROM/TO 来读写DVP02DA (DVP04DA) 模拟信号输出模块的数据。
模块内具有49 个CR (Control Register) 寄存器,每个寄存器有16bits。
***编程可参考<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、。