8
资料版本 V1.0 归档时间 2016-03-01 {PAGE } EC20-4DA 模拟量输出模块用户手册 感谢您购买迈特控制技术有限公司开发生产的可编程控制器(PLC),在使用 我公司 EC20 系列 PLC 产品前,敬请您仔细阅读本手册,以便更清楚地掌握产 品的特性,正确地进行安装使用。更安全地应用,充分利用本产品丰富的功能。 注意: 在开始使用之前,请仔细阅读操作指示、注意事项,以减少意外的发生。负责 产品安装、操作的人员必须经严格培训,遵守相关行业的安全规范,严格遵守 本手册提供的相关设备注意事项和特殊安全指示,按正确的操作方法进行设备 的各项操作。 1 接口描述 1.1 接口说明 EC20-4DA 的扩展电缆接口和用户端子均有盖板,外观如图 1-1 所示。打开各 盖板后,便可露出扩展电缆接口和用户端子,如图 1-2 所示。 EC20-4DA POWER RUN 24V 扩展电缆 扩展电缆接口盖板 用户端子盖板 25 POWER RUN 24V V2+ 24V- V1+ I1+ VI1- EC20-4DA 24V+ VI2- I2+ V4+ V3+ I3+ VI3- VI4- I4+ 扩展电缆接口 用户端子 扩展电缆 1-1 模块接口外观图 1-2 模块接口端子图 EC20-4DA 通过扩展电缆接入系统,扩展电缆接口用于系统其他扩展模块的连 接,具体方法参见{ REF _Ref124325896 \h \* MERGEFORMAT }EC20-4DA 用户端子的定义见表 1-11-1 EC20-4DA 用户端子定义表 序号 标注 说明 1 24V+ 模拟电源 24V 正极 2 24V– 模拟电源 24V 负极 4 { EMBED Visio.Drawing.11 } 接地端 591317 V1+V2+V3+V4+ 1234 通道电压信号输出端 7111519 I1+I2+I3+I4+ 1234 通道电流信号输出端 8121620 VI1–VI2-,VI3–VI41234 通道公共地端 36101418 · 空脚 1.2 接入系统 EC20-4DA 应用于 EC20 系列可编程控制器系统,通过扩展电缆可将其接入系 统,接入方法见图 1-3,将其扩展电缆插入主模块或系统中任意扩展模块的扩 展电缆接口中,即可将 EC20-4DA 接入系统。 EC20-4DA 接入系统后,其扩展电缆接口也可用于连接 EC20 系列的其他扩展 模块,如 IO 扩展模块、 EC20-4ADEC20-4TC 等,当然也可以连接 EC20-4DAEC20 系列可编程控制器主模块,可以扩展多个 IO 扩展模块及特殊功能模块, 连接扩展模块的数量,取决于模块能提供电源的功率大小,具体内容请参见 EC20 系列可编程控制器用户手册》中 4.7 电源规格1-3 EC20-4DA 模拟量输出模块与主模块的连接示意图 1.3 布线说明 用户端子布线要求,请参见图 1-4。布线时,请您注意以下 7 方面: 1.模拟输出建议使用双绞屏蔽电缆,电缆应远离电源线或其他可能产生电气干 扰的电线。 2.在输出电缆的负载端使用单点接地。 3.如果输出存在电气噪声或电压波动,可以接一个平滑电容器(0.1μF0.47 μF/25V)。 4.若将电压输出短路或将电流负载连接到电压输出端,可能会损坏 EC20-4DA5.将模块的接地端 PG 良好接地。 6.模拟供电电源可以使用主模块的辅助输出 24Vdc 电源,也可以使用其它满 足要求的电源。 7.不要使用用户端子上的空脚。 V4+ I4+ VI4- AGND V1+ I1+ VI1- AGND 24V+ PG 24V- AGND +15V -15V PGND EC20-4DA DC/DC 转换器 DC24V± 10% 200mA 电压负载 电流负载 CH4 CH1 1-4 EC20-4DA 用户端子布线示意图 2 使用说明 2.1 电源指标 2-1 电源指标 项目 说明 模拟电路 24Vdc (-15%20%),最大允许纹波电压 5%120mA(来自 主模块或外接电源) 数字电路 5Vdc 50mA(来自主模块) 2.2 性能指标 2-2 性能指标 项目 指标 占用 I/O 点数 转换速度 每通道 2.1ms(改变所用的通道数不会改变转换速度) 模拟 输出 电压输出 1010Vdc(外部负载阻抗不小于 2kΩ) 电流输出 020mA(外部负载阻抗为 500Ω或更小)

EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

  • Upload
    others

  • View
    11

  • Download
    0

Embed Size (px)

Citation preview

Page 1: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

资料版本 V1.0 归档时间 2016-03-01

{PAGE }

EC20-4DA模拟量输出模块用户手册

感谢您购买迈特控制技术有限公司开发生产的可编程控制器(PLC),在使用

我公司 EC20 系列 PLC 产品前,敬请您仔细阅读本手册,以便更清楚地掌握产

