EN
Mitsubishi Electronics logo
Official user manual

Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD)

4 pages·205 KB·TV Converter Box·PDF·ENDEFRITNLJA
Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD)
Table of Contents 21 sections Contents · Guidelines · Note concerning the CE marking · 1. Introduction · … ShowHide
Page 2 of the Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD) user manual — BFM21
Page 2 · click to enlarge
Page 2

6. Buffer Memory (BFM)

By this function, unstable analog values can be converted into stable digital values.

BFM No.DescriptionInitial value •••Reserved #61CH1 addition data Setting range: -16,000 to 16,000 (valid while BFM #22 b0 is ON)K0 #62CH2 addition data Setting range: -16,000 to 16,000 (valid while BFM #22 b0 is ON)K0 #63CH3 addition data Setting range: -16,000 to 16,000 (valid while BFM #22 b0 is ON)K0 #64CH4 addition data Setting range: -16,000 to 16,000 (valid while BFM #22 b0 is ON)K0 •••Reserved #71CH1 lower limit error set value (valid while BFM #22 b1 is ON)Minimum digital value inside input range #72CH2 lower limit error set value (valid while BFM #22 b1 is ON)Minimum digital value inside input range #73CH3 lower limit error set value (valid while BFM #22 b1 is ON)Minimum digital value inside input range #74CH4 lower limit error set value (valid while BFM #22 b1 is ON)Minimum digital value inside input range •••Reserved #81CH1 upper limit error set value (valid while BFM #22 b1 is ON)Maximum digital value inside input range #82CH2 upper limit error set value (valid while BFM #22 b1 is ON)Maximum digital value inside input range #83CH3 upper limit error set value (valid while BFM #22Maximum digital value inside input b1 is ON)range #84CH4 upper limit error set value (valid while BFM #22Maximum digital b1 is ON)value inside input range •••Reserved #91CH1 sudden change detection set value Setting range: 1 to 50% of full scale (valid while BFM #22 b2 is ON)5% of full scale #92CH2 sudden change detection set value Setting range: 1 to 50% of full scale (valid while BFM #22 b2 is ON)5% of full scale #93CH3 sudden change detection set value Setting range: 1 to 50% of full scale (valid while BFM #22 b2 is ON)5% of full scale #94CH4 sudden change detection set value Setting range: 1 to 50% of full scale (valid while BFM #22 b2 is ON)5% of full scale •••Reserved #99Clear of upper and lower limit value error and sudden change detection errorK0 #100Reserved #101CH1 minimum value (valid while BFM #22 b3 is ON) #102CH2 minimum value (valid while BFM #22 b3 is ON) #103CH3 minimum value (valid while BFM #22 b3 is ON) #104CH4 minimum value (valid while BFM #22 b3 is ON) •••Reserved #109Minimum value resetK0 #110Reserved #111CH1 maximum value (valid while BFM #22 b3 is ON) #112CH2 maximum value (valid while BFM #22 b3 is ON) #113CH3 maximum value (valid while BFM #22 b3 is ON) #114CH4 maximum value (valid while BFM #22 b3 is ON) •••Reserved #119Maximum value resetK0 •••Reserved
BFM No.DescriptionInitial value #198Data history sampling time [Effective only for channels whose number of averaging times (BFM #2 to #5) is 1 and digital filter setting (BFM #6 to #9) is 0] Setting range: 0 to 30,000 msK0 #199Resets or stops data history. [Effective only for channels whose number of averaging times (BFM #2 to #5) is 1 and digital filter setting (BFM #6 to #9) is 0]K0 #200CH1 data history (1st value)Data history sampling is effective only for channels whose number of averaging times (BFM #2 to #5) is 1 and digital filter setting (BFM #6 to #9) is 0.K0 ••••••••• #1799CH4 data history (400th value)K0

