BFM #200 to BFM #1799: Data history
The A/D conversion value of each channel is sampled, and written to the BFMs shown below. The table below shows the assignment between the channel No. and the BFM No. Data is stored in ascending order of the BFM No.
Up to 400 data history items are written for each channel. When the number of history items exceeds 400, the data is overwritten starting from the smallest BFM No.
The data history function is valid only for channels whose number of averaging times (BFM #2 to #5) is set to "1" and digital filter setting (BFM #6 to #9) is set to "0".
Assignment of channel No. and BFM No.
|
|
|
|
|
|
Channel |
|
| BFM No. |
|
|
No. | 1st value | 2nd value | 3rd value | • • • • • | 400th value |
| |||||
CH1 | #200 | #201 | #202 | • • • • • | #599 |
|
|
|
|
|
|
CH2 | #600 | #601 | #602 | • • • • • | #999 |
|
|
|
|
|
|
CH3 | #1000 | #1001 | #1002 | • • • • • | #1399 |
|
|
|
|
|
|
CH4 | #1400 | #1401 | #1402 | • • • • • | #1799 |
|
|
|
|
|
|
|
|
|
|
|
|
• If a considerable amount of data history is read from the PLC main unit |
using a FROM instruction, a watch dog timer error occurs in the PLC |
main unit. |
In such a case, divide the required data history using multiple FROM |
instructions, and insert the WDT instruction (watch dog timer refresh |
4.Current input, 4 to 20 mA, 0 to 4000
Digital value
4,000
0 4 | 20 Input current |
| (mA) |
6.Current input,
Digital value
16000
Input
current
(mA)
5.Current input, 4 to 20mA, 4,000 to 20,000
Digital value
20,000
4,000
0 4 | 20 Input current |
| (mA) |
7.Current input,
Digital value
4,000
Input
current
(mA)
8.Example program
This section introduces an example program to read analog data from the
Condition
System configuration:
The
Input mode:
CH1 and CH2: Mode 0 (voltage input,
CH3 and CH4: Mode 3 (current input, 4 to 20 mA → 0 to 16000) Number of averaging times: 1 (initial value) in each channel
I/O characteristics:
Standard I/O characteristics (initial value) in each channel Convenient function: Upper/lower limit value detection function is used.
Data history function:
Used while sampling time is set to 0ms (initial value).
CH1 to CH4: Sampling time = 1ms ⋅ 4 (Number of effective channels) = 4ms
I/O assignment:
X001 | : Clears the upper/lower limit value error. |
X002 | : Clears the scale over error. |
Y000 to Y017: Output the upper/lower limit value error status of each channel.
Y020 to Y037: Output scale over status of each channel.
Example program
T0 |
|
|
|
|
| Reads the CH1 data | |||
|
|
|
| FNC 78 | K0 | K200 | D10 | K10 | history (for 10 times) to |
|
|
|
| FROM | |||||
|
|
|
|
|
|
|
|
| D10 to D19. |
|
|
|
|
|
|
|
|
| Refreshes the watch |
|
|
|
| FNC 07 |
|
|
|
| |
|
|
|
| WDT |
|
|
|
| dog timer.*1 |
|
|
|
|
|
|
|
|
| Reads the CH2 data |
|
|
|
| FNC 78 | K0 | K600 | D20 | K10 | history (for 10 times) to |
|
|
|
| FROM |
|
|
|
| D20 to D29. |
|
|
|
|
|
|
|
|
| |
|
|
|
| FNC 07 |
|
|
|
| Refreshes the watch |
|
|
|
| WDT |
|
|
|
| dog timer.*1 |
|
|
|
|
|
|
|
|
| Reads the CH3 data |
|
|
|
| FNC 78 | K0 | K1000 | D30 | K10 | history (for 10 times) to |
|
|
|
| FROM | |||||
|
|
|
|
|
|
|
| D30 to D39. | |
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
| Refreshes the watch |
|
|
|
| FNC 07 |
|
|
|
| |
|
|
|
| WDT |
|
|
|
| dog timer.*1 |
|
|
|
|
|
|
|
|
| Reads the CH4 data |
|
|
|
| FNC 78 | K0 | K1400 | D40 | K10 | history (for 10 times) to |
|
|
|
| FROM |
|
|
|
| D40 to D49. |
|
|
|
|
|
|
|
|
| |
|
|
|
| FNC 07 |
|
|
|
| Refreshes the watch |
|
|
|
| WDT |
|
|
|
| dog timer.*1 |
END
1)The input mode setting will be kept by the EEPROM, therefore, continual channel settings is not needed after powering down.
instruction) after each FROM instruction. |
7.Adjustment of I/O Characteristics
For factory default, the
In the voltage and current input mode, adjust the standard I/O characteristics for each channel. (Do not change the input characteristics when 2, 5, 8 is set in BEM #0.)
7.1 Standard I/O characteristics
The input mode of the standard I/O characteristics is abbreviated as shown below:
0.Voltage input,
|
| ➁ |
|
|
| ➃ |
| ||
➀ |
| ➂ |
| ||||||
➀: Input mode set in BFM #0 |
| ➁ | : Input mode | ||||||
➂: Analog input range |
| ➃ | : Digital output range | ||||||
0. Voltage input, |
| 1. Voltage input, | |||||||
|
|
|
|
| |||||
|
|
| Digital value |
|
|
| Digital value |
0 20
8.Current input,
Digital value
20,000
Input
current
(mA)
0 20
0 20
Initial pulse
M8002 |
|
|
|
|
|
|
|
| |||
|
|
|
|
| FNC 79 | K0 | K0 | H3300 | K1 | ||
|
|
|
|
| TO |
|
| ||||
RUN monitor |
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
| ||||
M8000 |
| TO |
|
|
|
|
|
| |||
|
|
|
|
|
|
| K50 |
|
|
| |
T0 |
|
|
|
|
|
|
|
| |||
|
|
|
|
| FNC 79 | K0 | K22 | H0002 | K1 | ||
|
|
|
|
| TO | P |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| FNC 78 | K0 | K10 | D0 | K4 | ||
|
|
|
|
| FROM | ||||||
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| FNC 78 | K0 | K26 | K4M0 | K1 | ||
|
|
|
|
| FROM | ||||||
|
|
|
|
|
|
|
|
| |||
Clear of |
|
|
|
|
|
|
|
| |||
|
| FNC 78 | K0 | K28 | K4M20 | K1 | |||||
upper/lower |
|
| FROM | ||||||||
|
|
|
|
|
| ||||||
limit value |
|
|
|
|
|
|
|
|
| ||
error |
|
| FNC 78 | K0 | K29 | D6 | K1 | ||||
|
| FROM | |||||||||
X001 |
|
|
|
|
|
|
|
| |||
| FNC 79 | K0 | K99 | H0003 | K1 | ||||||
|
|
|
|
| TO | P |
| ||||
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
Clear of scale over error |
|
|
|
Specifies the input mode of CH1 to
CH4.1)
Stand by for five seconds.
Enables the upper/ lower limit value detection function.
Reads the channel data from CH1 to CH4.
(CH1 → D0, CH2 → D1, ..... CH4 → D3)
Reads the upper/lower limit value error status. (M0 to M15)
Reads the scale over status.(M20 to M35)
Reads the error status. (BFM #29 → D6)
Clears the upper/lower limit value error.
*1 When multiple data history items are read, the scan time of the PLC becomes longer.
In the FX2NC Series PLC, when the scan time exceeds 200 ms, the CPU error indicator lamp lights and the PLC stops.
When reading many data history items, divide data history items to be read using two or more FROM instructions, then insert the WDT (watch dog timer refresh) instruction between FROM instructions.
Approx. 32640 |
|
|
| Approx. 4,080 |
|
|
| |||
| Approx. 10.2 V |
|
|
| ||||||
| 32000 |
|
|
| 4,000 |
| Approx. 10.2 V | |||
Input |
|
| Input |
|
| |||||
voltage |
| voltage |
| |||||||
(V) |
|
|
| (V) |
|
|
|
| ||
Approx. | 10.2V | 10 |
|
| Approx. 10.2V |
| 10 |
|
| |
|
|
|
|
|
|
|
7.2 Adjustment of I/O characteristics
Adjust the I/O characteristics using the buffer memories in the
Update the offset data and the gain data for each channel using BFM #21.
Example program (Adjustment of CH1, CH2 and CH4)
X002 | FNC 79 | K0 | K28 | K0 | K1 |
| TO P | ||||
|
|
|
|
| |
Lower limit value error of CH1 |
|
|
| ||
M0 |
|
|
|
| Y0 |
|
|
|
|
| |
Upper limit value error of CH1 |
|
|
| ||
M1 |
|
|
|
|
|
Clears the scale over error.
- |
|
|
| - |
|
|
|
|
| ||||||||||
|
|
|
|
|
| Approx. |
|
|
|
|
|
|
| Approx. | |||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
2. Voltage input, | 3. Current input, 4 to 20 mA, | ||||||||||||||||||
|
|
|
|
| 0 to 16000 |
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
| Digital value |
| Digital value |
|
|
|
| ||||||||
| Approx. 10,200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
| Approx. 10.2 V |
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
| 10,000 |
|
|
|
|
|
|
|
|
|
|
|
| ||
| Input |
|
|
| 16000 |
|
|
|
|
|
|
|
| ||||||
voltage |
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
| (V) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
| Approx. |
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
| Approx. |
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
| 0 4 | 20 Input current | |||||||||
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| (mA) | ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
X000 |
|
|
|
|
|
|
| |||
|
|
|
| FNC 79 | K0 | K0 | H1600 | K1 | ||
|
|
|
| TO | P |
| ||||
Operation |
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
| |||
start |
|
|
|
|
|
|
|
|
| |
| SET | M0 |
|
|
| |||||
instruction |
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
| ||
M0 |
|
| TO | K50 *1 |
|
|
| |||
T0 |
|
|
|
|
|
|
| |||
|
|
|
| FNC 79 | K0 | K41 | K0 | K2 | ||
|
|
|
| TO | P |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| FNC 79 | K0 | K51 | K1250 | K2 | ||
|
|
|
| TO | P |
| ||||
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| FNC 79 | K0 | K44 | K0 | K1 | ||
|
|
|
| TO | P |
| ||||
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| FNC 79 | K0 | K54 | K10000 | K1 | ||
|
|
|
| TO | P |
| ||||
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| FNC 79 | K0 | K21 | H000F | K1 | ||
|
|
|
| TO | P |
| ||||
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RST | M0 |
|
|
| ||
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
Specifies the input mode of CH1 to CH4.
Offset value of CH1 and CH2.
Gain value of CH1 and CH2.
Offset value of CH4.
Gain value of CH4.
Offset value and gain value of all channels at a time.
Y1 |
• • • |
Upper limit value error of CH4 |
M7 |
Y7 |
Scale over error of CH1 (lower limit value) |
M20 |
Y20 |
Scale over error of CH1 (upper limit value) |
M21 |
Y21 |
• • • |
Scale over error of CH8 (upper limit value) M27
Y27
Outputs the upper/ lower limit value error status of each channel.
Outputs the scale over error status of each channel.
*1 It takes approximately 5 seconds to change the input mode (BFM #0) (to change each set value).
Assure that a time interval of 5 seconds or more is held after a change of the input mode until execution of write of each setting (TO instruction).
•The I/O characteristics can be written (BFM #21) to either channel, or two or more channels simultaneously.
HEAD OFFICE | : | MITSUBISHI DENKI BLDG MARUNOUTI TOKYO |
HIMEJI WORKS | : | 840, CHIYODA CHO, HIMEJI, JAPAN |
|
|
|
When exported from Japan, this manual does not require application to the Ministry of Economy,
Trade and Industry for service transaction permission.
Specifications are subject to change without notice