品的特性,正确地进行安装使用。更安全地应用,充分利用本产品丰富的功能。

注意:

在开始使用之前,请仔细阅读操作指示、注意事项,以减少意外的发生。负责

产品安装、操作的人员必须经严格培训,遵守相关行业的安全规范,严格遵守

本手册提供的相关设备注意事项和特殊安全指示,按正确的操作方法进行设备

的各项操作。

1 接口描述

1.1 接口说明

EC20-4DA 的扩展电缆接口和用户端子均有盖板,外观如图 1-1 所示。打开各

盖板后,便可露出扩展电缆接口和用户端子,如图 1-2 所示。

EC20-4DA

POWER

RUN

24V

扩展电缆

扩展电缆接口盖板

用户端子盖板

262

25POWER

RUN

24V

V 2 +

2 4 V -

V 1 + I 1 +

V I 1 -

EC20-4DA

2 4 V +

V I 2 -

I 2 + V 4 +V 3 + I 3 +

V I 3 - V I 4 -

I 4 +

扩展电缆接口用户端子

扩展电缆

图 1-1 模块接口外观图 图 1-2 模块接口端子图

EC20-4DA 通过扩展电缆接入系统,扩展电缆接口用于系统其他扩展模块的连

接,具体方法参见{ REF _Ref124325896 \h \* MERGEFORMAT }。EC20-4DA用户端子的定义见表 1-1。

表 1-1 EC20-4DA用户端子定义表

序号 标注 说明

1 24V+ 模拟电源 24V 正极

2 24V– 模拟电源 24V 负极

4{ EMBEDVisio.Drawing.11 }

接地端

5,9,13,17 V1+,V2+,V3+,V4+第 1,2,3,4 通道电压信号输出端

7,11,15,19I1+,I2+,I3+,I4+ 第 1,2,3,4 通道电流信号输出端

8,12,16,20VI1–,VI2-,VI3–,VI4-

第 1,2,3,4 通道公共地端

3,6,10,14,18

· 空脚

1.2 接入系统

EC20-4DA 应用于 EC20 系列可编程控制器系统,通过扩展电缆可将其接入系

统,接入方法见图 1-3,将其扩展电缆插入主模块或系统中任意扩展模块的扩

展电缆接口中,即可将 EC20-4DA 接入系统。

EC20-4DA 接入系统后,其扩展电缆接口也可用于连接 EC20 系列的其他扩展

模块,如 IO 扩展模块、EC20-4AD、EC20-4TC 等,当然也可以连接 EC20-4DA。

EC20 系列可编程控制器主模块,可以扩展多个 IO 扩展模块及特殊功能模块,

连接扩展模块的数量,取决于模块能提供电源的功率大小,具体内容请参见

《EC20 系列可编程控制器用户手册》中 4.7 电源规格。

图 1-3 EC20-4DA模拟量输出模块与主模块的连接示意图

1.3 布线说明

用户端子布线要求,请参见图 1-4。布线时,请您注意以下 7 方面:

1.模拟输出建议使用双绞屏蔽电缆,电缆应远离电源线或其他可能产生电气干

扰的电线。

2.在输出电缆的负载端使用单点接地。

3.如果输出存在电气噪声或电压波动,可以接一个平滑电容器(0.1μF~0.47μF/25V)。

4.若将电压输出短路或将电流负载连接到电压输出端,可能会损坏 EC20-4DA。

5.将模块的接地端 PG 良好接地。

6.模拟供电电源可以使用主模块的辅助输出 24Vdc 电源,也可以使用其它满

足要求的电源。

7.不要使用用户端子上的空脚。

V4+I4+

VI4-

AGND

V1+

I1+

VI1-

AGND

24V+

PG

24V-

AGND

+15V

-15V

PGND ⑤

EC20-4DA

DC/DC转换器

DC24V±10%200mA

电压负载

电流负载

CH4

CH1

①②

图 1-4 EC20-4DA用户端子布线示意图

2 使用说明

2.1 电源指标

表 2-1 电源指标

项目 说明

模拟电路24Vdc(-15%~20%),最大允许纹波电压 5%,120mA(来自

主模块或外接电源)

数字电路 5Vdc 50mA(来自主模块)

2.2 性能指标

表 2-2 性能指标

项目 指标

占用 I/O 点数 无

转换速度 每通道 2.1ms(改变所用的通道数不会改变转换速度)

模拟

输出

电压输出 -10~10Vdc(外部负载阻抗不小于 2kΩ)

电流输出 0~20mA(外部负载阻抗为 500Ω或更小)

Page 2: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

{PAGE }

项目 指标

数字输入 默认设置:-2000~2000,允许范围:-10000~10000

分辨

电压输出 5mV(10V/2000)

电流输出 10μA(20mA/2000)

总体精度±1%(对于 10V 的全量程)

±1%(对于 20mA 的全量程)

隔离模拟电路和数字电路之间用光电耦合器进行隔离。模拟电路

电源和外部电源用 DC/DC 进行隔离。模拟通道之间不隔离

2.3 缓冲区(BFM)EC20-4DA 与主模块通过缓冲区(BFM)交换信息,主模块通过 TO 命令将信

