3
write 1 into the appropriate hexadecimal data bit to validate the setting and
thereby change the channel’s output characteristics. This command will clear
automatically after being executed correctly. The format of BFM#11 is
H×
4
×
3
×
2
×
1,
Where ×
1,
×
2,
×
3
and×
4
are the commands for input channel 1,
input channel 2, output channel 1, and output channel 2 respectively.
7
.
BFM#12 to BFM#27: channel gain and deviation settings, which are set
using two-point method. X0 and X1 represent the channel’s digital output and
input respectively, Y0 and Y1 represent the channel’s analog input and
output respectively, Y0 and Y1 are in mV or µA unit, each channel occupies 4
characters. For the convenience of user setting without affecting functions,
Y0 and Y1 are respectively fixed to the analog 0 and max value. They are
user unadjustable.
Note: If the channel input is current signal ( -20mA~20mA ), the channel
mode should be set to 1. As the channel’s internal measurement is based on
voltage signal, current signals should be converted into voltage signals
(-5V~5V) by the 250Ω resistor at the current input terminal of the channel
(refer to Figure 1-4). Y1 in the channel’s characteristics setting is still in mV
unit, i.e., 5000mV ( 20mA×250Ω = 5000mV ).
For how the change in X0, Y0, X1 and Y1 affects the channel characteristics,
please refer to
3 Setting Characteristics.
8. Status information of BFM#34 is shown in Table 2-5.
Table 2-5 Status information of BFM#34
Bit of BFM#34
ON
OFF
b0: error
b1 or b2 is ON, AD/DA conversion of all
channels stopped
No error
b1: deviation,
gain error
Channel characteristics setting error in
BFM
Deviation / gain
data normal
b2: power supply
failure
24Vdc power supply failed
Power supply
normal
b3: hardware
fault
AD/DA converter or other hardware faulty Hardware normal
b10: digital range
error
1. Digital output after AD conversion less
than –2048 or greater than +2047; 2.
Digital input for DA conversion outside
specified range
Digital input/output
value normal
b11: average
sampling times
setting error
Setting outside normal range (in this case,
the previous valid setting will be restored)
Setting within
normal range:
1~4096
9. Setting BFM#35 to 1 will restore all module settings to default values.
10. BFM#36: I/O characteristics setting change enable. Setting BFM#36 to 0
inhibits change in I/O characteristics settings. Setting it to 1 allows change in
I/O characteristics settings. The setting of BFM#36 will not change after
module restart following power restoration.
11. BFM#4094: module software release information, which can be read
using FROM command.
12. BFM#4095: module ID. ID of MC200-4AM is H3222. The user program in
PLC can use this ID to identify the module before transmitting/receiving data.
3 Setting Characteristics
3.1 Setting Input Channel Characteristics
The analog input channel characteristics of MC200-4AM is the linear
relationship between the channel’s analog input Y and digital output X. You
can set it. Each channel can be considered as the model shown in Figure 3-1.
As it is of linear characteristics, the channel characteristics can be defined by
just two points: P0 (Y0
,
X0) and P1 (Y1, X1), where X0 is the channel’s
digital output corresponding to analog input Y0, and X1 is the channel’s
digital output corresponding to analog input Y1.
X0
Y0
Y1
X
Y
P1
P0
Analog input
Channel
Channel model
Digital
output
Channel characteristics setting
X1
Y(mV)
Figure 3-1 Input channel characteristics of MC200-4AM
For the convenience of use without affecting functions, Y0 and Y1 are
respectively fixed to the analog 0 and max analog value in the current mode.
That is, in Figure 3-1, Y0 is 0, Y1 is the max analog input value in the current
mode; after changing the channel mode (BFM #0), Y0 and Y1 will change
automatically according to the mode, they are user unadjustable.
If you just set the channel mode (BFM#0) without changing the X0 and X1
values of each channel, the channel characteristics vs. mode should be as
shown in Figure 3-2. Characteristics A in Figure 3-2 shows the factory default
settings.
5000
2000
-2000
0
Y( mV)
X
-5000
100
2000
-2000
0
Y( mV)
X
-100
A. mode 0
(factory settings)
B. mode 1
10000
2000
-2000
0
Y( mV)
X
-10000
C. mode 2
Figure 3-2 Characteristics vs. mode with X0 and X1 unchanged
You can change the channel characteristics by changing the X0 and X1
values. Setting ranges of X0 and X1 are both from –10000 to 10000. If the
setting is outside this range, MC200-4AM will not accept it, and just maintain
the original valid setting. Figure 3-3 gives an example of characteristics
change for your reference.
5000
2000
- 3000
0
Y(mV)
X
-5000
10000
10000
-10000
0
Y(mV)
X
-10000
100
1000
0
Y(mV)
X
-100
P1
P0
P1
P0
-500
1000
P1
P0
500
C. mode 2, X0=500, X1=1000
Input 100mV, corresponding to
digital ouptut 1000;
Input 0mV, corresponding to digital
ouptut 500;
Input -100mV, corresponding to
digital ouptut 0;
A. mode 0, X0=0, X1=10000
Input 10V, corresponding to
digital ouptut 10000;
Input 0V, corresponding to
digital ouptut 0;
Input -10V, corresponding to
digital ouptut -10000;
B. mode 1, X0=-500, X1=2000
Input 5V (or 20mA), corresponding to
digital ouptut 2000;
Input 1V(or 4mA), corresponding to
digital ouptut 0;
Input -5V(or -20mA), corresponding to
digital ouptut -3000;
Figure 3-3 Example of input channel characteristics change
3.2 Setting Output Channel Characteristics
The analog output channel characteristic of MC200-4AM is the linear
relationship between the channel’s analog output Y and digital input X, which
can be set by the user. Each channel can be considered as the model shown
in Figure 3-4. As it is of linear characteristics, the channel characteristics can
be defined by just two points: P0 (Y0, X0) and P1 (Y1, X1), where X0 is the
channel’s digital input corresponding to the analog output Y0, and X1 is the
channel’s digital input corresponding to the analog output Y1.
Digital input
X0
Y0
y
x
P1
P0
Channel
Channel model
Analog
output
Channel characteristics setting
X1
Y(mV&mA)
Y1
X
Figure 3-4 Output channel characteristics
For the convenience of use without affecting functions, the values of Y0 and
Y1 are respectively fixed to the analog 0 and max analog value in the current
mode. That is, in Figure 3-4, Y0 is 0, and Y1 is the max analog output value in
the current mode. After changing the channel mode (BFM #0), Y0 and Y1 will
change automatically according to the mode. They are user unadjustable.
If you just set the channel mode (BFM#0) without changing the X0 and X1
values of each channel, the channel characteristics vs. mode are shown in
Figure 3-5. Characteristics A in Figure 3-1 shows the factory default settings.
20000
2000
-2000
0
Y(
μ
A)
X
10000
2000
-2000
0
Y(mV)
X
-10000
20000
2000
-2000
0
Y(
μ
A)
X
4000
-500
C. mode 2: 4 ~ 20 mA
A. mode 0: -10V ~ 10V
(factory settings)
B. mode 1: 0 ~ 20 mA
Figure 3-5 Characteristics vs. mode with X0 and X1 unchanged
You can change the characteristics by changing the X0 and X1 values.
Setting range of X0 and X1 is from –10000 to 10000. If the setting is outside
this range, MC200-4AM will not accept it, and will just maintain the original
valid setting. Figure 3-6 gives an example of characteristics change for your