Data transfer between the FX2NC-4AD and the PLC main unit is performed via buffer memories (hereafter referred to as "BFM") of the FX2NC-4AD. Each BFM consists of 1 word, 16 bits. BFM No. 0 to 1799 have assigned functionality, communication with these BFMs should be performed using TO/FROM instructions supplied by the PLC main unit. When the power is switched ON from OFF, the initial value is written to each BFM. Create a program for the PLC so that the desired contents are written to the BFMs every time the power of the PLC is turned ON. (The contents stored in BFM #0, #19, #22, #41 to #44 and #51 to #54 are held in the built-in EEPROM, and kept against power failure.)

Digital filter set value

The digital output value follows up the analog input value.

They are converted into stable digital output values.

The table below shows the relationship between the set value of BFM #6 to #9 and the operation.

6.1 Buffer Memories (BFM) lists

Set value < 0Digital filter function is invalid. Set value error occurs (BFM #29 b11 turns ON.). Set value = 0 1 ≤ Set value ≤ 1,600Digital filter function is invalid. Digital filter function is valid. 1,600 < Set valueDigital filter function is invalid. Set value error occurs (BFM #29 b11 turns ON.).
BFM No.DescriptionInitial value #0Specifies input mode of CH1 to CH4.H0000 #1Reserved #2Number of averaging times for CH1 Setting range: 1 to 4,095 timesK1 #3Number of averaging times for CH2 Setting range: 1 to 4,095 timesK1 #4Number of averaging times for CH3 Setting range: 1 to 4,095 timesK1 #5Number of averaging times for CH4 Setting range: 1 to 4,095 timesK1 #6CH1: Digital filter setting Set range: 0 to 1,600K0 #7CH2: Digital filter setting Set range: 0 to 1,600K0 #8CH3: Digital filter setting Set range: 0 to 1,600K0 #9CH4: Digital filter setting Set range: 0 to 1,600K0 #10CH1 data (immediate data or average data) #11CH2 data (immediate data or average data) #12CH3 data (immediate data or average data) #13CH4 data (immediate data or average data) •••Reserved #19Disables setting change of I/O characteristics (BFM #0, BFM #1, BFM #21) and convenient functions (BFM #22). Disables change: K2, Enables change: K1K1 #20Initializes functions. (Initializes functions at K1, then returns automatically to K0 after initialization is completed.)K0 #21Writes I/O characteristics. (Returns automatically to K0 after write of offset/gain value is finished.)K0 #22Sets convenient functions (data addition, upper/ lower limit value detection, sudden change detection and minimum/maximum value hold).K0 •••Reserved #26Upper/lower limit value error status (valid while BFM #22 b1 is ON)K0 #27A/D data sudden change detection status (valid while BFM #22 b2 is ON)K0 #28Scale over statusK0 #29Error statusK0 #30Model code (K2070)K2070 #31Reserved #32Operating time 0 to 64,800 (s) Subsequently, 64,800 is kept. Measurement starts when the power is turned on, and the measured value is reset when theK0 power is turned off. • ••Reserved #41CH1 offset data (mV or µA)K0 #42CH2 offset data (mV or µA)K0 #43CH3 offset data (mV or µA)K0 #44CH4 offset data (mV or µA)K0 •••Reserved #51CH1 gain data (mV or µA)K5000 #52CH2 gain data (mV or µA)K5000 #53CH3 gain data (mV or µA)K5000 #54CH4 gain data (mV or µA)K5000

6.2 Details of buffer memories

BFM #0: Specifies input mode. Specify the input mode of CH1 to CH4 by writing a numeric value to BFM #0. The input mode specification declares, each BFM expressed as a 4-digit hexadecimal code, and each channel No. is assigned to each digit. Specify a numeric value 0 to F in each digit for each channel. !=0: Voltage input mode (-10 to 10V → -32000 to 32000),

BFM #10 to BFM #13: Channel data The A/D conversion data for each channel is written to BFM #10 to #13. BFM #19: Disables setting change BFM #19 enables or disables the setting change of the I/O characteristics (BFM #0, #41 to #44, #51 to #54), the convenient functions (BFM #22).

BFM#0

H !!!!

CH1 CH2 CH3 CH4

K1: Enables change (factory default). K2: Disables change. BFM #20: Initializes functions BFM #20 initializes all data stored in BFM #0 to BFM #1799, and sets the FX2NC-4AD to factory default. By initialization, the input characteristics are reset to the values set at factory default (voltage input, offset value K0, gain value K5000).

  • resolution 0.32mV ! =1: Voltage input mode (-10 to 10V → -4000 to 4000), resolution 2.50mV ! =2: Voltage input mode (-10 to 10V → -10000 to 10000), resolution 1mV ! =3: Current input mode (4 to 20mA → 0 to 16000), resolution 1.25 µ A ! =4: Current input mode (4 to 20 mA → 0 to 4000), resolution 5.00 µ A ! =5: Current input mode (4mA to 20mA → 4000 to 20000), resolution 1.25 µ A ! =6: Current input mode (-20 to 20 mA → -16000 to 16000), resolution 1.25 µ A ! =7: Current input mode (-20 to 20 mA → -4000 to 4000), resolution 5.00 µ A ! =8: Current input mode (-20 to 20 mA → -20000 to 20000), resolution 1.25 µ A ! =9 to E:Unusable ! =F: Corresponding CH is not used.
  • The input characteristics are changed automatically according to the setting of BFM #0. (The input characteristics can be changed to independent values except when ! =2, 5, 8 is set in BFM #0 that disables all changes to the offset or gain. )
  • It takes approximately 5 seconds to change the input mode (to change each set value). Time interval of 5 seconds or more after changing the input mode until the write of each setting (TO instruction) is performed.
  • Setting "HFFFF" to allocate all channels as unusable is not allowed.
K0Normal K1: Executes initialization. (Writes K1, subsequently returns to K0

when initialization is completed.) BFM #21: Writes I/O characteristics Each channel No. is assigned to the lower 4 bits of BFM #21. When a bit is set to ON, the offset data (BFM #41 to BFM #44) and the gain data (BFM #51 to BFM #54) of the assigned channel No. are written to the built-in memory (EEPROM). Give the write command to two or more channels at a time. (When entering "HF", all channels are written to.) When the write is completed, BFM #21 subsequently returns to K0.

BFM21

b15, b14, b13, b12, b11, b10, b9, b8, b7, b6, b5, b4, b3, b2, b1, b0

CH4 CH3 CH2 CH1 Invalid

BFM #22: Sets convenient functions The functions described below are assigned to b0 to b3 of BFM #22. When a bit is set to ON, the assigned function becomes valid. When a bit is set to OFF, the assigned function becomes invalid. b0: Data addition function

  • BFM #2 to BFM #5: Number of averaging times (Make sure to set the number of averaging times to "1" when using the digital filer.) The allowable set range of the number of averaging times is 1 to 4,095. If the number of averaging times is set to "1", the immediate data (current value) is stored in BFM #10 to #13. Otherwise, BFM #10 to BFM #13 will be averaged depending on the value set in BFM #2 to BFM #5. If the number of averaging times is set to "0" or less, "0" is written. If the number of averaging times is set to "4,096" or more, "4096" is written. In either case, number of averaging times setting error (BFM #29 b10) occurs. The initial set value is "1". Average data update
  • When the number of averaging times (BFM #2 to BFM #5) is set to "400" or less, the average (BFM #10 to BFM #13) is updated every time the A/D conversion processing is performed. The update time is as follows: Average data update time = (A/D conversion time) x Number of channels
  • When the number of averaging times (BFM #2 to BFM #5) is set to "401" or more, the average (BFM #10 to BFM #13) is updated every time the A/D conversion is performed by as many as the set number of averaging times. The update time is as follows: Average data update time = (A/D conversion time) x Number of channels x Number of averaging times In either case above, until the number of A/D conversion times reaches the set number of averaging times for the first time, the average at each time point is stored in BFM #10 to BFM #13. BFM #6 to BFM #9: Digital filter setting (Effective only when the number of averaging times is set to "1") Setting BFM #6 to BFM #9 to "1" invokes, the digital filter which can be provided for each channel. If the fluctuation of the analog input value is less than the set value of BFM #6 to #9, the analog input value is converted into a stabilized digital output value. If the analog input value exceeds the set value, the proceeding digital conversion value will follow and replicate there values. The data is updated every "5ms x Number of channels", and stabilized by the last 20 data.

The data (BFM #10 to BFM #13), minimum/maximum value (BFM #101 to BFM #104, BFM #111 to BFM #114) and data history (BFM #200 to BFM #1799) of each channel is the measured value added by the addition data (BFM #61 to BFM #64). When using this function, enter the value added by the addition data (BFM #61 to BFM #64) to the lower limit value error set value (BFM #71 to BFM #74) and the upper limit value error set value (BFM #81 to BFM #84). The addition data (BFM #61 to BFM #64) is not added to the scale over data (BFM #28). b1: Upper/lower limit value detection function

When the A/D conversion data of each channel is outside the range of the lower limit value error set value (BFM #71 to BFM #74) to the upper limit value error set value (BFM #81 to BFM #84), the result is written to the upper/lower limit value error status (BFM #26). b2: Sudden change detection function

When the data (BFM #10 to BFM #13) of each channel is updated, if the difference between the previous value and the new value is larger than the sudden change detection set value (BFM #91 to BFM #94), the result is written to the sudden change detection status (BFM #27). b3: Minimum/maximum value hold function

The minimum value of the data (BFM #10 to BFM #13) of each channel is written to BFM #101 to BFM #104, and the maximum value is written to BFM #111 to BFM #114. BFM #26: Upper/lower limit error status The upper /lower limit value detection function (BFM#22 b1), writes detected errors to the corresponding bits in BFM#26 (see table). Upper and lower limit error status for the four channels is located in bit-pairs in the first 8bits of BFM#26. When the data (BFM #10 to BFM #13) of any channel is outside the range from the lower limit error value (BFM #71 to BFM #74) to the upper limit error value (BFM #81 to BFM #84), the corresponding bit turns ON. When a bit turns ON, it remains ON until it is reset by BFM #99 or the power is turned OFF.

Show 5 more labels / short text on this page
Analog · Analog input value · value · Digital output value · Time
Page 3 of the Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD) user manual — 6. Buffer Memory (BFM)
Page 3 · click to enlarge
Page 3

Even while an upper/lower limit value error is detected, the data (BFM #10 to BFM #13) of each channel continues to be updated. Bit assignment of BFM #26

BFM #71 to BFM #74: Lower limit, error set value BFM #81 to BFM #88: Upper limit, error set value When using the upper/lower limit value detection function (BFM #22 b1), write the lower limit value of each channel to BFM #71 to BFM #74 and the upper limit value of each channel to BFM #81 to BFM #84. When using the data addition function (BFM #22 b0), enter the value added by the addition data to BFM #61 to BFM #64. Setting range The setting range will vary depending on the setting of the input mode (BFM #0). The table below shows the setting range for each input mode. Enter the set value as a digital value.

Bit assignment of BFM #99

Bit No.AssignmentDescription b2Power error24V DC power is not correctly supplied. Check the wiring and supply voltage. b3Hardware errorFX2NC-4AD may have malfunctioned. Contact the nearest Mitsubishi Electric System Service center. b4A/D conversion value errorA/D conversion value is abnormal. Using the scale over data (BFM #28), check the channel in which the error has occurred. b5 b6BFM read/write disabledThis bit will be ON during the input characteristics change processing. While this bit is ON, correct A/D data will not read from or written to BFMs. b7 b8Set value error detectedThis bit will be ON while either b9 to b15 is ON. b9Input mode setting errorInput mode (BFM #0) is incorrectly set. Set it within the range from 0 to 8. b10Number of averaging times setting errorNumber of averaging times is incorrectly set. Set it within the range from 1 to 4,095. b11Digital filter setting errorThe digital filter setting is incorrect. Reset within the range of 0 to 1,600. b12Sudden change detection set value errorSudden change detection set value is incorrect. Set a correct value. b13Upper/lower limit set value errorUpper/lower limit set value is incorrect. Set a correct value. b14
Bit No.Description b0Clears lower limit error. b1Clears upper limit error. b2Clears sudden change detection error. b3 to b15Unusable
Bit No.Channel No.Description b0CH1Lower limit error b1Upper limit error b2CH2Lower limit error b3Upper limit error b4CH3Lower limit error b5Upper limit error b6CH4Lower limit error b7Upper limit error

BFM #101 to BFM #104: Minimum value BFM #111 to BFM #114: Maximum value When using the minimum/maximum value hold function (BFM #22 b3), the minimum value of the data (BFM #10 to BFM #13) of each channel is written to BFM #101 to BFM #104, and the maximum value is written to BFM #111 to BFM #114. When using the data addition function (BFM #22 b0), the minimum/ maximum measured value will be added to the addition data (BFM #61 to BFM #64). Initial value Minimum/maximum value hold function is not used:K0 Minimum/maximum value hold function is used: Digital value when the power is turned ON

Input mode (BFM #0)Setting rangeInitial value Lower limitUpper limit 0: Voltage input mode (-10 to 10 V → -32000 to 32000)-32768 to 32767-3276832767 1: Voltage input mode (-10 to 10 V → -4000 to 4000)-4096 to 4095-40964095 2: Voltage input mode (-10 to 10 V → -10000 to 10000)-10200 to 10200-1020010200 3: Current input mode (4 to 20 mA → 0 to 16000)-1 to 16383-116383 4: Current input mode (4 to 20 mA → 0 to 4000)-1 to 4095-14095 5: Current input mode (4 to 20 mA → 4000 to 20000)3999 to 20400399920400 6: Current input mode (-20 to 20 mA → -16000 to 16000)-16384 to 16383-1638416383 7: Current input mode (-20 to 20 mA → -4000 to 4000)-4096 to 4095-40964095 8: (C -2u 0rr e ton t 2 i 0n p mu At m →o d -2e 0 000 to 20000) -20400 to 20400 -20400 20400

BFM #27: A/D data sudden change detection status The sudden change detection function (BFM#22 b2) writes detected errors to the corresponding bits in BFM#27. The sudden change detection status for negative or positive changes is located in the first 8bits of BFM#27 in bit-pairs. When the data (BFM #10 to BFM #13) of each channel is updated, if the difference between the previous value and the new value is larger than the sudden change detection set value (BFM #91 to BFM #94), the corresponding bit in BFM #27 turns ON. At this time, when the new value is larger than the previous value, a bit for the + direction turns ON. when the new value is smaller than the previous value, a bit for the - direction turns ON. When a bit turns ON, it remains ON until it is reset by BFM #99 or the power is turned OFF. Even while a sudden change error is detected, the data (BFM #10 to BFM #13) of each channel continues to be updated. Bit assignment of BFM #27

BFM #109: Minimum value reset BFM #119: Maximum value reset When using the minimum/maximum value hold function (BFM #22 b3), BFM #109 clears the minimum value stored in BFM #101 to BFM #104, and BFM #119 clears the maximum value stored in BFM #111 to BFM #114. The channel No. that will be reset is assigned to each bit of BFM #109 and BFM #119. When a bit is set ON, minimum/maximum value of the assigned channel is cleared. (Setting two or more bits ON simultaneously is possible.) Bit assignment

Bit No.Channel No.Description b0 b1CH1Sudden change error in - direction Sudden change error in + direction b2CH2Sudden change error in - direction b3Sudden change error in + direction b4CH3Sudden change error in - direction b5Sudden change error in + direction b6CH4Sudden change error in - direction b7Sudden change error in + direction

b15 Addition data setting error Addition data is incorrectly set.

Bit No.b15 to b4b3b2b1b0 Channel No. (BFM No.)UnusableCH4 (#104)CH3 (#103)CH2 (#102)CH1 (#101) Bit No. b15 to b4 b3 b2 b1 b0 Channel No. (BFM No.)UnusableCH4 (#114)CH3 (#113)CH2 (#112)CH1 (#111)

Set it within range from -16,000 to 16,000.

BFM #30: Model code BFM #30 stores a fixed value of "K2070". BFM #32: Operating time BFM #32 stores the continuous operating time for the FX2NC-4AD. Measurement starts when the power is turned ON, and the measured value is reset when the power is turned OFF. The measurement range is from 0 to 64,800 (s). After that, 64,800 is kept. BFM #41 to BFM #44: Offset data BFM #51 to BFM #54: Gain data Offset data:Analog input value when the digital value is "0" Gain data :Analog input value when the digital value is as shown below (The

BFM #91 to BFM #94: Sudden change detection set value When using the sudden change detection function (BFM #22 b2), enter the set value to judge the sudden change. When the data (BFM #10 to BFM #13) of each channel is updated, if the difference between the previous value and the new value is larger than the sudden change detection set value (BFM #91 to BFM #94), the result is written to the sudden change detection status (BFM #27). Setting range The setting range will vary depending on the setting of the input mode (BFM #0). The table below shows the setting range for each input mode. Write the set value in a digital value.

BFM #198: Data history sampling time Set the data history sampling time. Setting range: 0 to 30,000 ms Sampling cycle

When the set value is "0" :1 ms x Number of effective channels When the set value is "1" or more:Set value (ms) x Number of effective

BFM #28: Scale over status The result of the analog input value for each individual channel that has exceeded the A/D conversion range will be written to BFM#28. Range in which A/D conversion is available:

digital value varies depending on the setting of the input mode.) Standard digital value for offset and gain in each input mode (A number in the input mode column indicates a value set in BFM #0.)

channels BFM #199: Resets or stops data history The data history reset function is assigned to the lower 4 bits of BFM #199. The data history stop function is assigned to the upper 4 bits of BFM #199. Data history reset function This function clears the sampled data history for each channel. The channel No. to be reset is assigned to each of the lower 4 bits of BFM #199. When a bit is set to ON, the data history (all contents from the 1st value to the 400th value) of the assigned channel is cleared. (The setting of two or more bits to ON simultaneously is possible.) When the clear operation is completed, each bit returns automatically to the OFF state. Assignment of lower 4 bits

Input mode (BFM #0)Setting rangeInitial value 0: Voltage input mode (-10 to 10 V → -32000 to 32000)1 to 327673200 1: Voltage input mode (-10 to 10 V → -4000 to 4000)1 to 4095400 2: Voltage input mode (-10 to 10 V → -10000 to 10000)1 to 100001000 3: Current input mode (4 to 20 mA → 0 to 16000)1 to 8191800 4: Current input mode (4 to 20 mA → 0 to 4000)1 to 2047200 5: Current input mode (4 to 20 mA → 4000 to 20000)1 to 8191800 6: Current input mode (-20 to 20 mA → -16000 to 16000)1 to 163831600 7: Current input mode (-20 to 20 mA → -4000 to 4000)1 to 4095400 8: Current input mode (-20 to 20 mA → -20000 to 20000)1 to 200002000
Voltage input modeCurrent input mode - 10.2V to 10.2V- 20.4mA to 20.4mA
Input mode (BFM #0)012345678 Standard offset value00-00-00- Standard gain value160002000-160004000-160004000-

A bit will remain ON unless it is reset from switching the Power OFF or overwriting the ON bit with an OFF bit via a TO instruction. Even while a scale over error is detected, the data (BFM #10 to BFM #13) of each channel continues to be updated. Bit assignment of BFM #28

  • Set the offset and gain data for each channel.
  • Write the set value in units of "mV" for voltage input or " µ A" for current input.
  • Do not change the input characteristics when ! = 2, 5, 8 is set in BFM #0. (Even if a numerical value is written, it is ignored.) Initial offset/gain value (Unit: mV for voltage input, µ A for current input)
Bit No.Channel No.Description b0CH1Scale over: Less than lower limit b1Scale over: More than upper limit b2CH2Scale over: Less than lower limit b3Scale over: More than upper limit b4CH3Scale over: Less than lower limit b5Scale over: More than upper limit b6 b7CH4Scale over: Less than lower limit Scale over: More than upper limit
Input mode (BFM #0)012345678 Initial offset value040000 Initial gain value500020000
Bit No.b7 to b4b3b2b1b0 Channel No.UnusableCH4CH3CH2CH1

Data history stop function This function will temporarily stop the data history for the individual channels. The channel No. to be temporarily stopped is assigned to each of the upper 4 bits of BFM #199. When a bit is set to ON, sampling of the data history of the assigned channel is temporarily stopped. (Setting two or more bits to ON at a time.) When a bit is set to OFF, sampling of the data history of the assigned channel restarts. Assignment of upper 4 bits

Voltage inputCurrent input Offset data-1000 to 9000 (mV)-20000 to 17000 (µA) Gain dataGain value - Offset value = 1,000 to 10,000 (mV)Gain value - Offset value = 3,000 to 30,000 (µA)

BFM #29: Error status Error information is assigned to each bit of BFM #29. Bit assignment of BFM #29

The actual effective input range is "-10 to 10 V" or "-20 to 20 mA".

BFM #99: Clears upper/lower limit value error and sudden change detection error The commands to clear the lower and upper limit value error and the sudden change detection error are assigned to the lower three bits of BFM #99. The flag of the corresponding error status (BFM #26, BFM #27) is reset for all channels simultaneously when a bit is set to ON. After the reset is finished, each bit of BFM #99 returns automatically to the OFF state. The setting of two or more clear commands to ON at the same time is possible.

BFM #61 to BFM #64: Addition data When using the data addition function (BFM #22 b0), data (BFM #10 to BFM #13), minimum/maximum value (BFM #101 to BFM #104, BFM #111 to BFM #114) and data history (BFM #200 to BFM #1799) of each channel becomes the measured value added by the addition data (BFM #61 to BFM #64). When using the data addition function, enter the value added by the addition data (BFM #61 to BFM #64) to the lower limit value error set value (BFM #71 to BFM #74) and the upper limit value error set value (BFM #81 to BFM #84). Setting range: -16,000 to 16,000

Bit No.b15 to b12b11b10b9b8 Channel No.UnusableCH4CH3CH2CH1
Bit No.AssignmentDescription b0Error detectedb0 is ON while either b2 to b4 is ON. b1

Setting range

Page 4 of the Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD) user manual — RST M0
Page 4 · click to enlarge
Page 4

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.

8. Example program

4. Current input, 4 to 20 mA, 0 to 4000
5. Current input, 4 to 20mA, 4,000 to 20,000

This section introduces an example program to read analog data from the FX2NC-4AD and connecting to digital data in the PLC. Condition

T0

FNC 78 FROM

Reads the CH1 data history (for 10 times) to D10 to D19.

K0 K200 D10 K10

System configuration:

Refreshes the watch dog timer.*1

The FX2NC-4AD is connected as a special function block nearest to the FX2NC Series PLC main unit (unit No. 0). Input mode:

FNC 07 WDT

Reads the CH2 data history (for 10 times) to D20 to D29. Refreshes the watch dog timer.*1 Reads the CH3 data history (for 10 times) to D30 to D39.

FNC 78 FROM

K0 K600 D20 K10

CH1 and CH2: Mode 0 (voltage input, -10 to 10 V → -32000 to 32000) 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:

FNC 07 WDT

FNC 78 FROM

Channel No.BFM No. 1st value 2nd value 3rd value 400th value CH1 CH2#200 #600#201 #601#202 #602 #599 #999 CH3 CH4#1000 #1400#1001 #1401#1002 #1402 #1399 #1799

Standard I/O characteristics (initial value) in each channel Convenient function: Upper/lower limit value detection function is used. Data history function:

K0 K1000 D30 K10

(mA) 0 4 20

(mA) 0 4 20

FNC 07 WDT

Refreshes the watch dog timer.*1

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:

6. Current input, -20 to 20 mA, -16000 to 16000
7. Current input, -20 to 20 mA, -4000 to 4000

Reads the CH4 data history (for 10 times) to D40 to D49.

K0 K1400 D40 K10 FNC 78 FROM

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

FNC 07 WDT

Refreshes the watch dog timer.*1

  • 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 instruction) after each FROM instruction.
channel. Y020 to Y037Output scale over status of each channel. Example program

END

The input mode setting will be kept by the EEPROM, therefore, continual channel settings is not needed after powering down. 1)

M8002

Specifies the input mode of CH1 to CH4.

*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.

7. Adjustment of I/O Characteristics

FNC 79 TO

K0 K0 H3300 K1

For factory default, the FX2NC-4AD has standard I/O characteristics in accordance with each input mode (BFM #0). 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.)

TO K50 M8000

Stand by for five seconds.

8. Current input, -20 to 20mA, -20,000 to 20,000

T0

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)

FNC 79 TO

P

K0 K22 H0002 K1

7.1 Standard I/O characteristics

FNC 78 FROM

K0 K10 D0 K4

The input mode of the standard I/O characteristics is abbreviated as shown below:

0. Voltage input, -10 to 10V, -32,000 to 32000 ➀ ➁ ➂ ➃ ➀ ➂

FNC 78 FROM

K0 K26 K4M0 K1

: Input mode set in BFM #0 : Analog input range

: Input mode : Digital output range

Reads the scale over status.(M20 to M35)

FNC 78 FROMK0K28K4M20K1 FNC 78 FROMK0K29D6K1 X001FNC 79 TO PK0K99H0003K1
0. Voltage input, -10 to 10 V, -32,000 to 32000
1. Voltage input, -10 to 10 V, -4000 to 4000

Reads the error status. (BFM #29 → D6)

Clears the upper/lower limit value error.

X002 Clear of scale over error

32000 Approx. 32640

4,000 Approx. 4,080

7.2 Adjustment of I/O characteristics

Approx.

Approx.

K0 K28 K0 K1 P FNC 79 TO

Clears the scale over error.

Adjust the I/O characteristics using the buffer memories in the FX2NC-4AD. Firstly, enter the input mode to BFM #0, then enter the offset data to BFM #41 to BFM #44, subsequently enter the gain data to BFM #51 to BFM #54. Update the offset data and the gain data for each channel using BFM #21. Example program (Adjustment of CH1, CH2 and CH4)

Y0 M0 Lower limit value error of CH1

(V)

(V)

Approx.

-10.2 V

Approx.

-10.2 V

Y1 M1 Upper limit value error of CH1

-32000 Approx. -32640

-4,000 Approx. -4,080

Outputs the upper/ lower limit value error status of each channel.

FNC 79 TO P

K0 K0 H1600 K1

Specifies the input mode of CH1 to CH4.

Y7 M7 Upper limit value error of CH4

2. Voltage input, -10 to 10V, -10,000 to 10,000
3. Current input, 4 to 20 mA, 0 to 16000

SET

M0

M0

TO K50 *1

Y20 M20 Scale over error of CH1 (lower limit value)

T0

FNC 79 TO P

Offset value of CH1 and CH2. Gain value of CH1 and CH2.

10,000 Approx. 10,200

K0 K41 K0 K2

Approx.

Y21 M21 Scale over error of CH1 (upper limit value)

FNC 79 TO P

K0 K51 K1250 K2

Outputs the scale over error status of each channel.

(V)

FNC 79 TOPK0K44K0K1

Offset value of CH4.

Approx.

-10.2 V

FNC 79 TO P

Y27 M27 Scale over error of CH8 (upper limit value)

-10,000 Approx. -10,200

K0 K54 K10000 K1

Gain value of CH4.

(mA) 0 4 20

FNC 79 TO P

K0 K21 H000F K1

Offset value and gain value of all channels at a time.

RST M0

*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 OFFICEMITSUBISHI DENKI BLDG MARUNOUTI TOKYO 100-8310 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

Show 35 more labels / short text on this page
Digital value · Digital value · 20,000 · 4,000 · 4,000 · Input current · Input current · Digital value · Digital value · 4,000 · Input current · Input current · (mA) · (mA) · Initial pulse · -4,000 · RUN monitor · 1) · Digital value · 20,000 · Input current · ➁ ➃ · (mA) · -20,000 · Digital value · Digital value · Input voltage · Input voltage · • • • · Operation start instruction · Digital value · Digital value · Input voltage · • • • · Input current

Ask about the Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD)

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD)

Be the first to ask — other owners or our team will answer.

Original document

Mitsubishi Electronics MELSEC FX2NC (FX2NC-4AD) manual PDF

4 pages·205 KB·TV Converter Box·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…