息写入 EC20-4DA 的 BFM,对 EC20-4DA 进行设置,DA 转换输入数据也由

TO 命令写入。主模块通过 FROM 命令读取 EC20-4DA 的 BFM 内容。EC20-4DA的缓冲区(BFM)具体内容见表 2-3。

表 2-3 EC20-4DA的缓冲区(BFM)内容

BFM 内容 缺省值

*#0 输出模式选择 0X0000

*#1 通道 1 输出数据 0

*#2 通道 2 输出数据 0

*#3 通道 3 输出数据 0

*#4 通道 4 输出数据 0

*#5 通道复位命令字 0X0000

*#6 通道特性设置确认命令字 0X0000

*#7 CH1——D0 0(输出模式 0)

*#8 CH1——A0 0(输出模式 0)

*#9 CH1——D1 2000(输出模式 0)

*#10 CH1——A1 10000(输出模式 0)

*#11 CH2——D0 0(输出模式 0)

*#12 CH2——A0 0(输出模式 0)

*#13 CH2——D1 2000(输出模式 0)

*#14 CH2——A1 10000(输出模式 0)

*#15 CH3——D0 0(输出模式 0)

*#16 CH3——A0 0(输出模式 0)

*#17 CH3——D1 2000(输出模式 0)

*#18 CH3——A1 10000(输出模式 0)

*#19 CH4——D0 0(输出模式 0)

*#20 CH4——A0 0(输出模式 0)

*#21 CH4——D1 2000(输出模式 0)

*#22 CH4——A1 10000(输出模式 0)

#23 保留

#24 保留

#25 保留

#26 保留

#27 保留

#28 保留

#29 保留

#30 保留

#31 保留

#32 保留

#33 保留

#34 错误状态

*#35 初始化 0

*#36 更改设置允许1(允许更改),如果设为 0,则不允

许更改

#4094 模块软件版本信息 0X1000

#4095 模块识别码 0X2402

说明:

1.只有带*号的缓存器可以使用 TO 指令从主模块写入 BFM,使用 FROM 命

令可读取 BFM 区任意单元内容,若读取保留单元,将会获得 0 值。

2.BFM#0 为输出模式选择缓存器,采用 4 位十六进制数 0X×4×3×2×1表示。

×1 是通道 1 的命令,×2 是通道 2 的命令,依此类推。当×=0 时,表示-10V~

10V 的电压输出模式;当×=1 时,表示 0~20mA 的电流输出模式;当×=2时,表示 4~20mA 的电流输出模式,当×=3 时,为厂家保留功能。

请注意:当某通道模式设置为 2 时,该通道相应的通道输出特性设置数据 D0将会自动更改,D0 参数的意义请参见第 5 条说明。此后,再将此通道设置为其

他模式,D0 将会保持不变,因此需要根据需要更改,具体方法请参见第 4 条和

5 条说明,特性更改参见{ REF _Ref124326045 \h \* MERGEFORMAT }。

3.BFM#5 为通道复位命令,当可编程序控制器处于停止(STOP)模式,运行

(RUN)模式下的最后输出值将被保持。要复位这些值以使其成为偏移值,可

将十六进制值 0X×4×3×2×1 写入 BFM#5 中,其中×1 是通道 1 的命令,×2

是通道 2 的命令,依此类推。当×=0 时,表示保持输出;当×=1 时,表示复

位到偏移值。

4.BFM#6 为通道特性设置确认命令,当通道特性数据(即 BFM#7 到 BFM#22中的通道特性数据)设置后,在相应的十六进制数据位中写入 1,当前通道特

性设置值才会有效,相应通道的输出特性即可改变,该命令正确执行后,会自

动清除。BFM#6 的格式为 0X×4×3×2×1,其中×1是通道 1 的命令,×2是通

道 2 的命令,依此类推。

5.BFM#7 到 BFM#22 为通道输出特性设置数据缓存器,使用两点法设置通道

特性,D0、D1 表示通道输入数字量,A0、A1 表示通道实际输出,A0、A1 数

据的单位是 mV 或μA,每通道占用 4 字。考虑到方便用户的设置,同时并不

影响功能的实现,将 A0、A1 的值固定为模拟量的 0 值和最大值,对通道模式

