应用模拟量模块时,需要根据输入信号的规格设置右下角的DIP开关(Configuration开关)。DIP开关只对输入信号有效,并且对所有的输入通道都是相同的。
EM231、EM235带模拟量输入通道的模块,还分别有电位器用于对输入信号进行校正。EM231和EM235上的Gain(增益)电位器用于调整输入信号和转换数值的放大关系;EM235上的Offset(偏置)用于对输入信号调零。如果没有精确的信号源,请不要调整。详细调整方法请参照《S7-200系统手册》。
注意:
Gain(增益)和Offset(偏置)电位器不能用于调整0 - 20mA和4 - 20mA输入转换!
S7-200模拟量模块没有0 - 20mA与4 - 20mA电流型输入的选择开关,0/4 - 20mA模拟量信号的DIP开关设置一样,但相应的变换必须用程序实现。
表1. EM231 4通道
单极性 | 满量程输入 | 分辨率 | ||
---|---|---|---|---|
SW1 | SW2 | SW3 | ||
ON | OFF | ON | 0 - 10V | 2.5mV |
ON | OFF | 0 - 5V | 1.25mV | |
0 - 20mA | 5μA | |||
双极性 | 满量程输入 | 分辨率 | ||
SW1 | SW2 | SW3 | ||
OFF | OFF | ON | ±5V | 2.5mV |
ON | OFF | ±2.5V | 1.25mV |
表2. EM 231 8 通道模拟量模块输入配置开关表
单极性
|
满量程输入
|
分辨率
|
||||
sw1
|
sw2
|
sw3
|
sw4
|
sw5
|
||
OFF
|
OFF
|
ON
|
OFF
|
ON
|
0至10V
|
2.5mV
|
OFF
|
OFF
|
ON
|
ON
|
OFF
|
0至5V
|
1.25mV
|
X
|
X
|
ON
|
ON
|
OFF
|
X可选择第6 |
5uA
|
双极性
|
满量程输入
|
分辨率
|
||||
sw1
|
sw2
|
sw3
|
sw4
|
sw5
|
||
OFF
|
OFF
|
OFF
|
OFF
|
ON
|
±5V
|
2.5mV
|
OFF
|
OFF
|
OFF
|
ON
|
OFF
|
±2.5V
|
1.25mV
|
EM 231 8 通道模拟量模块使用开关 3, 4,5 来选择模拟量输入范围,使用开关 1,2 来选择电流输入模式(只有通道 6 和 7 可以用作电流输入)。并且当最后两个通道使用电流信号时,前6个通道的电压测量范围必须是0-5V,而不能使用0-10V的信号。所以,当您需要接入8路电流信号时,只能使用两个EM231的4通道的模块。
8输入的EM231模块只有第6、7两通道可以用做电流输入,使用拨码开关1、2对其进行设置:当开关1为“ON”时,通道6用做电流输入;开关2为“ON”时,通道7用做电流输入。反之,当1、2开关为“OFF”时,6、7通道用做电压输入。
表3. EM235
单极性 | 满量程输入 | 分辨率 | |||||
---|---|---|---|---|---|---|---|
SW1 |
SW2 |
SW3 |
SW4 |
SW5 |
SW6 |
||
ON | OFF | OFF | ON | OFF | ON | 0 - 50 mV | 12.5μV |
OFF | ON | OFF | ON | OFF | ON | 0 - 100 mV | 25μV |
ON | OFF | OFF | OFF | ON | ON | 0 - 500 mV | 125μV |
OFF | ON | OFF | OFF | ON | ON | 0 - 1 V | 250μV |
ON | OFF | OFF | OFF | OFF | ON | 0 - 5 V | 1.25mV |
0 - 20 mA | 5μA | ||||||
OFF | ON | OFF | OFF | OFF | ON | 0 - 10 V | 2.5mV |
双极性 | 满量程输入 | 分辨率 | |||||
SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | ||
ON | OFF | OFF | ON | OFF | OFF | ±25 mV | 12.5μV |
OFF | ON | OFF | ON | OFF | OFF | ±50 mV | 25μV |
OFF | OFF | ON | ON | OFF | OFF | ±100 mV | 50μV |
ON | OFF | OFF | OFF | ON | OFF | ±250 mV | 125μV |
OFF | ON | OFF | OFF | ON | OFF | ±500 mV | 250μV |
OFF | OFF | ON | OFF | ON | OFF | ±1 V | 500μV |
ON | OFF | OFF | OFF | OFF | OFF | ±2.5 V | 1.25mV |
OFF | ON | OFF | OFF | OFF | OFF | ±5 V | 2.5 mV |
OFF | OFF | ON | OFF | OFF | OFF | ±10 V | 5 mV |
表4. EM231 RTD 2AI DIP开关设置
RTD Type and Alpha¹
|
SW1
|
SW2
|
SW3
|
SW4
|
SW5
|
RTD Type and Alpha¹
|
SW1
|
SW2
|
SW3
|
SW4
|
SW5
|
100Ω Pt 0.003850 |
0
|
0
|
0
|
0
|
0
|
100Ω Pt 0.003902
|
1
|
0
|
0
|
0
|
0
|
200Ω Pt 0.003850
|
0
|
0
|
0
|
0
|
1
|
200Ω Pt 0.003902
|
1
|
0
|
0
|
0
|
1
|
500Ω Pt 0.003850
|
0
|
0
|
0
|
1
|
0
|
500Ω Pt 0.003902
|
1
|
0
|
0
|
1
|
0
|
1000Ω Pt 0.003850
|
0
|
0
|
0
|
1
|
1
|
1000Ω Pt 0.003902
|
1
|
0
|
0
|
1
|
1
|
100Ω Pt 0.003920
|
0
|
0
|
1
|
0
|
0
|
SPARE
|
1
|
0
|
1
|
0
|
0
|
200Ω Pt 0.003920
|
0
|
0
|
1
|
0
|
1
|
100Ω Ni 0.00672
|
1
|
0
|
1
|
0
|
1
|
500Ω Pt 0.003920
|
0
|
0
|
1
|
1
|
0
|
120Ω Ni 0.00672
|
1
|
0
|
1
|
1
|
0
|
1000Ω Pt 0.003920
|
0
|
0
|
1
|
1
|
1
|
1000Ω Ni 0.00672
|
1
|
0
|
1
|
1
|
1
|
100Ω Pt 0.00385055
|
0
|
1
|
0
|
0
|
0
|
100Ω Ni 0.006178
|
1
|
1
|
0
|
0
|
0
|
200Ω Pt 0.00385055
|
0
|
1
|
0
|
0
|
1
|
120Ω Ni 0.006178
|
1
|
1
|
0
|
0
|
1
|
500Ω Pt 0.00385055
|
0
|
1
|
0
|
1
|
0
|
1000Ω Ni 0.006178
|
1
|
1
|
0
|
1
|
0
|
1000Ω Pt 0.00385055
|
0
|
1
|
0
|
1
|
1
|
10000Ω Pt 0.003850
|
1
|
1
|
0
|
1
|
1
|
100Ω Pt 0.003916
|
0
|
1
|
1
|
0
|
0
|
10Ω Cu 0.004270
|
1
|
1
|
1
|
0
|
0
|
200Ω Pt 0.003916
|
0
|
1
|
1
|
0
|
1
|
150Ω FS Resistance
|
1
|
1
|
1
|
0
|
1
|
500Ω Pt 0.003916
|
0
|
1
|
1
|
1
|
0
|
300Ω FS Resistance
|
1
|
1
|
1
|
1
|
0
|
1000Ω Pt 0.003916
|
0
|
1
|
1
|
1
|
1
|
600Ω FS Resistance
|
1
|
1
|
1
|
1
|
1
|
开关6 (仅2通道模块) | 断线检测/ 超出范围 | 设置 | 描述 |
---|---|---|---|
正向标定 (+3276.7度) |
0 | 指示断线或超出范围的正极 | |
负向标定 (--3276.8度) |
1 | 指示断线或超出范围的负极 | |
开关7 | 温度单位 | 设置 | 描述 |
摄氏度(°C) | 0 | RTD模块可报告摄氏温度或华氏温度,摄氏温 度与华氏温度的转换在内部进行。 |
|
华氏温度(°F) | 1 | ||
开关8 | 接线方式 | 设置 | 描述 |
3线 | 0 | RTD模块与传感器的接线有3种方式。精度最高的是4线连接。2线连接精度最低,推荐只用于可忽略接线误差的应用场合。 | |
2线或4线 | 1 |
表5. EM231 RTD 4AI DIP开关设置
RTD Type and Alpha¹
|
SW1
|
SW2
|
SW3
|
SW4
|
SW5
|
SW6
|
RTD Type and Alpha¹
|
SW1
|
SW2
|
SW3
|
SW4
|
SW5
|
SW6
|
100Ω Pt 0.003850 |
0
|
0
|
0
|
0
|
0
|
0
|
100Ω Pt 0.003902
|
1
|
0
|
0
|
0
|
0
|
0
|
200Ω Pt 0.003850
|
0
|
0
|
0
|
0
|
1
|
0
|
200Ω Pt 0.003902
|
1
|
0
|
0
|
0
|
1
|
0
|
500Ω Pt 0.003850
|
0
|
0
|
0
|
1
|
0
|
0
|
500Ω Pt 0.003902
|
1
|
0
|
0
|
1
|
0
|
0
|
1000Ω Pt 0.003850
|
0
|
0
|
0
|
1
|
1
|
0
|
1000Ω Pt 0.003902
|
1
|
0
|
0
|
1
|
1
|
0
|
100Ω Pt 0.003920
|
0
|
0
|
1
|
0
|
0
|
0
|
SPARE
|
1
|
0
|
1
|
0
|
0
|
0
|
200Ω Pt 0.003920
|
0
|
0
|
1
|
0
|
1
|
0
|
100Ω Ni 0.00672
|
1
|
0
|
1
|
0
|
1
|
0
|
500Ω Pt 0.003920
|
0
|
0
|
1
|
1
|
0
|
0
|
120Ω Ni 0.00672
|
1
|
0
|
1
|
1
|
0
|
0
|
1000Ω Pt 0.003920
|
0
|
0
|
1
|
1
|
1
|
0
|
1000Ω Ni 0.00672
|
1
|
0
|
1
|
1
|
1
|
0
|
100Ω Pt 0.00385055
|
0
|
1
|
0
|
0
|
0
|
0
|
100Ω Ni 0.006178
|
1
|
1
|
0
|
0
|
0
|
0
|
200Ω Pt 0.00385055
|
0
|
1
|
0
|
0
|
1
|
0
|
120Ω Ni 0.006178
|
1
|
1
|
0
|
0
|
1
|
0
|
500Ω Pt 0.00385055
|
0
|
1
|
0
|
1
|
0
|
0
|
1000Ω Ni 0.006178
|
1
|
1
|
0
|
1
|
0
|
0
|
1000Ω Pt 0.00385055
|
0
|
1
|
0
|
1
|
1
|
0
|
10000Ω Pt |
1
|
1
|
0
|
1
|
1
|
0
|
100Ω Pt 0.003916
|
0
|
1
|
1
|
0
|
0
|
0
|
10Ω Cu 0.004270
|
1
|
1
|
1
|
0
|
0
|
0
|
200Ω Pt 0.003916
|
0
|
1
|
1
|
0
|
1
|
0
|
150Ω FS |
1
|
1
|
1
|
0
|
1
|
0
|
500Ω Pt 0.003916
|
0
|
1
|
1
|
1
|
0
|
0
|
300Ω FS |
1
|
1
|
1
|
1
|
0
|
0
|
1000Ω Pt 0.003916
|
0
|
1
|
1
|
1
|
1
|
0
|
600Ω FS |
1
|
1
|
1
|
1
|
1
|
0
|
GOST 50Ω Pt |
0
|
0
|
0
|
0
|
1
|
1
|
GOST Cu 50Ω |
0
|
1
|
0
|
1
|
1
|
1
|
GOST 100Ω Pt |
0
|
0
|
0
|
1
|
0
|
1
|
GOST Cu 100Ω |
0
|
1
|
1
|
0
|
0
|
1
|
GOST 500Ω Pt |
0
|
0
|
0
|
1
|
1
|
1
|
GOST Cu 500Ω |
0
|
1
|
1
|
0
|
1
|
1
|
GOST 10Ω Pt |
0
|
0
|
1
|
0
|
0
|
1
|
GOST Cu 10Ω |
0
|
1
|
1
|
1
|
0
|
1
|
GOST 50Ω Pt |
0
|
0
|
1
|
0
|
1
|
1
|
GOST Cu 50Ω |
0
|
1
|
1
|
1
|
1
|
1
|
GOST 100Ω Pt |
0
|
0
|
1
|
1
|
0
|
1
|
GOST Cu 100Ω |
1
|
0
|
0
|
0
|
0
|
1
|
GOST 500Ω Pt |
0
|
0
|
1
|
1
|
1
|
1
|
GOST Cu 500Ω |
1
|
0
|
0
|
0
|
1
|
1
|
GOST 10Ω Pt |
0
|
1
|
0
|
0
|
0
|
1
|
Spare
|
1
|
0
|
0
|
1
|
0
|
1
|
LG-Ni 1000Ω Pt |
0
|
1
|
0
|
0
|
1
|
1
|
|
|
|
|
|
|
|
表6.热电偶模块的DIP开关设置参考下表:
RTD Type and Alpha¹
|
SW1
|
SW2
|
SW3
|
SW4
|
SW5
|
SW6
|
RTD Type and Alpha¹
|
SW1
|
SW2
|
SW3
|
SW4
|
SW5
|
SW6
|
100Ω Pt 0.003850 |
0
|
0
|
0
|
0
|
0
|
0
|
100Ω Pt 0.003902
|
1
|
0
|
0
|
0
|
0
|
0
|
200Ω Pt 0.003850
|
0
|
0
|
0
|
0
|
1
|
0
|
200Ω Pt 0.003902
|
1
|
0
|
0
|
0
|
1
|
0
|
500Ω Pt 0.003850
|
0
|
0
|
0
|
1
|
0
|
0
|
500Ω Pt 0.003902
|
1
|
0
|
0
|
1
|
0
|
0
|
1000Ω Pt 0.003850
|
0
|
0
|
0
|
1
|
1
|
0
|
1000Ω Pt 0.003902
|
1
|
0
|
0
|
1
|
1
|
0
|
100Ω Pt 0.003920
|
0
|
0
|
1
|
0
|
0
|
0
|
SPARE
|
1
|
0
|
1
|
0
|
0
|
0
|
200Ω Pt 0.003920
|
0
|
0
|
1
|
0
|
1
|
0
|
100Ω Ni 0.00672
|
1
|
0
|
1
|
0
|
1
|
0
|
500Ω Pt 0.003920
|
0
|
0
|
1
|
1
|
0
|
0
|
120Ω Ni 0.00672
|
1
|
0
|
1
|
1
|
0
|
0
|
1000Ω Pt 0.003920
|
0
|
0
|
1
|
1
|
1
|
0
|
1000Ω Ni 0.00672
|
1
|
0
|
1
|
1
|
1
|
0
|
100Ω Pt 0.00385055
|
0
|
1
|
0
|
0
|
0
|
0
|
100Ω Ni 0.006178
|
1
|
1
|
0
|
0
|
0
|
0
|
200Ω Pt 0.00385055
|
0
|
1
|
0
|
0
|
1
|
0
|
120Ω Ni 0.006178
|
1
|
1
|
0
|
0
|
1
|
0
|
500Ω Pt 0.00385055
|
0
|
1
|
0
|
1
|
0
|
0
|
1000Ω Ni 0.006178
|
1
|
1
|
0
|
1
|
0
|
0
|
1000Ω Pt 0.00385055
|
0
|
1
|
0
|
1
|
1
|
0
|
10000Ω Pt |
1
|
1
|
0
|
1
|
1
|
0
|
100Ω Pt 0.003916
|
0
|
1
|
1
|
0
|
0
|
0
|
10Ω Cu 0.004270
|
1
|
1
|
1
|
0
|
0
|
0
|
200Ω Pt 0.003916
|
0
|
1
|
1
|
0
|
1
|
0
|
150Ω FS |
1
|
1
|
1
|
0
|
1
|
0
|
500Ω Pt 0.003916
|
0
|
1
|
1
|
1
|
0
|
0
|
300Ω FS |
1
|
1
|
1
|
1
|
0
|
0
|
1000Ω Pt 0.003916
|
0
|
1
|
1
|
1
|
1
|
0
|
600Ω FS |
1
|
1
|
1
|
1
|
1
|
0
|
GOST 50Ω Pt |
0
|
0
|
0
|
0
|
1
|
1
|
GOST Cu 50Ω |
0
|
1
|
0
|
1
|
1
|
1
|
GOST 100Ω Pt |
0
|
0
|
0
|
1
|
0
|
1
|
GOST Cu 100Ω |
0
|
1
|
1
|
0
|
0
|
1
|
GOST 500Ω Pt |
0
|
0
|
0
|
1
|
1
|
1
|
GOST Cu 500Ω |
0
|
1
|
1
|
0
|
1
|
1
|
GOST 10Ω Pt |
0
|
0
|
1
|
0
|
0
|
1
|
GOST Cu 10Ω |
0
|
1
|
1
|
1
|
0
|
1
|
GOST 50Ω Pt |
0
|
0
|
1
|
0
|
1
|
1
|
GOST Cu 50Ω |
0
|
1
|
1
|
1
|
1
|
1
|
GOST 100Ω Pt |
0
|
0
|
1
|
1
|
0
|
1
|
GOST Cu 100Ω |
1
|
0
|
0
|
0
|
0
|
1
|
GOST 500Ω Pt |
0
|
0
|
1
|
1
|
1
|
1
|
GOST Cu 500Ω |
1
|
0
|
0
|
0
|
1
|
1
|
GOST 10Ω Pt |
0
|
1
|
0
|
0
|
0
|
1
|
Spare
|
1
|
0
|
0
|
1
|
0
|
1
|
LG-Ni 1000Ω Pt |
0
|
1
|
0
|
0
|
1
|
1
|
|
|
|
|
|
|
|
EM231的最后三位DIP开关有什么作用?
正如表1所示,没有作用。
什么是单极性、双极性?
双极性就是信号在变化的过程中要经过“零”,单极性不过零。由于模拟量转换为数字量是有符号整数,所以双极性信号对应的数值会有负数。
在S7-200中,单极性模拟量输入/输出信号的数值范围是 0 - 32000;双极性模拟量信号的数值范围是 -32000-+32000。
同一个模块的不同通道是否可以分别接电流和电压型输入信号?
可以分别按照电流和电压型信号的要求接线。但是DIP开关设置对整个模块的所有通道有效,在这种情况下,电流、电压信号的规格必须能设置为相同的DIP开关状态。如上面表1、表2中,0 - 5V和0 - 20mA信号具有相同的DIP设置状态,可以接入同一个模拟量模块的不同通道。