字(BFM 的#0)进行更改时,A0、A1 会根据模式自动更改,用户对此两项设

置的更改无效。

D0、A0、D1、A1 的更改对通道特性的改变,参见{ REF _Ref124325793 \h \*MERGEFORMAT }。

6.BFM#34 为错误状态缓存器,当出现所示的错误时,可以用 FROM 指令读

出错误的详细信息,如表 2-4 所示。

表 2-4 BFM#34的状态信息

BFM#34的位设备 开(ON) 关(OFF)

b0:错误 b1、b2 中任何一个为 ON 无错误

b1:通道特性设置数

据错误

EEPROM 中的通道特性数据不

正常或者发生设置错误通道特性数据正常

b2:电源故障 24Vdc 电源故障 电源正常

b3:硬件故障 DA 转换器或其它硬件故障 硬件正常

b10:范围错误 数字输入值超出指定范围 输入值在规定范围内

7.当通过将 BFM#35 设为 1 而将其激活后,模块的所有设置将复位成缺省值。

8.BFM#36 为禁止调整 I/O 特性。当设置 BFM#36 为 0,将会禁止用户对 I/O特性的疏忽性调整。一旦设置了禁止调整功能,该功能将一直有效,直到设置

了允许命令(BFM#36=1)。所设定的值为停电保持状态。

9.BFM#4094 为模块软件版本信息,可以使用 FROM 指令读出模块软件版本

信息。

10.BFM#4095 为模块识别码。EC20-4DA 的识别码是 0X2402。可编程序控制

器中的用户程序可以在程序中使用这个号码,以在传输/接收数据之前确认此特

殊模块。

3 特性设置

EC20-4DA 的输出通道特性为通道模拟输出量 A 与通道输入数字量 D 之间的线

性关系,可由用户设置,每个通道可以理解为图 3-1 中所示的模型,由于其为

线性特性,因此只要确定两点 P0(A0,D0)、P1(A1,D1),即可确定通道的

特性,其中,D0 表示模拟量输出为 A0 时通道输入数字量,D1 表示模拟量输

出为 A1 时通道输入数字量。

Page 3: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

{PAGE }

A1

D

通道特性

D0A0 D1

P1

P0

A

通道 A模拟输出

D数字输入

通道模型

图 3-1 EC20-4DA的通道特性示意图

考虑到用户使用的简便性,且不影响功能的实现,将 A0、A1 的值固定为当前

模式下,模拟量的 0 值和最大值,也就是说图 3-1 中 A0 为 0,A1 为当前模式

下的模拟输出的最大值,对通道模式字(BFM 的#0)进行更改时,A0、A1 会

根据模式自动更改,用户对此两项设置的写入无效。

若不更改各通道的 D0、D1 值,仅设置通道的模式(BFM#0),那么,每种模

式对应的特性如图 3-2 所示。其中,图 3-2 中的 A 为出厂设定。

2000

20000

0

A

B.模式1

-20002000

10000

-10000

0

A

A.模式 0(

-2000 2000

20000

0D

A

C.模式 2

-2000DD

(mV) (μA)

:-10V~10V出厂设定)

:0~20mA

(μA)

-5004000

:4~20mA

图 3-2 不更改各通道的 D0、D1值,各种模式对应通道特性

若更改通道的 D0、D1 数值,即可更改通道特性,D0、D1 可在–10000~10000之间任意设定,若设定值超出此范围,EC20-4DA 不会接收,并保持原有有效

设置,图 3-3 为特性更改举例,请参考。

2000

20000

0

A

200010000

10000

10000

0

A

-10000 10000

20000

0

A

-10000

P1

P0

P1

P010000

P1

D D D

A.模式0。D0=0,D1=10000 输入10000,对应输出数字量10V 输入0,对应输出数字量0V 输入-10000,对应输出数字量-10V

B.模式1。D0=-2000,D1=2000 输入2000,对应输出数字量20mA 输入0,对应输出数字量10mA 输入-2000,对应输出数字量0mA

C.模式2。D0=-2500,D1=10000 输入10000,对应输出数字量20mA 输入0,对应输出数字量4mA 输入-2500,对应输出数字量0mA

(mV) (μA)

0P 4000

-2500

(μA)

图 3-3 特性更改举例

4 应用示例

4.1 基本应用

例:EC20-4DA 模块地址为 1(特殊功能模块的编址方法,请参见《EC20 系列

可编程控制器用户手册》),设置第 1、2 通道为模式 0(-10V~10V),第 3通道为模式 1(0~20mA),第 4 通道为模式 2(4~20mA)。

使用其第 1 通道输出-10V~10V 的锯齿波信号,第 2 通道输出 5V 电压信号,

第 3 通道输出 5mA 电流信号,第 4 通道输出 7.2mA 电流信号。

如果您使用了EC20的升级版本,并且安装的 ControlCenter的版本在 V1.0以上,

您还可以直接使用软件提供的特殊模块配置界面直接配置,而无需使用 FROM

和 TO 指令。配置步骤如下:

1.双击工程管理器中的系统块;

2.选择特殊模块配置选项卡;

3.根据需要选择需要配置的模块;

4.配置完所有参数后,点确认键配置完毕。

此后,用户程序不再需要用 FROM 和 TO 指令与特殊功能模块通讯,只需要使

用配置的 D 元件即可。编译通过后,系统块随用户程序一起下载到主模块中。

配置界面如图 4-1 所示。

图 4-1 EC20-4DA的配置界面

4.2 特性更改

例:EC20-4DA 模块地址为 3(特殊功能模块的编址方法,请参见《EC20 系列

可编程控制器用户手册》),第 1、2、3 通道特性设置分别按图 3-3 所示 A、B、C 特性更改,下面示例程序实现如下功能:

1.通道 1(模式 0)输出一个-2V~+2V 的锯齿波,时间步长为系统的扫描时

间;

2.通道 2(模式 1)输出 15mA 电流;

3.通道 3(模式 2)输出 4.8mA 电流;

4.通道 4(模式 0)输出 2.0V 电压。

Page 4: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

{PAGE }

5 运行检查

5.1 例行检查

1.检查模拟输出布线是否满足要求,参考{ REF _Ref124325844 \h }。

2.检查 EC20-4DA 扩展电缆是否可靠插入扩展电缆接口。

3.检查 5V 及 24V 电源是否过载。注意:EC20-4DA 数字部分的电源由自主模

块通过扩展电缆供应。

4.检查应用程序,确保应用中选择的是正确的操作方法及参数范围。

5.置 EC20 主模块为 RUN 状态。

5.2 故障检查

如果 EC20-4DA 运行不正常,请检查下列项目。

●检查“POWER”指示灯状态

点亮:扩展电缆连接正确;

熄灭:检查扩展电缆连接情况及主模块情况。

●检查模拟布线。

●检查“24V”指示灯状态

点亮:24Vdc 电源正常;

熄灭:24Vdc 电源可能有故障,若 24Vdc 电源正常,则是 EC20-4DA 故障。

●检查“RUN”指示灯状态

高速闪烁:EC20-4DA 运行正常;

慢速闪烁或熄灭:检查 BFM#34 中的信息。

用户须知

1.保修范围指可编程控制器本体。

2.保修期为十八个月,保修期内正常使用情况下,产品发生故障或损坏,我

公司免费维修。

3.保修期起始时间为产品制造出厂日期,机器编码是判断保修期的唯一依据,

无机器编码的设备按过保处理。

4.即使在保修期内,如发生以下情况,将收取一定的维修费用:

不按用户手册操作导致的机器故障;

由于火灾、水灾、电压异常等造成的机器损坏;

将可编程控制器用于非正常功能时造成的损坏。

5.服务费按实际费用计算,如另有合同,以合同优先的原则处理。

6.请您务必保留此卡,并在保修时出示给维修单位。

7.如您有问题可与代理商联系,也可直接与我公司联系。

深圳市迈特控制技术有限公司

客户服务中心

地址:深圳市南山区红花岭工业区南区朋年大学城科技园 B 栋 114-117

邮编:518057

公司网址:www.myiter.com

客户服务及投诉热线:0755-23000745-8002

E-mail:[email protected]

资料版本 V1.0

归档时间 2016-03-01

版权所有,保留一切权利。内容如有改动,恕不另行通知。

Page 5: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

{PAGE }

EC20-4DA Analog Output ModulePlease allow us to congratulate you on choosing an Myiter programmablelogic controller (PLC). Before using the EC20 series PLC product, pleasecarefully read this book so as to fully understand its characteristics, use itsafely and bring its functions into full play.

Note:To reduce the chance of accident, please carefully read the operatinginstructions and safety precautions prior to use. Only adequately trainedpersonnel shall install or operate this product. In operation, strict compliancewith applicable safety rules in the industry, the operating instructions andsafety precautions in this book is required.

1 Port Description

1.1 PortThe extension port and user port of EC20-4DA are both protected by a cover,as shown in Figure 1-1. Removing the covers reveals the extension port anduser port, as shown in Figure 1-2.

EC20-4DA

POWER

RUN

24V

Extension cable

Extension port cover

User port cover

262

25POWER

RUN

24V

V 2 +

2 4 V -

V 1 + I 1 +

V I 1 -

EC20-4DA

2 4 V +

V I 2 -

I 2 + V 4 +V 3 + I 3 +

V I 3 - V I 4 -

I 4 +

Extension portUser port

Extension cable

Figure 1-1 Port (covered) Figure 1-2 Port (uncovered)

The extension cable connects EC20-4DA to the system, while the extensionport connects EC20-4DA to another extension module of the system. Fordetails on connection, refer to { REF _Ref144615081 \h \*MERGEFORMAT }. The user port of EC20-4DA is described in Table 1-1.

Table 1-1 User port descriptionTerminal Name Description

1 24V+ Analog power supply 24V+2 24V- Analog power supply 24V-4 { EMBED

Visio.Drawing.11 }

GND

5, 9, 13, 17V1+, V2+,V3+, V4+

Voltage signal output of channels 1, 2, 3and 4

7, 11, 15, 19I1+, I2+,I3+, I4+

Current signal output of channels 1, 2, 3,and 4

8, 12, 16, 20VI1-, VI2-,VI3-, VI4-

Common GND of channels 1, 2, 3, and 4

3, 6, 10, 14, 18 · NC

1.2 Connecting Into SystemEC20-4DA is applicable to EC20 series PLC system. It connects to thesystem through its extension cable, as shown in Figure 1-3. You can connectEC20-4DA to the system by inserting its extension cable into the extensionport of the basic module or any other extension module in the system.

After connected into the system, EC20-4DA extension port can be used toconnect it to other EC20 series extension modules, such as IO extensionmodule, EC20-4AD, EC20-4TC, etc., including EC20-4DA of course.

You can extend the basic module of EC20 series PLC by adding extensionmodules. The number of extension modules that can be added depends onthe power capacity of the basic module. For details, see 4.7 Power Supplyin EC20 Series PLC User Manual.

Removing extension port cover before connection

Basic module Extension moduleExtension cable

Figure 1-3 Connection bet. EC20-4DA and basic module

1.3 WiringFigure 1-4 shows the wiring of the user port.

CH4

CH1 Currentload

DC/DCconverter

Voltageload

V4+I4+VI4-

AGND

V1+I1+VI1-

AGND

24V+PG24V-

AGND+15 V

- 15 VPGND

EC - 4DA

24Vdc ±10%200 mA

②①

①②

20

Figure 1-4 User port wiring of EC20-4DA

Please pay attention to the following seven points in wiring:

1. It is recommended to use twisted screen cables as the analog outputcables and route them separate from power cables or other cables that maybe source of electrical interference.

2. Each load of the PLC should be grounded separately.

3. If electric noise or voltage fluctuation is present at the output, it is advisableto connect a smooth capacitor (0.1µF~0.47µF/25V).

4. Shorting the voltage output terminals or connecting current load to thevoltage output terminals may cause damage to EC20-4DA.

5. Properly ground the module’s PG terminal.

6. The basic module’s 24Vdc auxiliary output power or external power supplymeeting requirements can be used as the power source of the module’sanalog circuit.

7. Do not use the NC terminals of the user port.

2 Use Directions

2.1 Power SpecificationTable 2-1 Power specification

Item DescriptionAnalogcircuit

24Vdc (-15%~20%), maximum allowable ripple voltage 5%,120mA (from basic module or external power supply)

Digitalcircuit

5Vdc 50mA (from basic module)

2.2 Performance SpecificationTable 2-2 Performance specification

Item SpecificationsI/O points occupied None

Conversion speed2.1ms/channel (changing the number of thechannels used will not cause change in theconversion speed)

Analog outputrange

Voltageoutput

-10~10Vdc (external load resistance not less than2kΩ)

Currentoutput

0~20mA (external load resistance is 500Ωor less)

Page 6: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

{PAGE }

Item Specifications

Digital inputDefault: -2000~2000Setting range: -10000~10000

Resolution

Voltageoutput

5mV(10V/2000)

Currentoutput

10µA(20mA/2000)

Overall accuracy±1% (for 10V full range)±1% (for 20mA full range)

Isolation

Use optical-electric coupler for isolation betweenanalog circuit and digital ciruit. Use DC/DCconverter for isolation between analog circuitpower supply and external power supply. Noisolation between analog channels

2.3 Buffer Memory (BFM)EC20-4DA exchanges data with the basic module through BFM. The basicmodule uses TO command to write data into the BFM of EC20-4DA toconfigure EC20-4DA. It also uses TO command to write in DA conversioninput data. It uses FROM command to read data from the BFM of EC20-4DA.Table 2-3 describes the contents of the BFM of EC20-4DA.

Table 2-3 BFM ContentsBFM Contents Remark

*#0 Output mode selection Default: 0X0000*#1 Channel 1 output data Default: 0*#2 Channel 2 output data Default: 0*#3 Channel 3 output data Default: 0*#4 Channel 4 output data Default: 0*#5 Channel reset command Default: 0X0000

*#6Channel characteristics settingconfirmation command

Default: 0X0000

*#7 CH1——D0 Default: 0 (output mode 0)*#8 CH1——A0 Default: 0 (output mode 0)*#9 CH1——D1 Default: 2000 (output mode 0)*#10 CH1——A1 Default: 10000 (output mode 0)*#11 CH2——D0 Default: 0 (output mode 0)*#12 CH2——A0 Default: 0 (output mode 0)*#13 CH2——D1 Default: 2000 (output mode 0)*#14 CH2——A1 Default: 10000 (output mode 0)*#15 CH3——D0 Default: 0 (output mode 0)*#16 CH3——A0 Default: 0 (output mode 0)*#17 CH3——D1 Default: 2000 (output mode 0)*#18 CH3——A1 Default: 10000 (output mode 0)*#19 CH4——D0 Default: 0 (output mode 0)*#20 CH4——A0 Default: 0 (output mode 0)*#21 CH4——D1 Default: 2000 (output mode 0)*#22 CH4——A1 Default: 10000 (output mode 0)#23 Reserved#24 Reserved#25 Reserved#26 Reserved#27 Reserved#28 Reserved#29 Reserved#30 Reserved#31 Reserved#32 Reserved#33 Reserved#34 Error status*#35 Initialization Default: 0*#36 Setting change enable 1 (yes), 0 (no); default: 1#4094 Module software release 0X1000#4095 Module ID 0X2402

Explanation:

1. The basic module can use TO command to write data in BFMs marked “*”only, but it can use FROM command to read data from any BFM. When

reading from reserved BFMs, the obtained value is 0.

2. BFM#0: output mode selection. It adopts 4 hexadecimal digits 0X×4×3×2×1,

where ×1 is the command for channel 1, ×2 is the command for channel 2, andso on. ×=0 means -10V~10V voltage output mode, ×=1 means 0~20mAcurrent output mode, ×=2 means 4~20mA current output mode, × = 3 meansfactory reserved function.

Note: After a channel mode is set to 2, the channel’s output characteristicsdata D0 will change automatically (please refer to item 5 for the meaning ofparameter D0). If afterwards the channel mode is changed, D0 will remainunchanged, so please change D0 per your need; for details, see item 4 anditem 5. For the characteristics setting method, please refer to { REF_Ref144615112 \h \* MERGEFORMAT }.3. BFM#5: channel reset command. When the PLC is in STOP mode, thelatest output values in RUN mode will be maintained. To reset these values tomake them become deviation values, write hexadecimal value 0X×4×3×2×1

into BFM#5, where ×1 is the command for channel 1, ×2 the command forchannel 2, and so on. ×=0 means maintaining output, ×=1 means resetting todeviation values.

4. BFM#6: channel characteristics setting confirmation command. Aftersetting the channel characteristics (from BFM#7 to BFM#22), you need towrite 1 into the appropriate hexadecimal data bit to validate the setting andthereby change the channel’s output characteristics. This command will clearautomatically after being executed correctly. The format of BFM#6 is0X×4×3×2×1, where ×1 is the command for channel 1, ×2 the command forchannel 2, and so on.

5.BFM#7 to BFM#22: channel output characteristics settings, which are setusing two-point method. D0 and D1 represent the channel’s digital inputs,while A0 and A1, in mV or µA unit, represent the channel’s actual outputs.Each channel occupies 4 characters. For the convenience of user settingwithout affecting functions, A0 and A1 are respectively fixed to the analog 0and max value. After changing the channel mode (BFM #0), A0 and A1 willchange automatically according to the mode. They are user unadjustable.

For how the change in D0, A0, D1 and A1 affects the channel characteristics,please refer to { REF _Ref144615138 \h \* MERGEFORMAT }.6. BFM#34: error status information. When the indicated error occurs, FROMcommand can be used to read out the detailed error information, as shown inFigure 2-4.

Table 2-4 Status information of BFM#34Bit status of BFM#34 ON OFF

b0: error b1 or b2 is ON No error

b1: channel characteristicssetting error

Channel characteristicssetting error in EEPROM

Channelcharacteristicssetting normal

b2: power supply failure 24Vdc power supply failed Power supply normal

b3: hardware faultDA converter or otherhardware faulty

Hardware normal

b10: range errorInput value outsidespecified range

Input value withinspecified range

7. Setting BFM#35 to 1 will restore all module settings to default values.

8. BFM#36: I/O characteristics setting change enable. Setting BFM#36 to 0inhibits change in I/O characteristics settings. Setting it to 1 allows change inI/O characteristics settings. The setting of BFM#36 will not change aftermodule restart following power restoration.

9. BFM#4094: module software release information, which can be read usingFROM command.

10. BFM#4095: module ID. ID of EC20-4DA is 0X2402. The user program inPLC can use this ID to identify the module before transmitting and receivingdata.

3 Setting CharacteristicsThe output channel characteristic of EC20-4DA is the linear relationshipbetween the channel’s analog output A and digital input D. You can set it.Each channel can be considered as the model shown in Figure 3-1. As it is oflinear characteristics, the channel characteristics can be defined by just twopoints P0: (A0, D0) and P1 (A1, D1), where D0 is the channel’s digital inputcorresponding to the analog output A0, and D1 is the channel’s digital input

Page 7: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

{PAGE }

corresponding to the analog output A1.

D0A0

A1

AD

P1

P0Digital inputChannel

Channel modelAnalog output

Setting channel characteristics

D

A(mV or μA)

D1

Figure 3-1 Channel characteristics of EC20-4DA

For the convenience of use without affecting the functions, A0 and A1 arerespectively fixed to the analog 0 and max analog value in the current mode.I.e., in Figure 3-1, A0 is 0, A1 is the max analog output value in the currentmode. After changing the channel mode (BFM #0), A0 and A1 will changeautomatically according to the mode. They are user unadjustable.

If you just set the channel mode (BFM#0) without changing the D0 and D1values of each channel, the channel characteristics vs. mode should be asshown in Figure 3-2. Characteristics A in Figure 3-1 shows the factory defaultsettings.

20000

A(μA)

-2000 20000-2000

A. mode 0: -10V~10V(factory settings)

B. mode 1: 0~20mA

2000

10000

0

A

-2000

C. mode 2: 4~20mA

DD

(mV)20000 20000

-10000

D

A(μA)

4000

-500

Figure 3-2 Characteristics vs. mode with D0 and D1 unchanged

You can change the characteristics by changing the D0 and D1 values.Setting ranges of D0 and D1 are both from –10000 to 10000. If the setting isoutside this range, EC20-4DA will not accept it, and will just maintain theoriginal valid setting. Figure 3-3 gives an example of characteristics changefor your reference.

2000

20000

0- 200010000

10000

-10000

0

A(mV)

-10000 10000

20000

0-10000

P1

P0

P1

P0

P1

P04000

A. mode 0, D0=0, D1=10000 Input10000, corresponding to digitalouptut 10V;Input 0V, corresponding to ouptut 0;Input -10000, corresponding toouptut -10V;

DDD

A(μA)

10000

B. mode 1, D0=-2000, D1=2000Input 2000, corresponding to ouptut20mA;Input 0, corresponding to ouptut 10mA;Input -2000, corresponding to ouptut0mA;

-2500

A(μA)

C. mode 2, D0=-2500, D1=10000Input 10000, corresponding to ouptut20mA;Input 0, corresponding to ouptut 4mA;Input -2500, corresponding to ouptut0mA;

Figure 3-3 Characteristics change example

4 Application Example

4.1 Basic ApplicationExample: The EC20-4DA module address is 1 (for the coding of extensionmodules, please refer to EC20 Series PLC User Manual). Set channels 1 and2 to mode 0 (-10V~10V), channel 3 to mode 1 (0~20mA), and channel 4 tomode 2 (4~20mA).

Use channel 1 to output -10V~10V saw-tooth signal, channel 2 to output 5Vvoltage signal, channel 3 to output 5mA current signal, and channel 4 tooutput 7.2mA current signal.

If your EC20 has been upgraded, and your Controlcenteris V1.0 or laterversions, you can use the Special Module Configuration of the software toconfigure, instead of using the FROM and TO instructions. The configuringprocedures are listed below:

1. Double click System block in Project Manager;2. Select the Special Module Configuration tab;

3. Select the module to be configured according to your actual needs;

4. After configuring all necessary parameters, click the OK button.

The user program will then use the configured D element to communicatewith the special functional module, instead of using the FROM and TOinstructions. After the compiling, the system block will be downloaded to thebasic module along with the user program. The configuration window isshown in Figure 4-1.

Figure 4-1 EC20-4DA configuration

4.2 Changing CharacteristicsExample: The EC20-4DA module address is 3(for the coding of extensionmodules, please refer to EC20 Series PLC User Manual). Change thecharacteristics settings of channels 1, 2 and 3 respectively to characteristicsA, B and C of Figure 3-3. The program shown below realizes the following

Page 8: EC20-4DA模拟量输出模块 Author: YanLJ Created Date: 4/27/2016 7:05:40 PM

{PAGE }

functions:

1. Channel 1 (mode 0) outputs one -2V ~ +2V saw-tooth wave, the time stepis the system’s scanning time;

2. Channel 2 (mode 1) outputs 15mA current;

3. Channel 3 (mode 2) outputs 4.8mA current;

4. Channel 4 (mode 0) outputs 2.0V voltage.

5 Operation Inspection

5.1 Routine Inspection1. Check that the wiring meets requirements (refer to { REF _Ref144615176\h \* MERGEFORMAT }).2. Check that the extension cable of EC20-4DA is properly inserted in theextension port.

3. Check that the 5V and 24V power supplies are not overloaded. Note: Thedigital circuit of EC20-4DA is powered by the basic module through theextension cable.

4. Check the application, make sure that the correct operation method andparameter setting range are selected.

5. Set the EC20 basic module to RUN state.

5.2 Fault InspectionIn case of EC20-4DA malfunction, please check:

● the status of the POWER indicator

ON: the extension cable properly connected;

OFF: check the extension cable connection and the basic module.

● the wiring

● the status of the 24V indicator

ON: 24Vdc power supply normal;

OFF: Possibly the 24Vdc power supply failed; if not, EC20-4DA is faulty.

● the status of the RUN indicator

Flash quickly: EC20-4DA in normal operation;

Flash slowly or OFF: check the data in BFM#34.

Notice1. The warranty range is confined to the PLC only.

2. Warranty period is 18 months, within which period Shengzhen MyiterControl Technology conducts free maintenance and repairing to the PLC thathas any fault or damage under the normal operation conditions.

3. The start time of warranty period is the delivery date of the product, ofwhich the product SN is the sole basis of judgment. PLC without a productSN shall be regarded as out of warranty.

4. Even within 18 months, maintenance will also be charged in the followingsituations:

Damages incurred to the PLC due to mis-operations, which arenot in compliance with the User Manual.

Damages incurred to the PLC due to fire, flood, abnormal voltage,etc.

Damages incurred to the PLC due to the improper use of PLCfunctions.

5. The service fee will be charged according to the actual costs. If there is anycontract, the contract prevails.

6. Please keep this paper and show this paper to the maintenance unit whenthe product needs to be repaired.

7. If you have any question, please contact the distributor or our companydirectly.

Shengzhen Myiter Control Technology Co.,Ltd

Add:1017#B building,Pengnan University Town Technology Park,Red FlowerRidge Industrial South Area,Nanshan District,Shenzhen,china

Homepage:www.myiter.com

Customer Service Hotline: 0755-23000745-8002

E-mail:[email protected]

Version V1.0

Revision date March 1, 2016

All rights reserved. The contents in this document are subject to changewithout notice.