Honeywell 2MLF-AC4H Analog Input Module
Product Information
Specifications
- Product: Analog Input Module
- Model: 2MLF-AC4H
- User’s Guide: ML200-AI R230 6/23
- Release: 230
- Manufacturer: Honeywell Process Solutions
- Confidentiality: Honeywell Confidential & Proprietary
- Copyright: Copyright 2009 by Honeywell International Inc.
About This Document
This document provides instructions on how to install and configure the 2MLF-AC4H Analog Input Module. It also includes information on the Analog to Digital voltage and current converters.
Contact Information
If you have any questions or need support, you can contact Honeywell at the following telephone numbers:
- United States and Canada: 1-800-822-7673
- Europe: +32-2-728-2704
- Pacific: 1300-300-4822 (toll free within Australia) or +61-8-9362-9559 (outside Australia)
- India: +91-20-2682-2458
- Korea: +82-2-799-6317
- People’s Republic of China: +86-10-8458-3280 ext. 361
- Singapore: +65-6580-3500
- Taiwan: +886-7-323-5900
- Japan: +81-3-5440-1303
- Elsewhere: Call your nearest Honeywell office
Symbol Definitions
Symbol | Definition |
---|---|
ATTENTION: | Identifies information that requires special consideration. |
CAUTION: | Indicates a potential hazard or risk that may result in minor or moderate injury. |
Product Usage Instructions
Installation
- Before installation, ensure that power to the system is turned off.
- Locate an available slot in the system rack to install the Analog Input Module.
- Insert the module into the slot, making sure it is securely seated.
- Connect the necessary cables to the module.
- Turn on the power and verify that the module is functioning properly.
Configuration
- Access the configuration menu on the system interface.
- Select the Analog Input Module from the list of available modules.
- Configure the input channels according to your requirements (voltage or current).
- Save the configuration settings and exit the menu.
Troubleshooting
If you encounter any issues with the Analog Input Module, refer to the troubleshooting section of the User’s Guide or contact Honeywell support for assistance.
Maintenance
Regularly inspect the Analog Input Module for any signs of damage or wear. Clean the module if necessary. Follow the guidelines provided in the User’s Guide for proper maintenance procedures.
Safety Precautions
- Always follow proper safety procedures when working with electrical equipment.
- Ensure that power to the system is turned off before installing or removing the module.
- Avoid touching any exposed electrical components.
- Refer to the User’s Guide for additional safety precautions specific to the Analog Input Module.
FAQ
Q: Where can I find additional reference material?
A: You can refer to the SoftMaster User’s Guide for additional information.
Q: How can I access Honeywell’s web sites?
A: You can visit the following web addresses:
- Honeywell Organization Corporate Process Solutions: http://www.honeywell.com
- Honeywell Process Solutions: http://process.honeywell.com/
Honeywell Process Solutions
Analog Input Module
2MLF-AC4H
User’s Guide
ML200-AI R230 6/23
Release 230
Honeywell Confidential & Proprietary This work contains valuable, confidential, and proprietary information. Disclosure, use or reproduction outside of Honeywell Inc. is prohibited except as authorized in writing. This unpublished work is protected by the laws of the United States and other countries.
Notices and Trademarks
Copyright 2009 by Honeywell International Inc. Release 230 June, 2023
While this information is presented in good faith and believed to be accurate, Honeywell disclaims the implied warranties of merchantability and fitness for a particular purpose and makes no express warranties except as may be stated in its written agreement with and for its customers.
In no event is Honeywell liable to anyone for any indirect, special or consequential damages. The information and specifications in this document are subject to change without notice.
Honeywell, PlantScape, Experion PKS, and TotalPlant are registered trademarks of Honeywell International Inc. Other brand or product names are trademarks of their respective owners.
Honeywell International Process Solutions
2500 West Union Hills Phoenix, AZ 85027 1-800 343-0228
2
Analog Input Module 2MLF-AC4H User’s Guide
R230
Honeywell Confidential & Proprietary
6/23
About This Document
This document describes how to install and configure the 2MLF-AV8A and AC8A; Analog to digital voltage and current converters.
Release Information
Document Name 2MLF-AC4H User’s Guide
Document ID
ML200-HART
Release Number
120
Publication Date
6/09
References
The following list identifies all documents that may be sources of reference for material discussed in this publication.
SoftMaster User’s Guide
Document Title
Contacts
World Wide Web The following Honeywell web sites may be of interest to Process Solution customers.
Honeywell Organization Corporate Process Solutions
WWW Address (URL) http://www.honeywell.com http:/process.honeywell.com/
R230
Analog Input Module 2MLF-AC4H User’s Guide
3
6/23
Honeywell Confidential & Proprietary
Contacts
Telephone Contact us by telephone at the numbers listed below.
Location United States and Canada Europe Pacific
India
Korea
People’s Republic of China Singapore
Taiwan
Japan
Elsewhere
Organization
Honeywell IAC Solution Support Center Honeywell TAC-EMEA Honeywell Global TAC Pacific
Honeywell Global TAC India Honeywell Global TAC Korea Honeywell Global TAC China
Phone 1-800-822-7673
+32-2-728-2704 1300-300-4822 (toll free within Australia) +61-8-9362-9559 (outside Australia) +91-20-2682-2458
+82-2-799-6317
+86-10-8458-3280 ext. 361
Honeywell Global TAC South East Asia
Honeywell Global TAC Taiwan
Honeywell Global TAC Japan
Call your nearest Honeywell office.
+65-6580-3500 +886-7-323-5900 +81-3-5440-1303
Analog Input Module 2MLF-AC4H User’s Guide
Honeywell Confidential & Proprietary
Symbol Definitions
Symbol Definitions
The following table lists those symbols used in this document to denote certain conditions.
Symbol
Definition
ATTENTION: Identifies information that requires special consideration.
CAUTION
TIP: Identifies advice or hints for the user, often in terms of performing a task.
REFERENCE -EXTERNAL: Identifies an additional source of information outside of the bookset.
REFERENCE – INTERNAL: Identifies an additional source of information within the bookset.
Indicates a situation which, if not avoided, may result in equipment or work (data) on the system being damaged or lost, or may result in the inability to properly operate the process.
CAUTION: Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury. It may also be used to alert against unsafe practices.
CAUTION symbol on the equipment refers the user to the product manual for additional information. The symbol appears next to required information in the manual.
WARNING: Indicates a potentially hazardous situation, which, if not avoided, could result in serious injury or death.
WARNING symbol on the equipment refers the user to the product manual for additional information. The symbol appears next to required information in the manual.
WARNING, Risk of electrical shock: Potential shock hazard where HAZARDOUS LIVE voltages greater than 30 Vrms, 42.4 Vpeak, or 60 VDC may be accessible.
R230
Analog Input Module 2MLF-AC4H User’s Guide
5
6/23
Honeywell Confidential & Proprietary
Symbol Definitions
Symbol
Definition
ESD HAZARD: Danger of an electro-static discharge to which equipment may be sensitive. Observe precautions for handling electrostatic sensitive devices.
Protective Earth (PE) terminal: Provided for connection of the protective earth (green or green/yellow) supply system conductor.
Functional earth terminal: Used for non-safety purposes such as noise immunity improvement. NOTE: This connection shall be bonded to Protective Earth at the source of supply in accordance with national local electrical code requirements.
Earth Ground: Functional earth connection. NOTE: This connection shall be bonded to Protective Earth at the source of supply in accordance with national and local electrical code requirements.
Chassis Ground: Identifies a connection to the chassis or frame of the equipment shall be bonded to Protective Earth at the source of supply in accordance with national and local electrical code requirements.
6
Analog Input Module 2MLF-AC4H User’s Guide
R230
Honeywell Confidential & Proprietary
Chapter 1 Introduction
This instruction describes the dimension, handling and programming methods of HART analog input module (2MLF-AC4H) that can be used by combining with 2MLK/I/R PLC Series CPU module. Hereinafter, 2MLF-AC4H is referred to HART analog input module. This module is used to convert analog signal (current input) from PLC’s external device to signed 16-bit binary data of digital value and supports HART (Highway Addressable Remote Transducer) protocol used in many process field devices.
Characteristics
(1) It supports HART protocol In the input range of 4 ~ 20mA, bi-directional digital communication is available by using analog signal wiring. If analog wiring is currently used, there is no need to add wiring for HART communication (HART communication is not supported in the range of 0 ~ 20mA)
(2) High resolution of 1/64000 High resolution digital value can be assured by 1/64000.
(3) High accuracy High conversion accuracy of ±0.1 % (ambient temperature of 25 ) is available. Temperature coefficient is high accuracy as ±0.25%.
(4) Operation parameters setting / monitoring Operation parameters setting are available now by means of [I/O Parameters Setting] for which user interface is reinforced to increase user’s convenience. With [I/O Parameters Setting] used, the sequence program can be reduced. In addition, through [Special Module Monitoring] function, A/D conversion value can be easily monitored.
(5) Various formats of digital output data provided 3 formats of digital output data are available as specified below; Signed Value: -32000 ~ 32000 Precise Value: Refer to Chapter 2.2 Display based on analog input range. Percentile Value: 0 ~ 10000
(6) Input disconnection detection function This function is used to detect the disconnection of input circuit when 4 ~ 20 mA of analog input signal range is used.
1-1
Chapter 2 Specifications
Chapter 2 Specifications
2.1 General Specifications
General specifications of 2MLK/I/R series are as specified in Table 2.1.
No.
Item
1
Operating temp.
2 Storage temp.
[Table 2.1] General Specifications Specifications 0+65-25+75
Related standards –
3
Operating humidity
595%RH (Non-condensing)
–
4
Storage humidity
595%RH (Non-condensing)
–
For discontinuous vibration
–
Frequency Acceleration Amplitude
Number
5f< 8.4
–
3.5mm
8.4f150 9.8m/s (1G)
–
5
Vibration
For continuous vibration
Each 10 times in X,Y,Z
IEC61131-2
Frequency Acceleration Amplitude
directions
5f< 8.4
–
1.75mm
8.4f150 4.9m/s (0.5G)
–
* Max. impact acceleration: 147 (15G)
6
Shocks
* Authorized time: 11 * Pulse wave : Sign half-wave pulse
(Each 3 times in X,Y,Z directions)
Square wave impulse noise
AC: ±1,500V DC: ±900V
IEC61131-2 ML standard
Electrostatic discharging
Voltage : 4kV (contact discharging)
IEC61131-2 IEC61000-4-2
7
Noise
Radiated electromagnetic field noise
80 ~ 1000MHz, 10 V/m
Fast Transient
/burst noise
Class Voltage
Power module
2kV
Digital/Analog I/O, communication interface
1kV
8
Ambient conditions
Free from corrosive gasses and excessive dust
9
Operating height
Up to 2000m
IEC61131-2, IEC61000-4-3
IEC61131-2 IEC61000-4-4
–
–
10
Pollution degree
Less than equal to 2
–
11
Cooling
Air-cooling
–
Notes
(1) IEC (International Electrotechnical Commission): An international nongovernmental organization which promotes internationally cooperated standardization in electric/electronic fields publishes international standards and manages applicable estimation system related with.
(2) Pollution level: An index indicating pollution level of the operating environment which decides insulation performance of the devices. For instance, Pollution level 2 indicates the state generally that only non-conductive pollution occurs. However, this state contains temporary conduction due to dew produced.
Performance Specifications
Performance specifications of HART analog input module is specified in Table 2.2. [Table 2.2] Performance Specifications
Item
Specifications
No. of Channels
Analog input range
Analog input range setting
4 channels
DC 4 20 mA DC 0 20 mA (Input Resistance: 250 )
Analog input range can be selected through user program or [I/O parameter]. Respective input ranges can be set based on channels.
Digital output
Analog input
4 ~ 20
0 ~ 20
Digital output
Signed Value
-32000 ~ 32000
Precise Value
4000 ~ 20000
0 ~ 20000
Percentile Value
0 ~ 10000
Format of digital output data can be set through user program or [I/O Parameter setting] respectively based on channels.
Analog input range
Resolution(1/64000)
Max. resolution
4 ~ 20
250
0 ~ 20
312.5
Accuracy
Conversion speed
Absolute Max. input Analog
input points Isolation
specification Terminal connected
I/O points occupied HART
communication method
Internal-consumed current Weight
±0.1% or less (when ambient temperature is 25 ) ±0.25% or less (when ambient temperature is 0 ~ 55 )
Maximum of 100ms / 4 channels Maximum of ±30
4 channels/1 module
Photo-coupler isolation between input terminal and PLC power (no isolation between channels) 18-point terminal
Fixed type: 64 points, Non fixed type: 16 points
Monodrop only Primary master only
DC 5 V: 340
145g
Notes
(1) When Analog Input Module is made at factory, Offset/Gain value about analog input range is fixed and you can’t change them.
(2) Offset Value: Analog input value of which digital output value becomes -32000 when you set digital output type as Unsigned Value
(3) Gain Value: Analog input value of which digital output value becomes 32000 when you set digital output type as Unsigned Value
(4) HART communication is available when input rage set to 4~20 .
Part names and Functions
Respective designations of the parts are as described below.
Chapter 2 Specifications
No.
Description
RUN LED
Display the operation status of 2MLF-AC4H
On: In normal operation
Flickering: Error occurs (Refer to 9.1 for more details)
Off: DC 5V disconnected or 2MLF-AC4H module error
ALM LED
Display the alarm status of 2MLF-AC4H
Flickering: Alarm detected(Process alarm, rate of change alarm set by
SoftMaster) OFF: In normal operation
Terminal
Analog input terminal, whose respective channels can be connected with
external devices.
2-3
Chapter 2 Specifications
2.4 Basic Characteristics of HART Analog Module
2.4.1 Summary
HART analog input module is a product that can use HART communication along with analog conversion. HART analog input module supports interface for communication by being connected with HART field device. Communication data provided by HART field device can be monitored via HART analog input module and status of field devices can be also diagnosed.
(1) Advantage and Purpose of HART Communication (a) Additional wiring for communication is not needed(Communication by using 4~20mA wiring of analog module) (b) Additional measurement information through digital communication (c) Low power consumption (d) Various and rich field devices that support HART communication (e) Display of field device’s information, maintenance, diagnosis
(2) HART Communication Composition HART communication consists of masters and slaves and up to two masters can be connected. PLC HART analog input module is connected as the primary master device and communicates with field devices-slaves. A communication device is connected as the secondary master device to diagnose field devices and set its slave’s parameters.
Smart mass flow meter provides flow’s field measuring values with the flow meter’s current signal. Along with signal current indicating flow, it sends additional measurement information measured by the flow meter to HART communication. Up to four variables are provided. For example, flow as the Primary Value (PV), stop pressure as the Secondary Value(SV), temperature as the Tertiary Value(TV) and current signal’s digital value as the Quaternary Value(QV) are used as measurement information. (3) Multidrop Multidrop method consists of only one pair of wiring and all control values are transmitted in digital ones. All field devices have polling addresses and the current flow in each device is fixed to the minimum value (4 mA). Notes – Multidrop method is not supported on HART analog input and output module.
2-4
Chapter 2 Specifications
2.4.2 RT Operation
(1) HART signal The figure below illustrates HART signals whose frequency is modulated to analog signal. In this figure, HART signal is shown as two kinds of signals that have frequency of 1,200 and 2,200 . These two kinds of signals refer to binary number 1(1,200 ) and 0(2,200 ) and they are recovered to meaningful information by being demodulated into digital signal on each device.
Analog signal
Time
C: Command(K) R : Response(A)
2-5
Chapter 2 Specifications
(2) Kind and Configuration of HART Commands
Kinds of HART commands are described. HART analog input module transmits HART commands to HART field device and HART field device transmits responses to the commands to HART analog input module. HART commands can be categorized into three command groups according to their characteristics and they are called Universal, Common Practice, and Device Specific. Universal commands shall be supported by the entire HART field device manufacturers as an essential command group. Common Practice defines only data format of commands and manufacturers support only items that are judged as essential ones for HART field device. Device Specific is a command group that has no specified data format. Each manufacturer can define it if needed.
Command Universal Common Practice Device Specific
[Table 2.3] HART CommandsDescription
An essential command group that shall be supported by all of HART field device manufacturers Only data format of commands is defined and manufacturers support only items that are judged as essential ones for HART field device A command group that has no specified data format. Each manufacturer can define it if needed
(3) Commands supported on HART analog input module Commands supported on HART analog input module are described in the following.
Command
0 1 2
Universal
3
Command 12
13
15
16
48
Common
50
Practice
57
Command 61
110
[Table 2.4] Commands supported on HART analog input moduleFunction
Read Manufacturer ID and Manufacturer device code Read Primary variable(PV) value and Unit Read percentage of current and range Read current and 4 kinds of variable values (Primary Variable, Secondary Variable, Tertiary Value, Quaternary Value) Read message Read tag, descriptor, data Read output information Read Final Assemble Number Read Device Status Read Primary variable~ Quaternary Variable assignment Read Unit tag, Unit descriptor, Date Read Primary variable~ Quaternary Variable and PV analog output Read Primary variable~ Quaternary Variable
2-6
Chapter 2 Specifications
2.5 Characteristics of A/D Conversion
2.5.1 How to select the range of the A/D conversion
2MLF-AC4H with 4 input channels are used for current inputs, where Offset/Gain can not be adjusted by user. Current input range can be set for respective channels through user program (Refer to the Chapter) or I/O parameter setting with SoftMaster programming tool. Digitalized output formats are specified in three types as below;
A. Signed Value B. Precise Value C. Percentile Value For example, if the range is 4 ~ 20mA, On the SoftMaster menu [I/O Parameters Setting], set [Input range] to “4 ~ 20mA”.
2-7
Chapter 2 Specifications
2-8
Chapter 2 Specifications
2.5.2 Characteristics of the A/D conversion
Characteristics of A/D conversion are the inclination connected in a straight line between Offset and Gain values when converting analog signal (current input) to digital value. A/D conversion characteristics of HART Analog Input Modules are as described below.
Available range
Gain
Digitalized Value
Analog input
Offset
Notes
1. When Analog Input Module is released from the factory, Offset/Gain value is as adjusted for respective analog input ranges, which is unavailable for user to change.
2. Offset Value: Analog input value where digitalized value is -32,000. 3. Gain Value: Analog input value where digitalized value is 32,000.
2-9
Chapter 2 Specifications
2.5.3 I/O Characteristics of 2MLF-AC4H
2MLF-AC4H is a HART analog input module exclusively used for 4-channel current input and HART communication, where Offset/Gain can not be adjusted by user. Current input range can be set through user program or [I/O parameter] for respective channels. Output formats of digital data are as specified below;
A. Signed Value B. Precise Value C. Percentile Value (1) If the range is DC 4 ~ 20 mA On the SoftMaster menu [I/O Parameters Setting], set [Input range] to “4 ~ 20 “.
10120 10000
20192 20000
32092 32000
7500
16000 16000
5000
12000
0
2500
8000 -16000
0 -120
4000 3808
-32000 -32092
4 mA
8 mA
12 mA
16 mA
()
2-10
20 mA
Chapter 2 Specifications
Digital output value for current input characteristics is as specified below.
(Resolution (based on 1/64000): 250 nA)
Digital
Analog input current ()
Output range
3.808
4
8
12
16
Signed value
-32768 -32000 -16000
0
16000
(-32768 ~ 32767)
Precise value (3808 ~ 20192)
3808 4000 8000 12000 16000
Percentile value (-120 ~ 10120)
-120
0
2500 5000 7500
20 32000 20000 10000
20.192 32767 20192 10120
(2) If the range is DC 0 ~ 20 mA On the SoftMaster menu [I/O Parameters Setting], set [Input range] to “0 ~ 20 mA”.
2-11
Chapter 2 Specifications
10120 10000
20240 20000
32767 32000
7500
5000
2500
15000
16000
10000
0
5000
-16000
0 -120
0 -240
-32000 -32768
0 mA
5 mA
10 mA
15 mA
()
Digital output value for current input characteristics is as specified below.
(Resolution (based on 1/64000): 312.5 nA)
Digital
Analog input current ()
Output range
-0.24
0
5
10
15
Signed value
-32768 -32000 -16000
0
16000
(-32768 ~ 32767)
Precise value (-240 ~ 20240)
-240
0
5000 10000 15000
Percentile value (-120 ~ 10120)
-120
0
2500 5000 7500
20 mA
20 32000 20000 10000
20.24 32767 20240 10120
Notes
(1) If analog input value exceeding digital output range is input, the digital output value will be kept to be the max. or the min. value applicable to the output range specified. For example, if the digital output range is set to unsigned value (32,768 ~ 32,767) and the digital output value exceeding 32,767 or analog value exceeding 32,768 is input, the digital output value will be fixed as 32,767 or 32,768.
(2) Current input shall not exceed ±30 respectively. Rising heat may cause defects. (3) Offset/Gain setting for 2MLF-AC4H module shall not be performed by user. (4) If module is using to exceed input range, accuracy can not be guaranteed.
2-12
Chapter 2 Specifications
2.5.4 Accuracy
The accuracy of digital output value is not changed even when input range is changed. Fig. 2.1 shows the changing range of the accuracy at ambient temperature of 25 with analog input range of 4 ~ 20 selected and the digitalized outputs of signed value. The error tolerance at ambient temperature of 25°C is ±0.1% and the ambient temperature 0 ~55 is ±0.25%.
32064 32000
31936
Digitalized 0 output value
-31936 -32000
-32064 4mA
12mA Analoginputvoltage
[Fig. 2.1] Accuracy
20mA
2-13
Chapter 2 Specifications
2.6 Functions of Analog Input Module
Functions of Analog Input Module are as described below in Table 2.3.
Function Item Enabling the Channels Selecting the range of input Selecting the output data
A/D conversion methods
Alarm processing Detecting the disconnection of input signal
Details
Enables the specified channels to execute A/D conversion. (1) Specify analog input range to be used. (2) 2 types of current inputs are available for the 2MLF-AC4H module. (1) Specify digital output type. (2) 4 output data formats are provided in this module.
(Signed, Precise and Percentile value) (1) Sampling processing
Sampling processing will be performed when the average processing is not specified. (2) Average processing (a) Time average processing
Outputs average A/D conversion value based on time. (b) Count average processing
Outputs average A/D conversion value based on count times. (c) Moving average processing
Outputs the newest average value in every sampling at the designated count times. (d) Weighted average processing Used to delay the sudden change of input value.
Process alarm and change rate alarm processing are available. If an analog input with the range of 4 ~ 20 is disconnected, it is detected by a user program.
2.6.1. Sampling processing
The sampling period (Processing time) depends on the number of the channels in use. Processing time = Maximum of 100ms per module
2.6.2. Average processing
This processing is used to execute A/D conversion with specified count or time and to save the average of the accumulated sum on memory. Average processing option and time/count value can be defined through user program or I/O parameters setting for respective channels. (1) What is the average processing used for
This process is used to reduce the influence caused by abnormal analog input signal such as noise. (2) Kinds of average processing
There are four (4) kinds of average processing, Time, Count, Moving and Weighted average.
2-14
Chapter 2 Specifications
(a) Time average processing
A. Setting range: 200 ~ 5,000 (ms)
B. Number of processing =
Setting time 100ms
[times]Ex.) Setting time: 680 ms
Number of processing =
680ms = 6.8 => 6
[times](rounded) 100ms
*1: If setting value of time average is not specified within 200 ~ 5,000, RUN LED blinks at an interval of 1 second. In order to set RUN LED to On state, set the setting value within the range again and then change the PLC CPU from STOP to RUN mode. Be sure to use request flag of error clear (UXY.11.0) to clear the error during RUN.
*2: If any error occurs in setting value of time average, the default value 200 will be saved.
(b) Count average processing
A. Setting range: 2 ~ 50 (times) The average value of input data at designated times is saved as a real input data.
B. Process time = setting count x 100ms
Ex.) Average processing count time is 50.
Processing time = 50 x 100ms = 5,000ms
*1: If setting value of count average is not specified within 2 ~ 50, RUN LED blinks at an interval of 1 second. In order to set RUN LED to On state, set the setting value within the range and then change PLC CPU from STOP to RUN mode. Be sure to use request flag of error clear (UXY.11.0) to clear the error during RUN..
*2: If any error occurs in setting the value, the default value 2 will be saved.
(c) Moving average processing
A. Setting range: 2 ~ 100(times)
B. This process outputs the newest average value in every sampling at the designated count times. The Fig 2.2 shows the Moving average processing with 4 count times.
2-15
Chapter 2 Specifications
OutAp/uDt val ue
32000
0
Output 11 O ut put22 O utput33
-32000
Output 1 = ( + + + ) / 4 Output 2 = ( + + + ) / 4 Output 3 = ( + + + ) / 4
[Fig. 2.2] Average processing
Time((mmss))
(d) Weighted average processing
A. Setting range: 1 ~ 99(%)
F[n] = (1 – ) x A[n] + x F [n – 1]
F[n]: Current Weighted average output A[n]: Current A/D conversion value F[n-1]: Former Weighted average output : Weighted average constant (0.01 ~ 0.99)
*1: If setting value of count average is not specified within 1 ~ 99, RUN LED blinks at an interval of 1 second. In order to set RUN LED to On status, reset the setting value of frequency average within 2 ~ 500 and then convert PLC CPU from STOP to RUN. Be sure to use request flag of error clear (UXY.11.0) to clear the error through modification during RUN.
*2: If any error occurs in setting the value, the default value 1 will be saved.
B. Current Input (for example) · Analog input range: DC 4 ~ 20 mA, Digital output range: 0 ~ 10,000. · When an analog input changes rapidly 4 mA to 20 mA (0 10,000), the outputs of Weighted average according to the constant() are shown below.
*1) 0.01
Outputs of Weighted average
0 scan 1 scan 2 scan 3 scan
0
9,900
9,999
9,999
*2) *3)
0.5 0.99
0
5,000
7,500
8,750
0
100
199
297
*1) Outputs 10,000 after about 4 scans
*2) Outputs 10,000 after about 21 scans
*3) Outputs 10,000 after 1,444 scans (144s)
Weighted 1% to former value Weighted 50% to former value Weighted 99% to former value
· To get the stabilized output against rapid input changes (e.g. noise), this weighted average processing will be helpful.
2-16
Chapter 2 Specifications
2.5.3 Alarm processing
(1) Process Alarm When the digital value becomes greater than process alarm HH limit value, or less than LL limit value, the alarm flag turns on and the alarm LED on the front of the module flickers. When the digital output value becomes less than process alarm H limit value, or greater than L limit value, the alarms are cleared.
(2) Change rate alarm This function enables to sample data cyclically with the period set in the parameter of `Rate of change alarm period’ and to compare every two sample data. The unit used for `Rate of change H limit’ and `Rate of change L limit’ is percentage per second (%/s).
(a) Setting rate of the sampling period: 100 ~ 5,000(ms) If `1000′ is set for the period, the input data is sampled and compared every 1 second.
(b) Setting range of change rate limit: -32768 ~ 32767(-3276.8%/s ~ 3276.7%/s) (c) Calculation of the criterion
The criterion of change rate alarm = High limit or Low limit of change rate alarm X 0.001 X 64000 X Detection period ÷ 1000 1) An example for change rate setting 1(Rising rate detection)
a) Detection period of Ch. 0: 100(ms) b) Alarm high(H) limit of Ch. 0: 100(10.0%) c) Alarm low(L) limit of Ch. 0: 90(9.0%) d) Alarm high(H) criterion of Ch.0
= 100 X 0.001 X 64000 X 100 ÷ 1000 = 640 e) Alarm low(L) criterion of Ch.0
= 90 X 0.001 X 64000 X 100 ÷ 1000 = 576 f) When the deviation value of ([n]th digital value) ([n-1]th digital value) becomes greater
than 640, high(H) change rate detection flag of Ch.0(CH0 H) turns on. g) When the deviation value of ([n]th digital value) ([n-1]th digital value) becomes less
than 576, low(L) change rate detection flag f Ch.0(CH0 L) turns on.
2) An example for change rate setting 2(Falling rate detection) a) Detection period of Ch. 0: 100(ms) b) Alarm high(H) limit of Ch. 0: -10(-1.0%) c) Alarm low(L) limit of Ch. 0: -20(-2.0%) d) Alarm high(H) criterion of Ch.0 = -10 X 0.001 X 64000 X 100 ÷ 1000 = -64 e) Alarm low(L) criterion of Ch.0 = -20 X 0.001 X 64000 X 100 ÷ 1000 = -128 f) When the deviation value of ([n]th digital value) ([n-1]th digital value) becomes greater than -64, high(H) change rate detection flag of Ch.0(CH0 H) turns on. g) When the deviation value of ([n]th digital value) ([n-1]th digital value) becomes less than -128, low(L) change rate detection flag f Ch.0(CH0 L) turns on.
2-17
Chapter 2 Specifications
3) An example for change rate setting 3 (Detection of change rate) a) Detection period of Ch. 0: 1000(ms) b) Alarm high(H) limit of Ch. 0: 2(0.2%) c) Alarm low(L) limit of Ch. 0: -2(-0.2%) d) Alarm high(H) criterion of Ch.0 = 2 X 0.001 X 64000 X 1000 ÷ 1000 = 128 e) Alarm low(L) criterion of Ch.0 = -2 X 0.001 X 64000 X 1000 ÷ 1000 = -128 f) When the deviation value of ([n]th digital value) ([n-1]th digital value) becomes greater than 128, high(H) change rate detection flag of Ch.0(CH0 H) turns on. g) When the deviation value of ([n]th digital value) ([n-1]th digital value) becomes less than -128, low(L) change rate detection flag f Ch.0(CH0 L) turns on.
2.5.4 Detection of input disconnection
(1) Available inputs This detection function is available for the analog inputs of 4 ~ 20 mA. The detecting condition is as below.
Input range 4 ~ 20 mA
Detecting range Less than 0.8 mA
(2) Detection status The detection status of each channel is saved in Uxy.10.z (x: base number, y: slot number, z: bit number)
Bit number
Initial value Channel number
15 14 — 5 4
0 0 0 0 0 – – – – –
3
0 Ch.3
2
0 Ch.2
1
0 Ch.1
0
0 Ch.0
BIT
Description
0
Normal operation
1
Disconnection
(3) Operation of the detection status
Each bit is set to `1′ when detecting disconnection, and returned to `0′ when detecting connection. The status bits can be used in a user program for detecting the disconnection.
2-18
Chapter 2 Specifications
(4) Program example (non-IEC, 2MLK) As for the module mounted on base 0, slot 1, If disconnection is detected, the channel number is stored in each `P’ area.
Note. U01.10.n(n=0,1,2,3) : CHn_IDD (HART Analog input Mode : Channel disconnection Flag) (5) Program example (IEC61131-3, 2MLR and 2MLI)
As for the module mounted on base 1, slot 0, If disconnection is detected, the channel number is stored in each `%M’ area.
2-19
Installation and Wiring
Chapter 3 Installation and Wiring
Installation
3.1.1 Installation environment
This product is of high reliance regardless of installation environment. However, for the sake of reliance and stability of the system, please pay attention to the precautions described below.
(1) Environmental conditions – To be installed on the control panel waterproof and dustproof. – No continuous impact or vibration shall be expected. – Not to be exposed to direct sunlight. – No dew shall be caused by rapid temperature change. – Ambient temperature shall be kept 0-65.
(2) Installation work – Do not leave wiring waste inside the PLC after wiring or drilling screw holes. – To be installed on a good location to work on. – Don’t let it be installed on the same panel as the high-voltage device. – Let it be kept at least 50 away from duct or near-by module. – To be grounded in an agreeable place free from noise.
3.1.2 Precautions for handling
Precautions for handling 2MLF-AC4H module are as described below from the opening to the installation.
(1) Don’t let it be dropped or shocked hardly.
(2) Don’t remove PCB from the case. It will cause abnormal operation.
(3) Don’t let any foreign materials including wiring waste inside the top of the module when wiring.
Remove foreign materials if any inside.
(4) Don’t install or remove the module while powered on.
(5) The attachment torque of fixed screw of module and the screw of terminal block should be within the
range as below.
Attachment part
Attachment Torque range
I/O module terminal block screw (M3 screw)
42 ~ 58 N·
I/O module terminal block fixed screw (M3 screw)
66 ~ 89 N·
Notes
– HART analog input module can use when installed in extended base in 2MLR systems.
3-1
Chapter 3 Installation and Wiring
3.2 Wiring
3.2.1 Precautions for wiring
(1) Don’t let AC power line near to 2MLF-AC4H Module’s external input sign line. With an enough distance kept away in between, it will be free from surge or inductive noise.
(2) Cable shall be selected in due consideration of ambient temperature and allowable current, whose size is not less than the max. cable standard of AWG22 (0.3 ).
(3) Don’t let the cable too close to hot device and material or in direct contact with oil for long, which will cause damage or abnormal operation due to short-circuit.
(4) Check the polarity when wiring the terminal. (5) Wiring with high-voltage line or power line may produce inductive hindrance causing abnormal
operation or defect.
3.2.2 Wiring examples
Channel CH0 CH1 CH2 CH3
–
Input
+ + + + NC NC NC NC NC NC NC NC NC NC
Terminal no.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
DC +
Power
supply _
2-Wire Transmitter
+ _
CH0+ CH0-
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
3-2
Chapter 3 Installation and Wiring
(1) Wiring example of 2-wire sensor/transmitter
+ DC1
–
+ DC2
–
2-Wire Transmitter
2-Wire Transmitter
CH0 +
R
R *2
+
*1
–
–
CH3 +
R
– R *2
*1
(2) Wiring example of 4- wire sensor/transmitter
+ DC1
–
+ DC2
–
4-Wire Transmitter
4-Wire Transmitter
CH0 +
R
+
R *2
*1
–
–
CH3 +
R
– R *2
*1
* 1) Use a 2-core twisted shielded wire. AWG 22 is recommended for the cable standard. * 2) Input resistance for current input is 250 (typ.).
Notes
(1) In current input, there will be no accuracy tolerance caused by cable length and internal resistance of the source.
(2) Set to enable the channel only to be using. (3) 2MLF-AC4H module does not provide power for the input device. Use an external power
supplier. (4) If you do not separate the DC power of the transmitter each channel, it can affect the
accuracy. (5) In consideration of the current consumption of the transmitter, please use the external power
supply of sufficient capacity. (6) If you configure the system to provide the power of several transmitter by a external power
supply, please be careful not to exceed the allowable current of the external power supply the total current consumption of the transmitter.
3-3
Chapter 3 Installation and Wiring
3.2.2 Maximum communication distance
(1) HART communication is available up to 1 . But, if a transmitter presents the max communication distance, apply the shorter distance among the transmitter’s communication distance and 1 .
(2) The max communication distance may vary according to the cable capacitance and resistance. To ensure the max communication distance, check the cable’s capacitance and length.
(3) Example of cable selection to secure communication distance (a) If the cable capacitance is less than 90pF and the cable resistance is less than 0.09, the distance available for communication will be 1 .
(b) If the cable capacitance is less than 60pF and cable resistance is less than 0.18, the distance available for communication will be 1 .
(c) If the cable capacitance is less than 210pF and cable resistance is less than 0.12, the distance available for communication will be 600m.
Cable
Capacitance (/m)
1,200 750 450 300 210 150 90 60
0.03
100 m 100 m 300 m 600 m 600 m 900 m 1,000 m 1,000 m
0.06
100 m 100 m 300 m 300 m 600 m 900 m 1,000 m 1,000 m
0.09
100 m 100 m 300 m 300 m 600 m 600 m 1,000 m 1,000 m
Resistance (/m)
0.12
0.15
100 m 100 m 300 m 300 m 600 m 600 m
100 m 100 m 300 m 300 m 600 m 600 m
900 m 900 m
1,000 m 1,000 m
0.18
100 m 100 m 300 m 300 m 300 m 600 m 900 m 1,000 m
0.21
100 m 100 m 300 m 300 m 300 m 600 m 900 m 900 m
0.24
100 m 100 m 300 m 300 m 300 m 600 m 600 m 900 m
3-4
Chapter 4 Operation Procedures and Monitoring
Chapter 4 Operation Procedures and Monitoring
4.1 Operation Procedures
The processing for the operation is as shown in Fig. 4.1
Start
Install A/D conversion module on the slot
Connect A/D conversion module with the external device
Will you specify Run parameters through [I/O
parameters] setting?
YES
Specify Run parameters through [I/O
NO
parameters] setting
Prepare PLC program
End
[Fig. 4.1] Procedures for the operation
4-1
Chapter 4 Operation Procedures and Monitoring
4.2 Setting the Operation Parameters
There are two ways of setting the operation parameters. One is to set in the [I/O Parameters] of the SoftMaster, the other is to set in a user program with the internal memory of the module.(Refer to the Chapter 5 for the setting in a program)
4.2.1 Parameters for the 2MLF-AC4H module
Setting items for the module are as described below in the table 4.1.
Item [I/O parameters]
[Table 4. 1] Function of [I/O Parameters] Details
(1) Specify the following items necessary for the module operation. – Channel status: Enable/Disable each channel to operate – Input range: Setting ranges of input voltage/current – Output type: Setting the type of digitalized value – Average processing: Selecting the method of average processing – Average value setting – Process alarm: Enable/disable the alarm processing – Process alarm HH, H, L and LL limit setting – Rate of change alarm: Enable/disable the alarm processing – Rate of change alarm percentile, H and L limit – HART: Enable/Disable the HART communication.
(2) The data set above can be downloaded at any time regardless of the status of the CPU(Run or Stop)
4.2.2 The procedure of setting parameters with SoftMaster
(1) Open SoftMaster to create a project. (Refer to User Guide for SoftMaster for more details) (2) Double-click [I/O parameters] on the project window.
4-2
Chapter 4 Operation Procedures and Monitoring
(3) On the `I/O parameters setting’ screen, click the slot number on which the 2MLF-AC4H module is installed and select 2MLF-AC4H, then double click it.
(4) After selecting the module, click [Details]
4-3
Chapter 4 Operation Procedures and Monitoring
(5) Set the individual parameters. (a) Channel status: Set to Enable or Disable.
Click here
If not checked, set individual channel. If checked, set whole channel to same parameter
(b) Input range: Select the range of analog input.
4-4
Chapter 4 Operation Procedures and Monitoring
(c) Output type: Select the type of converted digital value. (d) Average processing: Select the method of the average processing. (e) Average Value: Set number within the range shown below.
Average processing
Setting range
Time average
200 ~ 5000()
Count average
2 ~ 50
Moving average
2 ~ 100
Weighted average
1 ~ 99(%)
(f) Process alarm: Set Enable or Disable for Process alarm.
4-5
Chapter 4 Operation Procedures and Monitoring
(g) Process alarm limits: Set each criterion for limit within the range shown below.
(h) Rate of change alarm: Set Enable or disable alarm for the change rate. (i) Rate of change limits: Set each criterion for limit within the range shown below. (j) HART: Set Enable or Disable for HART communication.
4-6
Chapter 4 Operation Procedures and Monitoring
4.3 Functions of Monitoring Special Module
Functions of Monitoring Special Module are as described below in table 4.2.
Item
[Special Module Monitoring]
[Table 4. 2] Functions of Special Module Monitoring
Details
(1) Monitor/Test After connecting SoftMaster with the PLC, select [Special Module Monitoring] in the [Monitor] menu. The 2MLF-AD4S module can be monitored and tested. When testing the module, the CPU should be stopped.
(2) Monitoring the max./min. value The max./min. value of the channel can be monitored during Run. However, when [Monitoring/Test] screen is closed, the max./min. value will not be saved.
(3) The parameters specified for the test in the [Special Module Monitor] screen are not saved in the [I/O parameter] when closing the screen.
Notes
The screen may not be normally displayed due to insufficient system resource. In such a case, close the screen and finish other applications in order to restart SoftMaster.
4-7
Chapter 4 Operation Procedures and Monitoring
4.4 Precautions
The parameters specified for the test of A/D conversion module on the “Monitor Special Module” screen of [Monitor Special Module] will be deleted the moment the “Monitor Special Module” screen is closed. In other words, the parameters of A/D conversion module specified on the “Monitor Special Module” screen will not be saved in [I/O parameters] located on the left tab of SoftMaster.
Test function of [Monitor Special Module] is provided for user to check the normal operation of A/D conversion module even without sequence programming. If A/D conversion module is to be used for other purposes than a test, use parameters setting function in [I/O parameters]. 4-8
Chapter 4 Operation Procedures and Monitoring
4.5 Monitoring the Special Module
4.5.1 Start with [Special Module Monitoring]
After connecting to the PLC, click [Monitor] -> [Special Module Monitoring]. If the status is not [Online], [Special Module Monitoring] menu will not be active.
4.5.2 How to use [Special Module Monitoring]
(1) `Special Module List’ screen will be shown as Fig. 5.1. The module installed on the present PLC system will be displayed on the screen.
[Fig. 5. 1] [Special Module List] 4-9
Chapter 4 Operation Procedures and Monitoring
(2) Select Special Module in Fig. 5.1 and click [Module Info.] to display the information as Fig. 5.2.
[Fig. 5. 2] [Special Module Information] (3) In order to monitor the special module, click [Monitor] after selecting the module in the Special
Module List screen (Fig. 5.1). Then [Special Module Monitoring] screen as Fig. 5.3, will be displayed.
4-10
Chapter 4 Operation Procedures and Monitoring
[Fig. 5. 3] [Special Module Monitor] 4-11
Chapter 4 Operation Procedures and Monitoring
(a) [Start Monitoring]: Click [Start Monitoring] to display A/D converted value of the presently operated channel. Fig. 5.4 is the monitoring screen displayed when the whole channel of 2MLF-AC4H are in Stop status. In the present value field at the screen bottom, presently specified parameters of Analog Input Module are displayed.
[Fig. 5. 4] Execution screen of [Start Monitoring] 4-12
Chapter 4 Operation Procedures and Monitoring
(b) [Test]: [Test] is used to change the presently specified parameters of Analog Input Module. Click the setting value at the bottom field of the screen to change parameters. Fig. 5.5 will be displayed after [Test] is executed with channel 0’s input voltage range changed to -10 ~ 10 V in the state of input not wired. This function is executed in the state of CPU stop.
[Fig. 5. 5] Execution screen of [Test] 4-13
Chapter 4 Operation Procedures and Monitoring
(c) [Reset Max./Min. value]: The max./min. value field at the upper screen shows the max. value and the min. value of A/D converted value. Click [Reset max./min. value] to initialize the max./min. value. Then the current value of the channel 0 is reset.
[Fig. 5. 6] Execution screen of [Reset max./min. value] (d) [Close]: [Close] is used to escape from the monitoring/test screen. When the monitoring/test
screen is closed, the max. value, the min. value and the present value will not be saved any more.
4-14
Chapter 4 Operation Procedures and Monitoring 4.5.3 HART Variable Monitoring and Device Information Screen
(1) PV, Primary Variable monitor: Click [Implement Test] after setting HART communication to `Enable’ on the `Special Module Monitor’ screen to check PV transmitted from a field device connected with channel 1 to HART communication. The figure below shows a screen to view PV imported from the field device connected with channel 0.
4-15
Chapter 4 Operation Procedures and Monitoring
(2) [HART device information]: Click [Read] button on the bottom after clicking [HART device information] on the `Special Module Monitor’ screen. Information on HART device that is connected with a current module can be viewed for each channel.
[Fig. 5. 6] Execution screen of [Read] (a) Message: Texts that have been inputted to HART field device’s message parameters. They
can be used to describe information helpful to recognize a device. (b) Tag: HART field device’s tag name is displayed. It can be used to indicate the location of a
plant. (c) Descriptor: HART field device’s descriptor field is displayed. For example, it can be used to
save the name of a person who performs calibration. (d) Date: Date inputted to the device. , it can be used to record the latest calibration date or date
of maintenance/inspection. (e) Write Setting (Write Prevented): Information on whether HART field device is protected from
writing is displayed Yes or No. If Yes is set, certain parameters cannot be changed through HART communication. (f) Manufacturer: Manufacturer name is displayed. Its code can be displayed and code information is changed to text to be displayed on the [HART device information] screen. (g) Device Name (type): It can be used for a manufacturer to designate a device type or name. Code information is changed to text to be displayed on the [HART device information] screen. (h) Device ID: Numbers refers to device ID are displayed. Device ID is a unique serial number issued by the manufacturer. (i) Final Assemble Number: Numbers referring to the final assembly number are displayed. It is
4-16
Chapter 4 Operation Procedures and Monitoring
used by the device manufacturer to classify changes in hardware. For example, it is used to classify part changes or drawing changes. (j) PV Upper Range Value: It is defined according to the relationship between dynamic variable values from the device and analog channel’s upper end points. That is, it is PV that will be displayed if 20 is outputted. (k) PV Lower Range Value: It is defined according to the relationship between dynamic variable values from the device and analog channel’s lower end points. That is, it is PV that will be displayed if 4 is outputted. (l) Damping Time: A function to mitigate sudden changes in input (shocks) and apply them to output. Its unit is of second. Mainly it is used on the pressure transmitter. (m) Transfer Function: A function to express which method is used by the transmitter to transfer 4~20 signal to PV. (n) Universal version: It refers to HART dimension version. In most cases, it is 5 or 6 and 7 means Wireless HART dimension. (o) Device version: HART device’s version is displayed. (p) Software version: HART device’s software version is displayed. (q) Hardware version: HART device’s hardware version is displayed. (3) Read Cancel: Press Esc key on the keyboard to cancel importing information from HART device after pressing Read button.
[Fig. 4.8] Execution of read cancel
4-17
Chapter 4 Operation Procedures and Monitoring
4.6 Registration of Analog Register [ U ]
This section describes the automatic registration function of the analog register U in the SoftMaster
4.6.1 Registration of Analog Register [ U ]
It registers the variables for each module referring to the special module information that is set in the I/O parameter. The user can modify the variables and comments. [Procedure] (1) Select the special module type in the [I/O parameter setting] window.
(2) Double click `Variable/Comment’ from the project window. (3) Select [Edit] -> [Register U Device]. And Click [Yes]
4-18
Chapter 4 Operation Procedures and Monitoring
(4) As shown below, the variables are registered.
4.6.2 Save variables
(1) The contents of `View Variable’ can be saved as a text file. (2) Select [Edit] -> [Export to File]. (3) The contents of `View variable’ are saved as a text file.
4.6.3 View variables
(1) The example program of SoftMaster is as shown below. (2) Select [View] -> [Variables]. The devices are changed into variables. For 2MLK series
4-19
For 2MLI and 2MLR series
Chapter 4 Operation Procedures and Monitoring
4-20
Chapter 4 Operation Procedures and Monitoring
(3) Select [View] -> [Devices/Variables]. Devices and variables are both displayed. (4) Select [View] -> [Devices/Comments]. Devices and comments are both displayed. For 2MLK series
For 2MLI and 2MLR
4-20
Chapter 5 Configuration and Function of Internal Memory
Chapter 5 Configuration and Function of Internal Memory
Analog Input Module has the internal memory to transmit/receive data to/from PLC CPU.
5.1 Internal Memory Configuration
Configuration of internal memory is as described below.
5.1.1 IO area configuration of HART analog input module
I/O area of A/D converted data is as displayed in Table 5.1.
Device assigned
Uxy.00.0 Uxy.00.F Uxy.01.0 Uxy.01.1 Uxy.01.2 Uxy.01 3
Uxy.02
%UXx.0.0 %UXxy.0.15 %UXxy.0.16 %UXxy.0.17 %UXxy.0.18 %UXxy.0.19
%UWxy.0.2
Uxy.03 Uxy.04
%UWxy.0.3 %UWxy.0.4
Uxy.05 %UWxy.0.5
Uxy.06
Uxy.07
Uxy.08.0 Uxy.08.1 Uxy.08.2 Uxy.08.3 Uxy.08.4 Uxy.08.5 Uxy.08.6 Uxy.08.7 Uxy.08.8 Uxy.08.9 Uxy.08.A Uxy.08.B Uxy.08.C Uxy.08.D Uxy.08.E Uxy.08.F
Uxy.09.0 Uxy.09.1 Uxy.09.2 Uxy.09.3 Uxy.09.4 Uxy.09.5 Uxy.09.6 Uxy.09.7
%UWxy.0.6
%UWxy.0.7
%UXxy.0.128 %UXxy.0.129 %UXxy.0.130 %UXxy.0.131 %UXxy.0.132 %UXxy.0.133 %UXxy.0.134 %UXxy.0.135 %UXxy.0.136 %UXxy.0.137 %UXxy.0.138 %UXxy.0.139 %UXxy.0.140 %UXxy.0.141 %UXxy.0.142 %UXxy.0.143
%UXxy.0.144 %UXxy.0.145 %UXxy.0.146 %UXxy.0.147 %UXxy.0.148 %UXxy.0.149 %UXxy.0.150 %UXxy.0.151
Details
Module ERROR flag Module READY flag CH0 Run flag CH1 Run flag CH2 Run flag CH3 Run flag
CH0 digital output value
CH1 digital output value
CH2 digital output value
CH3 digital output value
Not used area
Not used area CH0 process alarm H-H limit detection flag (HH) CH0 process alarm H limit detection flag (H) CH0 process alarm L limit detection flag (L) CH0 process alarm L-L limit detection flag (LL) CH1 process alarm H-H limit detection flag (HH) CH1 process alarm H limit detection flag (H) CH1 process alarm L limit detection flag (L) CH1 process alarm L-L limit detection flag (LL) CH2 process alarm H-H limit detection flag CH2 process alarm H limit detection flag (H) CH2 process alarm L limit detection flag (L) CH2 process alarm L-L limit detection flag (LL) CH3 process alarm H-H limit detection flag (HH) CH3 process alarm H limit detection flag (H) CH3 process alarm L limit detection flag (L) CH3 process alarm L-L limit detection flag (LL) CH0 change rate alarm H limit detection flag (H) CH0 change rate alarm L limit detection flag (L) CH1 change rate alarm H limit detection flag (H) CH1 change rate alarm L limit detection flag (L) CH2 change rate alarm H limit detection flag (H) CH2 change rate alarm L limit detection flag (L) CH3 change rate alarm H limit detection flag (H) CH3 change rate alarm L limit detection flag (L)
R/W Sign direction
R
A/D CPU
R
A/D CPU
R R R R R R
A/D CPU
R
R
A/D CPU
5-1
Chapter 5 Configuration and Function of Internal Memory
Uxy.10.0 %UXxy.0.160 CH0 disconnection detection flag (1~5V or 4~20mA)
Uxy.10.1 %UXxy.0.161 CH1 disconnection detection flag (1~5V or 4~20mA)
Uxy.10.2 %UXxy.0.162 CH2 disconnection detection flag (1~5V or 4~20mA)
Uxy.10.3 %UXxy.0.163 CH3 disconnection detection flag (1~5V or 4~20mA)
..
..
..
R
Uxy.10.8 %UXxy.0.168 CH0 HART communication error flag
Uxy.10.9 %UXxy.0.169 CH1 HART communication error flag
Uxy.10.A %UXxy.0.170 CH2 HART communication error flag
Uxy.10.B %UXxy.0.171 CH3 HART communication error flag
A/D CPU
Uxy.11.0 %UXxy.0.176 Error clear request flag
W CPU A/D
(1) In the device assigned, X stands for the Base No. and Y for the Slot No. on which module is
installed. (2) In order to read `CH1 digital output value’ of Analog Input Module installed on Base No.0, Slot No.4,
it shall be displayed as U04.03.
Base No. Sorter
Base No. Sorter
U 0 4 . 0 3
%UW 0 . 4 . 03
Device Type
Word
Slot No.
Device Type
Word
Slot No.
(3) In order to read `CH3 disconnection detection flag’ of Analog Input Module installed on Base No.0, Slot No.5, it shall be displayed as U05.10.3.
Variables for 2MLI and 2MLR series
Base No.
_0200_CH0_PAHH
Slot No.
Variables
Channel No.
5-2
Chapter 5 Configuration and Function of Internal Memory
5.1.2 Operation parameters setting area
Setting area of Analog Input Module’s Run parameters is as described in Table 5.2.
Memory address
HEX
DEC
Description
R/W
0H
0 Channel enable/disable setting
R/W
1H
1 Setting ranges of input voltage/current
R/W
2H
2 Output data format setting
R/W
3H
3 Filter processing enable/disable setting
R/W
4H
4 CH0 average value setting
5H
5 CH1 average value setting
6H
6 CH2 average value setting
R/W
7H
7 CH3 average value setting
8H
8 Alarm process setting
R/W
9H
9 CH0 process alarm H-H limit setting (HH)
AH
10 CH0 process alarm H limit setting (H)
BH
11 CH0 process alarm L limit setting (L)
CH
12 CH0 process alarm L-L limit setting (LL)
DH
13 CH1 process alarm H-H limit setting (HH)
EH
14 CH1 process alarm H limit setting (H)
FH
15 CH1 process alarm L limit setting (L)
10H
16 CH1 process alarm L-L limit setting (LL)
11H
17 CH2 process alarm H-H limit setting (HH)
R/W
12H
18 CH2 process alarm H limit setting (H)
13H
19 CH2 process alarm L limit setting (L)
14H
20 CH2 process alarm L-L limit setting (LL)
15H
21 CH3 process alarm H-H limit setting (HH)
16H
22 CH3 process alarm H limit setting (H)
17H
23 CH3 process alarm L limit setting (L)
18H
24 CH3 process alarm L-L limit setting (LL)
19H
25 CH0 change rate alarm detection period setting
1AH 1BH
26 27
CH1 change rate alarm detection period setting CH2 change rate alarm detection period setting
R/W
1CH
28 CH3 change rate alarm detection period setting
1DH
29 CH0 change rate alarm H limit setting
1EH
30 CH0 change rate alarm L limit setting
1FH
31 CH1 change rate alarm H limit setting
20H
32 CH1 change rate alarm L limit setting
21H
33 CH2 change rate alarm H limit setting
R/W
22H
34 CH2 change rate alarm L limit setting
23H
35 CH3 change rate alarm H limit setting
24H
36 CH3 change rate alarm L limit setting
25H
37 Error code
R/W
28H
40 HART communication Enable/Disable
R/W
Remarks PUT PUT PUT PUT PUT PUT
PUT
PUT
PUT
GET PUT
* R/W is to denote Read/Write if available from PLC program.
5-3
Chapter 5 Configuration and Function of Internal Memory
5.1.3 HART commands information area
Status area of HART commands are as described in Table 5.3
Memory Address CH0 CH1 CH2 CH3
Description
68
69
70
71 HART communication error count of CH#
72
73
74
75 Communication/field device status of CH#
76
Select to retain data in case of HART communication error
* R/W is to denote Read/Write if available from PLC program.
R/W Remarks
GET R/W
PUT
5-4
Chapter 5 Configuration and Function of Internal Memory
5.2 A/D Converted Data I/O Area
Regarding address for 2MLI and 2MLR series, please refer to Variable name. Page 52 `Internal Memory’
5.2.1 Module READY/ERROR flag (Uxy.00, X: Base No., Y: Slot No.)
(1) Uxy.00.F: It will be ON when PLC CPU is powered or reset with A/D conversion ready to process A/D conversion.
(2) Uxy.00.0: It is a flag to display the error status of Analog Input Module.
UXY.00
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
R
E
D————– — — — — — — — R
Y
R
Module READY Bit ON (1): READY, Bit Off (0): NOT READY
Error information Bit ON (1): Error, Bit Off (0): Normal
5.2.2 Module RUN flag (Uxy.01, X: Base No., Y: Slot No.)
The area where Run information of respective channels is saved. %UXx.0.16+[ch]
UXY.01
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
— — — — — — — —
CC CC HH HH 32 10
Run channel information Bit ON (1): During Run, Bit Off (0): Operation Stop
5.2.3 Digital output value (Uxy.02 ~ Uxy.05, X: Base No., Y: Slot No.)
(1) A/D converted-digital output value will be output to buffer memory addresses 2 ~ 9 (Uxy.02 ~ Uxy.09) for respective channels.
(2) Digital output value will be saved in 16-bit binary.
UXY.02 ~ UXY.09
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
Channel # digital output value
Address
Address No.2 Address No.3 Address No.4 Address No.5
Details
CH0 digital output value CH1 digital output value CH2 digital output value CH3 digital output value
5-5
Chapter 5 Configuration and Function of Internal Memory
5.2.4 Flag to detect process alarm
(Uxy.08.Z, X:Base No., Y:Slot No., Z: Alarm bit according to channel)
(1) Each process alarm detection signal about input channel is saved at Uxy.08 (2) Each bit is set as 1 when detecting process alarm and if process alarm detection is restored, each bit
returns into 0. Each bit can be used to detect process alarm detection with execution condition at user program.
UXY.08
B B B B B B
B15 B14 B13 B12 B11 B10 B9 B8
B1 B0
7 6 5 4 3 2
CCC C C C C C C CCCCCCC
HHH H H H H H H HHHHHHH
3 3 3 3 2 2 2 2 1 1 1 1 0 0 0 0
L L HHL L HHL L HHL L HH
L
H L
H L
H L
H
BIT
Details
0
Meet setting range
1
Exceed setting range
5.2.5 Flag to detect change rate alarm
(Uxy.09.Z, X: Base No, Y: Slot No, Z: Alarm according to channel)
(1) Each change rate alarm detection signal about input channel is saved at Uxy.09. (2) Each bit is set as 1 when detecting process alarm and if process alarm detection is restored, each bit
returns into 0. Each bit can be used to detect process alarm detection with execution condition at user program.
UXY.09
B B B B B B
B15 B14 B13 B12 B11 B10 B9 B8
B1 B0
7 6 5 4 3 2
CCCCCC CC —————- H H H H H H H H
332211 00 LHLHLH LH
BIT
Details
0
Meet setting range
1
Exceed setting range
5-6
Chapter 5 Configuration and Function of Internal Memory
5.2.6 Flag to detect disconnection (Uxy.10.Z, X: Base No., Y: Slot No., Z: Channel No.)
(1)Detection sign of disconnection for respective input channels is saved in Uxy.10. (2) Each bit will be set to 1 if an assigned channel is detected as disconnected, and it will be back to 0 if
connected back. In addition, each bit can be used to detect the disconnection in the user program together with execution conditions.
UXY.10
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CCC C ———————— H H H H
321 0
BIT
Description
0
Normal
1
disconnection
5.2.7 Flag to detect HART communication error (Uxy.10.Z, X: Base No., Y: Slot No.)
(1) Detection sign of HART communication error for respective input channels is saved in Uxy.10. (2) Each bit will be set to 1 if an assigned channel is detected as HART communication error, and it will
be back to 0 if HART communication back. In addition, each bit can be used to detect the HART communication error in the user program together with execution conditions.
UXY.10
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
C C C C ——– H H H H ————– —
3 2 1 0
BIT
Description
0
HART communication normal
1
HART communication error
5-7
Chapter 5 Configuration and Function of Internal Memory
5.2.7 Flag to request error clear (Uxy.11.0, X: Base No., Y: Slot No.)
(1) If a parameters setting error occurs, address No.37’s error code will not be automatically erased even if parameters are changed correctly. At this time, turn the `error clear request’ bit ON to delete address No.37’s error code and the error displayed in SoftMaster’s [System Monitoring]. In addition, RUN LED which blinks will be back to On status.
(2) 2) The `flag to request error clear’ shall be used surely together with Uxy.00.0 attached thereon for guaranteed Normal operation. Its application shall be as shown below in Fig. 5.1.
UXY.10
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
E
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
C
R
2MLK series
Flag to request error clear (Uxy.11.0) Bit ON (1): Error clear request, Bit Off (0): Error clear standing-by
2MLI and 2MLR series
[Fig. 5. 1] How to use the flag5-8
Chapter 5 Configuration and Function of Internal Memory
5.3 Operation Parameters Setting Area
1 word is assigned for each address in the internal memory, which can be displayed in 16 bits. If each bit of 16 bits configuring the address is On, let it set to “1”, and if it is Off, let it set to “0” so to
realize the respective functions.
5.3.1 How to specify the channel to use (address No.0)
(1) Enable/Disable A/D conversion can be set for respective channels. (2) If the channel to use is not specified, all the channels will be set to Disabled (3) Enable/Disable A/D conversion is as specified below.
Address “0”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CCC C ———————— H H H H
321 0
BIT
Description
0
Disable
1
Enable
(4) The value specified in B8 ~ B15 will be disregarded.
5.3.2 How to specify the range of input current (address No.1)
(1) The range of analog input current can be specified for respective channels. (2) If the analog input range is not specified, the range of all the channels will be set to 4 ~ 20 . (3) Setting range of analog input current is as specified below.
Address “1”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
C
C
C
C
H
H
H
H
3
2
1
0
BIT 0000 0001
Description 4 mA ~ 20 mA 0 mA ~ 20 mA
5-9
Chapter 5 Configuration and Function of Internal Memory
5.3.3 How to specify the range of output data (address No.2)
(1) The range of digital output data for analog input can be specified for respective channels. (2) If the output data range is not specified, the range of all the channels will be set to -32000 ~ 32000. (3) Setting range of digital output data range is as specified below.
Address “2”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
C
C
C
C
H
H
H
H
3
2
1
0
BIT 0000 0001 0010
Description -32000 ~ 32000
Precise Value 0 ~ 10000
Precise value has the following digital output ranges for the analog input range.
Analog input
Digital output Precise Value
4 ~ 20 4000 ~ 20000
0 ~ 20 0 ~ 20000
5.3.4 How to specify average process (address No.3)
(1) Enable/Disable filter process can be specified for respective channels. (2) If the filter process is not specified, all the channels will be sampled. (3) Setting of the filter process is as specified below.
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
C
C
C
C
H
H
H
H
3
2
1
0
BIT 0000 0001 0010 0011 0100
Details Sampling process
Time average Count average Moving average Weighted average
5-10
Chapter 5 Configuration and Function of Internal Memory
5.3.5 How to specify average value (address No.4 ~ 7)
(1) Default of the filter constant is 0. (2) Setting ranges of average are as specified below.
Method Time average Count average Moving average Weighted average
Setting range 200 ~ 5000(ms)
2 ~ 50(times) 2 ~ 100(times)
1 ~ 99(%)
(3) If other value exceeding the setting range is specified, error code will be displayed on display address (37) of the error code. At this time, A/D converted value keeps the previous data. (# of the error code stands for the channel with error found)
(4) Setting of the filter constant is as specified below.
Address “4 ~ 7″
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
— — — — — — — —
Channel# average value
Setting range of averages differ according to the average processing method
Address Address No.4 Address No.5 Address No.6 Address No.7
Details
CH0 average value CH1 average value CH2 average value CH3 average value
5.3.6 How to specify process alarm (Address 8)
(1) This is area to set Enable/Disable of Process alarm. Each channel can be set separately (2) Initial value of this area is 0. (3) Setting of alarm process is as follows.
Address”8”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4
C C C C H H H H —————- 3 2 1 0
Change rate alarm
B3 B2 B1 B0
CC CC HH HH 32 10
Process alarm
BIT
Details
0
Disable
1
Enable
5-11
Chapter 5 Configuration and Function of Internal Memory
5.3.7 Process alarm value setting (address 9 ~ 24)
(1) This is area to set Process alarm value. Setting range is different according to range of output data.
(a) Signed Value: -32768 ~ 32767 (b) Precise Value
4 ~ 20 mA 0 ~ 20 mA
3808 ~ 20192 -240 ~ 20240
(c) Percentile Value: -120 ~ 10120
(2) For detail of process alarm function, refer to CH2.5.2.
Address “9 ~ 24”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH# process alarm value
Address
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Details
CH0 process alarm H-H limit setting CH0 process alarm H limit setting CH0 process alarm L limit setting CH0 process alarm L-L limit setting
CH1 process alarm H-H limit setting CH1 process alarm H limit setting CH1 process alarm L limit setting CH1 process alarm L-L limit setting CH2 process alarm H-H limit setting CH2 process alarm H limit setting CH2 process alarm L limit setting CH2 process alarm L-L limit setting CH3 process alarm H-H limit setting CH3 process alarm H limit setting CH3 process alarm L limit setting CH3 process alarm L-L limit setting
Notes To set process alarm value, enable process alarm process in advance
5-12
Chapter 5 Configuration and Function of Internal Memory
5.3.8 Change rate alarm detection period setting (address 25 ~ 28)
(1) Setting range is 0 ~ 5000(ms). (2) When value is out of range, error code 60# is displayed at error code indication address. At this time,
default value (10) is applied (3) Setting of change rate alarm detection period is as follows.
Address “25 ~ 28″
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH# change rate alarm detection period
Setting range is 10 ~ 5000(ms)
Address
25 26 27 28
Details
CH0 change rate alarm detection period CH1 change rate alarm detection period CH2 change rate alarm detection period CH3 change rate alarm detection period
5.3.9 Change rate alarm value setting (Address 29 ~ 36)
(1) Range is -32768 ~ 32767(-3276.8% ~ 3276.7%). (2) Setting is as follows.
Adress”29 ~ 36” B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH# change rate alarm value
Range is -32768 ~ 32767
Address
29 30 31 32 33 34 35 36
Details
CH0 change rate alarm H limit setting CH0 change rate alarm L limit setting CH1 change rate alarm H limit setting CH1 change rate alarm L limit setting CH2 change rate alarm H limit setting CH2 change rate alarm L limit setting CH3 change rate alarm H limit setting CH3 change rate alarm L limit setting
Notes When setting change rate value, enable change rate alarm process in advance. And specify the Low/High limit of change rate alarm
5-13
Chapter 5 Configuration and Function of Internal Memory
5.3.10 Error code (address No.37)
(1) Error codes detected from Analog Input Module will be saved. (2) Error types and details are as specified below.
Address “37”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
— — — — — — — —
Error code
Refer to the table below for detailed error codes.
Error code (Dec.)
0
Normal operation
Description
10
Module error (ASIC reset error)
11
Module error (ASIC RAM or Register error)
20#
Time average set value error
30#
Count average set value error
40#
Moving average set value error
50#
Weighted average set value error
60#
Change rate alarm detection period set value error
RUN LED status RUN LED ON Flickers every 0.2 sec.
Flickers every 1 sec.
* # of the error code stands for the channel with error found. * Refer to 9.1 for more details on error codes.
(3) If 2 or more errors occur, the module will not save other error codes than the first error code found. (4) If an error found is corrected, use the `flag to request error clear’ (refer to 5.2.5), or let power OFF
ON in order to stop LED blinking and to delete the error code.
5.3.11 HART communication Enable/Disable (address No.40)
(1) If the channel to use is not specified, all the channels will be set to Disabled (2) HART communication is possible to set in the range of 4 ~ 20 only.
Address “40”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CCC C ———————— H H H H
321 0
BIT
Details
0
Disable
1
Enable
5-14
Chapter 5 Configuration and Function of Internal Memory
5.4 HART Commands Information Area
5.4.1 HART communication error count(Address 68 ~ 71)
(1) Count of HART communication errors can be monitored. (2) Communication error count is accumulated for each channel and up to 65,535 is displayed. (3) Even though HART communication is recovered, error count maintains its status.
Address “68~71”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
HART communication error count
Address
68 69 70 71
Exceed 65,535 counts start from zero again.
Details CH0 HART communication error count CH1 HART communication error count CH2 HART communication error count CH3 HART communication error count
5.4.2 Communication/field device status(Address 72 ~ 75)
(1) Status of HART communication and field devices can be monitored. (2) Top byte shows HART communication status while lower byte shows field device status. (3) For details on each status, refer to (4) and (5).
Address “72~75”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH# HART communication status
CH# field device status
For details on each status, refer to Hexadecimal code
Address
72 73 74 75
Details
CH0 communication/field device status CH0 communication/field device status CH0 communication/field device status CH0 communication/field device status
(4) Status of HART communication
Bit Code(Hexadecimal)
Details
7
–
Communication error
6
C0
Parity error
5
A0
Overrun error
4
90
Framing error
3
88
Checksum error
2
84
0(reserved)
1
82
Receiving buffer overflow
0
81
0(reserved)
* Hexadecimal value is shown, including the 7th bit.
5-15
Chapter 5 Configuration and Function of Internal Memory
(5) Status of field device
Bit
Code(hexadecimal)
7
80
6
40
5
20
4
10
3
08
2
04
1
02
0
01
Content
Field device malfunction Configuration changed: This bit is set when the field device’ s environment configuration is changed. Cold Start: This bit is set when power failure or device reset takes place.
More status available: It shows that more information can be obtained through No.48 command. Analog output fixed: It shows that a device is in the Multidrop mode or output is set to a fixed value for test. Analog output saturated: It shows that analog output is not changed since it is measured to be the upper limit or lower limit.
Primary Variable Out of Limits: It means that PV measuring value is beyond the sensor operation range. Therefore, the measuring cannot be reliable. Non-primary Variable Out of Limits): It means that non-primary variable` s measuring value is beyond the operation range. Therefore, the measuring cannot be reliable.
5.4.3 Select to retain data in case of HART communication error (Address 76)
(1) In case of HART communication error, it is possible to set whether to retain existing communication data.
(2) Default value is set to retain existing communication data. (3) If Enable is set, HART communication response data will be cleared in case of HART
communication error.
Address “76”
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CCC C ———————— H H H H
321 0
BIT
Details
0
Disable
1
Enable
5-16
Chapter 6 Programming for 2MLK
Chapter 6 Programming for 2MLK
6.1 Programming for setting the Operation Parameters
Regarding programming for 2MLI and 2MLR series, please refer to Chapter 7.
6.1.1 Reading the operation parameters (GET, GETP instruction)
For 2MLK series
Type
Execution condition
GET n1 n2 D n3
Type
Description
n1 Slot No. of the special module
n2 Top address of the buffer memory to be read from
D Top address to save the data
n3 Number of words to be read
Area available Integer Integer
M, P, K, L, T, C, D, #D Integer
< Difference between GET instruction and GETP instruction >
GET: Every scan executed while the execution condition is ON. (
)
GETP: Executed only one time while the execution condition is ON. (
)
Ex. If a 2MLF-AC4H module is installed on Base No.1 and Slot No.3(h13), and the data in buffer memory addresses 0 and 1 is read and stored in D0 and D1 of CPU memory,
(Address) D area of CPU memory D0 Channel enable/disable D1 Setting ranges of input
voltage/current –
–
–
Internal memory of 2MLF-AC4H (Address)
Channel enable/disable
0
Setting ranges of input
1
voltage/current
–
–
–
6-1
Chapter 6 Programming for 2MLK
< Difference between GET instruction and GETP instruction >
GET: Every scan executed while the execution condition is ON. (
)
GETP: Executed only one time while the execution condition is ON. (
)
Ex. If a 2MLF-AC4H module is installed on Base No.1 and Slot No.3(h13), and the data in buffer memory addresses 0 and 1 is read and stored in D0 and D1 of CPU memory,
(Address) D area of CPU memory D0 Channel enable/disable D1 Setting ranges of input
voltage/current –
–
–
Internal memory of 2MLF-AC4H (Address)
Channel enable/disable
0
Setting ranges of input
1
voltage/current
–
–
–
ST INST_GET_WORD(REQ:=REQ_BOOL, BASE:=BASE_USINT, SLOT:=SLOT_USINT, MADDR:=MADDR_UINT, DONE=>DONE_BOOL, STAT=>STAT_UINT, DATA=>DATA_WORD);
6-2
Chapter 6 Programming for 2MLK
6.1.2 Writing the operation parameters (PUT, PUTP instruction))
For 2MLK series
Type
Description
n1 Slot No. of the special module
Area available Integer
n2 Top address of the buffer memory to be written from the CPU
Integer
S Top address of the CPU memory to be sent or integer
M, P, K, L, T, C, D, #D, integer
n3 Number of words to be sent
Integer
< Difference between PUT instruction and PUTP instruction> PUT: Every scan executed while the execution condition is ON. ( Executed only one time while the execution condition is ON. (
) PUTP: )
Ex. If a 2MLF-AC4H module is installed on Base No.2 and Slot No.6(h26), and the data in the CPU memory D10~D13 is written to the buffer memory 12~15.
(Address) D area of CPU module
D10
Average processing enable/disable
D11
Ch.0 Average value
D12
Ch.1 Average value
D13
Ch.2 Average value
D14
Ch.3 Average value
Internal memory of 2MLF-AC4H (Address)
Average processing enable/disable
3
Ch.0 Average value
4
Ch.1 Average value
5
Ch.2 Average value
6
Ch.3 Average value
7
6-3
Chapter 6 Programming for 2MLK
For 2MLI and 2MLR series
Function Block PUT_WORD PUT_DWORD PUT_INT PUT_UINT PUT_DINT PUT_UDINT
Input(ANY) type
Description
WORD
Save WORD data into the configured module address (MADDR).
DWORD
Save DWORD data into the configured module address (MADDR).
INT
Save INT data into the configured module address (MADDR).
UINT
Save UINT data into the configured module address (MADDR).
DINT
Save DINT data into the configured module address (MADDR).
UDINT
Save UDINT data into the configured module address (MADDR).
< Difference between PUT instruction and PUTP instruction> PUT: Every scan executed while the execution condition is ON. ( Executed only one time while the execution condition is ON. (
) PUTP: )
Ex. If a 2MLF-AC4H module is installed on Base No.2 and Slot No.6(h26), and the data in the CPU memory D10~D13 is written to the buffer memory 12~15.
(Address) D area of CPU module
D10
Average processing enable/disable
D11
Ch.0 Average value
D12
Ch.1 Average value
D13
Ch.2 Average value
D14
Ch.3 Average value
Internal memory of 2MLF-AC4H (Address)
Average processing enable/disable
3
Ch.0 Average value
4
Ch.1 Average value
5
Ch.2 Average value
6
Ch.3 Average value
7
ST INST_PUT_WORD(REQ:=REQ_BOOL, BASE:=BASE_USINT, SLOT:=SLOT_USINT, MADDR:=MADDR_UINT,DATA:=DATA_WORD, DONE=>DONE_BOOL, STAT=>STAT_UINT);
6-4
Chapter 6 Programming for 2MLK
6.1.3 HART commands
(1) Commands form
No.
Name
Details
Execution condition
Write HART 1 HARTCMND commands
Pulse
HART 2 HARTRESP
response
Level
Clear HART 3 HARTCLR
commands
Pulse
Form
(2) Error content Error Content
No module is on the designated slot Or more 4 is set to operand S Other numbers than HART command numbers are set to operand channel(ch) HART command number: 0, 1, 2, 3, 12, 13, 15, 16, 48, 50, 57, 61, 110) The device set to operand D is beyond the area Total 30 words starting from the device used as operand are beyond the maximum settable area.
HARTCMND HARTRESP HART_CMND HART_Cxxx
O
O
O
O
HARTCLR HART_CLR
O O
Not applicable
O
Not applicable
Not applicable
O
Not applicable
6-5
Chapter 6 Programming for 2MLK
6.1.4 HARTCMND command
Area available
Flag
command
step Error Zero Carry
PMK F L T C S Z D.x R.x Constant U N D R
(F110) (F111) (F112)
sl – – – – – – – – –
– – —
ch – – – – – – – – –
– – —
HARTCMND
–
S – – – – – – – –
– – –
–
–
D – – – – – – – –
–
– – –
HARTCMND
COMMAND
HARTCMND sl ch S D
[Area Setting] OperandDescription
sl
Slot number mounted to the special module
ch
Channel number of the special module
S
HART communication command setting (each bit shows each HART command)
D
HART command setting status(The currently set commands are combined and written for each bit)
– Set of operand S
HART command numbers
Operand type Data Data Data
Address
B15 B14 B13 B12 B11 B10
B9 B8
B7
B6 B5 B4
B3
B2
— — — 100 61 57 50 48 16 15 13 12 3
2
Valid size Integer Integer Integer (13bit)
Integer
B1
B0
1
0
Data size Word Word Word
Word
Command is executed when corresponding bit set on
– Monitoring of operand D
Bit information of the currently set commands is displayed. For example, Bit 1 and 2 are displayed on D device if bit 1 and bit 2 are set.
Content
Error
– The special module is not mounted to a designated slot or it is mounted to other module – A value inputted to a channel exceeds the range(0~3) set to the channel
Device No. F110
[Example program]Notes HARTCMND command or HARHCLR command is executed by setting bit of a corresponding command while HARTRESP command is set by inputting a command number. For example, if command 57 is executed, enter H0400 (K1024) to operand S for HARTCMND command or HARHCLR command and enter command K57 to operand S for HARTRESP command. Here, H0400 is a hexadecimal to set bit10- command 57.
6-6
Chapter 6 Programming for 2MLK
6.1.5 HARTRESP command
Area available
Flag
command
step Error Zero Carry
PMK F L T C S Z D.x R.x constant U N D R
(F110) (F111) (F112)
sl – – – – – – – – –
– – —
ch – – – – – – – – –
– – —
HARTRESP
–
S – – – – – – – –
– – –
–
–
D – – – – – – – –
–
– – –
HARTRESP
COMMAND
HARTRESP sl ch S D
[Area setting]Operand
Description
Operand type
Valid size
Data size
sl
Slot number mounted to the special module
Data
Integer Word
ch
Channel number of the special module
Data
Integer Word
S
HART command number
Data
2byte Word
D
Start address of a device that will display response
Address
2byte Word
– Operand S sets a command number to receive HART communication response.
(xx : CMD No. 0, 1, 2, 3, 12, 13, 15, 16, 48, 50, 57, 61, 110)
– 30 words are assigned to D operand when implementing Read Command.
For example, when M2030 is designated on 2MLK-CPUH, an error takes place because M2040 is not
sufficient for the maximum 30 Words.
– For details on each command, refer to Appendix 2 HART commands.
[Flag Set] FlagError
Description
– The special module is not mounted to a designated slot or it is mounted to other module
– A value inputted to a channel exceeds the range(0~3) set to the channel – A command designated to S is other than 0, 1, 2, 3, 12, 13, 15, 48, 50, 57, 61, 110 – A device designated to D exceeds the device area (30 Words)
Device No. F110
[Example program]6-7
Chapter 6 Programming for 2MLK
6.1.6 HARTCLR command
Area available
Flag
command
step Error Zero Carry
PMK F L T C S Z D.x R.x constant U N D R
(F110) (F111) (F112)
sl – – – – – – – – –
– – —
Ch – – – – – – – – –
– – —
HARTCLR
–
S – – – – – – – –
– – –
–
–
D – – – – – – – –
–
– – –
HARTCLR
COMMAND
HARTCLR
sl ch S D
[Area setting] operandDescription
operand type
Valid size
data size
sl
Slot number mounted to the special module
Data
Integer Word
ch
Channel number of the special module
Data
Integer Word
S
HART communication command setting (each bit shows each
HART command)
Data
13bit Word
D
HART command setting status(The currently set commands are combined and written for each bit)
Address
2byte
Word
– Setting method is the same with that of HARTCMND command. But, it plays a role in cancelling other
commands set differently from HARTCMND command.
[Flag Set] FlagDescription
Device No.
Error
– The special module is not mounted to a designated slot or it is mounted to other module
– A value inputted to a channel exceeds the range(0~3) set to the channel
F110
[Example program]6-8
Chapter 6 Programming for 2MLK
6.2 Basic Program
– How to specify Run condition details of HART analog input module’s internal memory will be described. – HART analog input module is as installed on Slot 2. – I/O assigned points of HART analog input module is 16 points (changeable). – Initial value specified will be saved on the internal memory of HART analog module through one time of
input under the initial setting condition.
6.2.1 Setting the parameters in the [I/O Parameters]
(1) Open [I/O Parameters], and select 2MLF-AC4H module.
Module READY Execution contact
Device with saved data to transmit Device with saved data transmitted
Slot No.
Device to save The number of data to read
6-9
Chapter 6 Programming for 2MLK 6.2.2 Setting the parameters in a scan program
6-10
Chapter 6 Programming for 2MLK
6.3 Application Program
6.3.1 Program to sort A/D converted value in size (I/O slot fixed-points assigned: based on 64)
(1) System configuration
2MLP- 2MLK- 2MLI- 2MLF- 2MLQACF2 CPUS D24A AC4H TR2A
(2) Details of initial setting
No.
Item
Details of initial setting
Internal memory address
1
Used CH
CH0, CH1
0
2
Input voltage range
4 ~ 20
1
3
Output data range
-32,000 ~ 32,000
2
4
Average process
CH0, 1(Weighted, Count)
3
5 CH0 Weighted-avr value
50
4
6
CH1 Count-avr value
30
6
Value to write on internal memory
`h0003′ or `3′ `h0000′ or `0′ `h0000′ or `0′ `h0024′ or `36′ `h0032′ or `50′ `h001E’ or `30′
(3) Program description
(a) If CH 0’s digital value is less than 12000, Contact No.0 (P00080) of relay output module installed on Slot No.2 will be On
(b) If CH 2’s digital value is greater than 13600, Contact No.2 (P00082) of relay output module installed on Slot No.2 will be On.
(c) This program is to check responses to each command by executing HART command 0 on channel 0 and HART command 2 on channel 1.
6-11
Chapter 6 Programming for 2MLK (4) Program
(a) Program example using [I/O parameters] setting
6-12
Module READY Execution contact
Chapter 6 Programming for 2MLK
(b) Program example using PUT/GET instruction
6-13
Chapter 6 Programming for 2MLK
– executing HART command 0 on channel 0 * Preamble: 5~20 byte hexadecimal FF is used in HART communication that uses characters, symbols or
Frequency Shift Keying(FSK) to help synchronizing with receiving at the first part of HART message. – executing HART command 2 on channel 2
6-14
Chapter 6 Programming for 2MLK
6.3.2 Program to output error codes of HART analog input module to BCD display
(1) System configuration
2MLP- 2MLK- 2MLI- 2MLQ- 2MLF- 2MLQACF2 CPUS D24A RY2A AC4H RY2A
Initial value setting
A/D converted value & error code saved
Error code output to BCD
P0000 P0001
P0002
Digital BCD display (error display)
(2) Details of initial setting (a) Used CH: CH 0 (b) Analog input current range: DC 4 ~ 20 mA (c) Time average process setting: 200 (ms) (d) Digital output data range: -32000 ~ 32000
(3) Program description (a) If P00000 is On, A/D conversion will be initially specified. (b) If P00001 is On, A/D converted value and error code will be saved respectively on D00000 and D00001. (c) If P00002 is On, applicable error code will be output to digital BCD display. (P00030 ~ P0003F)
6-15
Chapter 6 Programming for 2MLK (4) Program
(a) Program example through [I/O parameters] setting
6-16
Channel Run flag
Chapter 6 Programming for 2MLK
(b) Program example using PUT/GET instruction
Module READY Execution contact
Channel Run flag Conversion of error code to BCD
6-17
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
7.1 Global Variable (Data area)
7.1.1 A/D conversion data IO area configuration
Indicates A/D conversion data IO area at table 7.1
Global variable
_xxyy_ERR _xxyy_RDY _xxyy_CH0_ACT _xxyy_CH1_ACT _xxyy_CH2_ACT _xxyy_CH3_ACT
_xxyy_CH0_DATA
_xxyy_CH1_DATA
_xxyy_CH2_DATA
_xxyy_CH3_DATA _xxyy_CH0_PALL _xxyy_CH0_PAL _xxyy_CH0_PAH _xxyy_CH0_PAHH _xxyy_CH1_PALL _xxyy_CH1_PAL _xxyy_CH1_PAH _xxyy_CH1_PAHH _xxyy_CH2_PALL _xxyy_CH2_PAL _xxyy_CH2_PAH _xxyy_CH2_PAHH _xxyy_CH3_PALL _xxyy_CH3_PAL _xxyy_CH3_PAH _xxyy_CH3_PAHH _xxyy_CH0_RAL _xxyy_CH0_RAH _xxyy_CH1_RAL _xxyy_CH1_RAH _xxyy_CH2_RAL _xxyy_CH2_RAH _xxyy_CH3_RAL _xxyy_CH3_RAH
Memory allocation
Contents
%UXxx.yy.0 %UXxx.yy.15 %UXxx.yy.16 %UXxx.yy.17 %UXxx.yy.18 %UXxx.yy.19
Module ERROR flag Module READY flag CH 0 RUN flag CH 1 RUN flag CH 2 RUN flag CH 3 RUN flag
%UWxx.yy.2 CH 0 Digital output value
%UWxx.yy.3 CH 1 Digital output value
%UWxx.yy.4 CH 2 Digital output value
%UWxx.yy.5
%UXxx.yy.128 %UXxx.yy.129 %UXxx.yy.130 %UXxx.yy.131 %UXxx.yy.132 %UXxx.yy.133 %UXxx.yy.134 %UXxx.yy.135 %UXxx.yy.136 %UXxx.yy.137 %UXxx.yy.138 %UXxx.yy.139 %UXxx.yy.140 %UXxx.yy.141 %UXxx.yy.142 %UXxx.yy.143 %UXxx.yy.144 %UXxx.yy.145 %UXxx.yy.146 %UXxx.yy.147 %UXxx.yy.148 %UXxx.yy.149 %UXxx.yy.150 %UXxx.yy.151
CH 3 Digital output value
CH0 process alarm LL-limit CH0 process alarm L-limit CH0 process alarm H-limit CH0 process alarm HH-limit CH1 process alarm LL-limit CH1 process alarm L-limit CH1 process alarm H-limit CH1 process alarm HH-limit CH2 process alarm LL-limit CH2 process alarm L-limit CH2 process alarm H-limit
CH2 process alarm HH-limit CH3 process alarm LL-limit CH3 process alarm L-limit CH3 process alarm H-limit CH3 process alarm HH-limit CH0 change rate alarm L-limit CH0 change rate alarm H-limit CH1 change rate alarm L-limit CH1 change rate alarm H-limit CH2 change rate alarm L-limit CH2 change rate alarm H-limit CH3 change rate alarm L-limit CH3 change rate alarm H-limit
Read/Write Read Read Read Read Read Read
Read
7-1
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
_xxyy_CH0_IDD _xxyy_CH1_IDD _xxyy_CH2_IDD _xxyy_CH3_IDD .. _xxyy_CH0_HARTE _xxyy_CH1_HARTE _xxyy_CH2_HARTE _xxyy_CH3_HARTE
_xxyy_ERR_CLR
%UXxx.yy.160 %UXxx.yy.161 %UXxx.yy.162 %UXxx.yy.163
.. %UXxx.yy.168 %UXxx.yy.169 %UXxx.yy.170 %UXxx.yy.171
%UXxx.yy.176
CH0 input disconnection detection CH1 input disconnection detection CH2 input disconnection detection CH3 input disconnection detection .. CH0 HART communication error flag CH1 HART communication error flag CH2 HART communication error flag CH3 HART communication error flag
Error clear request flag
Read Write
1) In the device allocation, xx means base number where module is installed and yy means base
number where module is installed. 2) To read `CH1 digital output value’ of Analog Input Module installed at base 0, slot 4, expression
is %UW0.4.3.
Base No.
Dot
Dot
%UW 0 . 4 . 3
Device Type
Slot No.
WORD
3) To read `CH3 disconnection detection flag’ of Analog Input Module installed at base 0, slot 5, expression is %UX0.5.163.
Base No.
Dot
Dot
%UX 0 . 5 . 163
Device Type
BIT
Slot No.
7-2
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR) 7.1.2 How to use global variable
– In order to register global variable, there are two method, auto registration after setting I/O parameter at project window and batch registration after setting I/O parameter
(1) I/O parameter registration – Registers module you want to use at I/O parameter
(a) Double-click I/O parameter of project window
7-3
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(b) Select 2MLF-AC4H module at I/O parameter window (c) Set parameter by pressing [Details] and select [OK]
7-4
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(d) Select [Yes] – Auto-register global variable of module set in I/O parameter
(e) Global variable auto registration check – Double-click Global/Direct Variable of project window
7-5
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(2) Global variable registration – Registers global variable set in I/O parameter (a) Double-click Global/Direct Variable of project window (b) Select [Register Special Module Variables] at menu [Edit]
7-6
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
7-7
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(3) Local variable registration – Registers variable among registered global variable you want to use as local variable. (a) Double-click local variable to use in the following scan program. (b) Click right button of mouse in the right local variable window and select “Add EXTERNAL variable”.
(c) Select local variable to add at Global View on “Add External Variable” window (“All” or “Base, slot”).
7-8
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
-View All – View per base, slot
7-9
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(d) The following is example selecting digital input value (_0000_CH0_DATA) of “Base00, Slot00”.
7-10
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(4) How to use local variable on program – It describes the added global variable at local program. – The following is example getting the conversion value of CH0 of Analog Input Module to %MW0. (a) At part reading A/D conversion data to %MW0 by using the following MOVE function, double-click variable part ahead of IN, then “Select Variable” window shows up.
Double-click (b) Select global variable at variable type at Select Variable window. And select relevant base (0
base, 0 slot) at global variable view item.
7-11
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(c) Double-click or select _0000_CH0_DATA corresponding to CH0 A/D conversion data and click [OK].
(d) The following figure is result adding global variable corresponding to CH0 A/D conversion value.
7-12
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
7.2 PUT/GET Function Block use area (Parameter area)
7.2.1 PUT/GET Function Block use area (Parameter area)
It indicates operation parameter setting area of Analog Input Module at table 7.2.
Global variable
Contents
R/W Instruction
_Fxxyy_ALM_EN
Set alarm process
_Fxxyy_AVG_SEL
Set average process method
R/W
_Fxxyy_CH_EN
Set channel to use
_Fxxyy_CH0_AVG_VAL
CH0 average value
_Fxxyy_CH0_PAH_VAL
CH0 process alarm H-limit setting value
_Fxxyy_CH0_PAHH_VAL CH0 process alarm HH-limit setting value
_Fxxyy_CH0_PAL_VAL _Fxxyy_CH0_PALL_VAL
CH0 process alarm L-limit setting value CH0 process alarm LL-limit setting value
R/W
_Fxxyy_CH0_RA_PERIOD CH0 change rate alarm detection period setting
_Fxxyy_CH0_RAH_VAL
CH0 change rate H-limit setting value
_Fxxyy_CH0_RAL_VAL
CH0 change rate L-limit setting value
_Fxxyy_CH1_AVG_VAL
CH1 average value
_Fxxyy_CH1_PAH_VAL
CH1 process alarm H-limit setting value
_Fxxyy_CH1_PAHH_VAL CH1 process alarm HH-limit setting value
_Fxxyy_CH1_PAL_VAL _Fxxyy_CH1_PALL_VAL
CH1 process alarm L-limit setting value CH1 process alarm LL-limit setting value
R/W
_Fxxyy_CH1_RA_PERIOD CH1 change rate alarm detection period setting
_Fxxyy_CH1_RAH_VAL
CH1 change rate H-limit setting value
_Fxxyy_CH1_RAL_VAL
CH1 change rate L-limit setting value
_Fxxyy_CH2_AVG_VAL
CH2 average value
_Fxxyy_CH2_PAH_VAL
CH2 process alarm H-limit setting value
_Fxxyy_CH2_PAHH_VAL CH2 process alarm HH-limit setting value
_Fxxyy_CH2_PAL_VAL
CH2 process alarm L-limit setting value
_Fxxyy_CH2_PALL_VAL
CH2 process alarm LL-limit setting value
R/W
_Fxxyy_CH2_RA_PERIOD CH2 change rate alarm detection period setting
_Fxxyy_CH2_RAH_VAL
CH2 change rate H-limit setting value
_Fxxyy_CH2_RAL_VAL
CH2 change rate L-limit setting value
PUT PUT PUT PUT
_Fxxyy_CH3_AVG_VAL
CH3 average value
_Fxxyy_CH3_PAH_VAL
CH3 process alarm H-limit setting value
_Fxxyy_CH3_PAHH_VAL CH3 process alarm HH-limit setting value
_Fxxyy_CH3_PAL_VAL _Fxxyy_CH3_PALL_VAL
CH3 process alarm L-limit setting value CH3 process alarm LL-limit setting value
R/W
_Fxxyy_CH3_RA_PERIOD CH3 change rate alarm detection period setting
_Fxxyy_CH3_RAH_VAL
CH3 change rate H-limit setting value
_Fxxyy_CH3_RAL_VAL
CH3 change rate L-limit setting value
_Fxxyy_DATA_TYPE _Fxxyy_IN_RANGE
Output data type setting Input current/voltage setting
R/W
_Fxxyy_ERR_CODE
Error code
R
PUT
PUT GET
* At device allocation, xx means base number and yy means slot number where module is equipped.
7-13
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
7.2.2 PUT/GET instruction
(1) PUT instruction
PUT
Writing data to special module
Function Block
BOOL USINT USINT UINT *ANY
PUT
REQ BASE SLOT
DONE BOOL STAT UINT
MADDR
DATA
Description
Input
REQ : Execute function when 1 BASE : Specify base position SLOT : Specify slot position MADDR : Module address DATA : Data to save module
Output DONE : Output 1 when normal STAT : Error information
*ANY: WORD, DWORD, INT, USINT, DINT, UDINT type available among ANY type
Function Read data from designated special module
Function Block
PUT_WORD PUT_DWORD
PUT_INT PUT_UINT PUT_DINT PUT_UDINT
Input(ANY) type WORD DWORD INT UINT DINT UDINT
Description
Save WRD data into the designated module address (MADDR). Save DWORD data into the designated module address (MADDR). Save INT data into the designated module address (MADDR). Save UNIT data into the designated module address (MADDR). Save DINT data into the designated module address (MADDR). Save UDINT data into the designated module address (MADDR).
7-14
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(2) GET instruction
GET
Reading from special module data
Function block
BOOL USINT USINT UINT
GET
REQ
DONE
BASE SLOT MADDR
STAT DATA
BOOL UINT *ANY
Description
Input
REQ : Execute function when 1 BASE : Specify base position SLOT : Specify slot position MADDR : Module address
512(0x200) ~ 1023(0x3FF)
Output DONE STAT DATA
: Output 1 when normal : Error information : Data to read from module
*ANY: WORD, DWORD, INT, UINT, DINT, UDINT type available among ANY type
Function Read data from designated special module
Function Block GET_WORD GET_DWORD
GET_INT GET_UINT GET_DINT GET_UDINT
Output(ANY) type WORD DWORD INT UINT DINT UDINT
Description
Read data as much as WORD from the designated module address (MADDR).
Read data as much as DWORD from the designated module address (MADDR). Read data as much as INT from the designated Module address (MADDR). Read data as much as UNIT from the designated module address (MADDR). Read data as much as DINT from the designated module address (MADDR). Read data as much as UDINT from the designated module
address (MADDR).
7-15
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
7.2.3 HART Commands
(1) HART_CMND command
HART_CMND
Writing HART command to module
Function Block
Input
REQ BASE SLOT CH C_SET
Output DONE STAT
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number : Communication command to be written
(bit mask set)
: Output 1 when normal : Error information
Function (a) It is used to set a command to be communicated regarding to the designated module’s channel. (b) Set bit(BOOL Array) corresponding to a command to be communicated on “C_SET”.
Command 110 61 57 50 48 16 15 13 12 3 2 1 0
Array index 12 11 10 9 8 7 6 5 4 3 2 1 0 (c) If “REQ” contact is converted from 0 to 1, function block will be executed.
Example program
7-16
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(2) HART_C000 command
HART_C000
Read response to Universal Command 0
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT M_ID D_TYP
PAMBL U_REV D_REV S_REV H_REV DFLAG D_ID
: Output 1 when normal : Error information : Manufacturer ID : Manufacturer’s device type code(If 4
digits are displayed, the first two digits refer to manufacturer ID code) : Minimum Preamble number : Universal Command Revision : Device Specific Command Revision : Software Revision : Hardware Revision(x10) : Device Function Flag : Device ID
Function When [Universal Command 0] command is set to the designated module’s channel, this function is used to monitor response data. If HART channel is set to `Allow’ and HART communication is normally performed, response data of this area displays even though any response to Command 0 is
requested through HART_CMND. But, to monitor those data continuously, set Command 0
command through HART_CMND.
7-17
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
Example program
7-18
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(3) HART_C001 Command
HART_C001
Read response to Universal Command 1
Function block
Input
REQ BASE SLOT CH
Output
DONE STAT PUNIT PV
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
: Output 1 when normal : Error information : Primary Variable Unit : Primary Variable
Function When [Universal Command 1] command is set to the designated module’s channel, this function is used to monitor response data.
Example program
7-19
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(4) HART_C002 command
HART_C002
Read response to Universal Command 2
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT CURR PCENT
: Output 1 when normal : Error information : Primary Variable loop current(mA) : Primary Variable percent of range
Function When [Universal Command 2] command is set to the designated module’s channel, this function is used to monitor response data.
Example program
7-20
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(5) HART_C003 command
HART_C003
Read response to Universal Command 3
Function block
Input
REQ BASE SLOT CH
Output
DONE STAT CURR PUNIT PV SUNIT SV TUNIT TV QUNIT QV
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
: Output 1 when normal : Error information : Primary Variable loop current(mA) : Primary Variable Unit : Primary Variable : Secondary Variable Unit : Secondary Variable : Tertiary Variable Unit : Tertiary Variable : Quaternary Variable Unit : Quaternary Variable
Function When [Universal Command 3] command is set to the designated module’s channel, this function is used to monitor response data.
7-21
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
Example program
7-22
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(6) HART_C012 command
HART_C012
Read response to Universal Command 12
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT MESS _AGE
: Output 1 when normal : Error information : Message(1/2) : Message(2/2)
Function When [Universal Command 12] command is set to the designated module’s channel, this function is used to monitor response data.
Example program
7-23
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(7) HART_C013 command
HART_C013
Read response to Universal Command 13
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT TAG DESC YEAR MON DAY
: Output 1 when normal : Error information : Tag : Descriptor : Year : Month : Day
Function When [Universal Command 13] command is set to the designated module’s channel, this function is used to monitor response data.
Example program
7-24
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(8) HART_C015 command
HART_C015
Read response to Universal Command 15
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT A_SEL TFUNC RUNIT UPPER LOWER DAMP WR_P DIST
: Output 1 when normal : Error information : PV Alarm select code : PV transfer function code : PV range units code : PV upper range value : PV lower range value : PV damping value(sec) : Write-protect code : Private-label distributor code
Function When [Universal Command 15] command is set to the designated module’s channel, this function is used to monitor response data.
7-25
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
Example program
7-26
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(9) HART_C016 command
HART_C016
Read response to Universal Command 16
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT FASSM
: Output 1 when normal : Error information : Final assembly number
Function When [Universal Command 16] command is set to the designated module’s channel, this function is used to monitor response data.
Example program
7-27
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(10) HART_C048 command
HART_C048
Read response to Common Practice Command 48
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT DSS1A DSS1B EXTD OPMD AOS AOF DSS2A DSS2B DSS2C
: Output 1 when normal : Error information : Device-specific status1(1/2) : Device-specific status1(2/2) : Extend device-specific status(V6.0) : Operational modes(V5.1) : Analog outputs saturated (V5.1) : Analog outputs fixed (V5.1) : Device-specific status2(1/3) : Device-specific status2 (2/3) : Device-specific status2 (3/3)
Function When [Common Practice Command 48] command is set to the designated module’s channel, this
function is used to monitor response data.
7-28
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
Example program
7-29
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(11) HART_C050 Command
HART_C050
Read response to Common Practice Command 50
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT
Variable S_VAR T_VAR
: Output 1 when normal : Error information P_VAR : Primary Device
: Secondary Device Variable : Tertiary Device Variable
Function When [Common Practice Command 50] command is set to the designated module’s channel, this function is used to monitor response data.
Example program
7-30
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(12) HART_C057 command
HART_C057
Read response to Common Practice Command 57
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT U_TAG UDESC UYEAR U_MON U_DAY
: Output 1 when normal : Error information : Unit tag : Unit descriptor : Unit year : Unit month : Unit day
Function When [Common Practice Command 57] command is set to the designated module’s channel, this function is used to monitor response data.
Example program
7-31
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(13) HART_C061 command
HART_C061
Read response to Common Practice Command 61
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT AUNIT A_LVL PUNIT PV SUNIT SV TUNIT TV QUNIT QV
: Output 1 when normal : Error information : PV Analog Output units code : PV Analog Output level : Primary Variable units code : Primary Variable : Secondary Variable units code : Secondary Variable : Tertiary Variable units code : Tertiary Variable : Quaternary Variable units code : Quaternary Variable
Function When [Common Practice Command 61] command is set to the designated module’s channel, this function is used to monitor response data.
7-32
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
Example program
7-33
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(14) HART_C110 command
HART_C110
Read response to Common Practice Command 110
Function block
Input
REQ BASE SLOT CH
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number
Output
DONE STAT PUNIT PV SUNIT SV TUNIT TV QUNIT QV
: Output 1 when normal : Error information : Primary Variable units code : Primary Variable value : Secondary Variable units code : Secondary Variable value : Tertiary Variable units code : Tertiary Variable value : Quaternary Variable units code : Quaternary Variable value
Function When [Common Practice Command 110] command is set to the designated module’s channel, this function is used to monitor response data.
7-34
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
Example program
7-35
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(15) HART_CLR command
HART_CLR
Clear HART command to module
Function block
Input
REQ BASE SLOT CH C_CLR
Output DONE STAT
Description
: Execute function when 1(rising edge) : Specify base position : Specify slot position : Used channel number : Communication command to be removed
(bit mask set)
: Output 1 when normal : Error information
Function
(a) It is used to stop a command being communicated regarding to the designated module’s channel.
(b) Set bit(BOOL Array) corresponding to a command to be stopped on “C_SET”
Command
110 61 57 50 48 16 15 13 12
3
2
1
0
Array index
12 11 10
9
8
7
6
5
4
3
2
1
0
(c) If “REQ” contact is converted from 0 to 1, function block will be executed. (d) Response data to the stopped command is maintained the status at the stopped time.
Example program
7-36
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
7.2.4 Example using PUT/GET instruction
(1) Enable channel
(a) You can enable/disable A/D conversion per channel (b) Disable channel not using to reduce the conversion cycle per channel (c) When channel is not designated, all channels are set as not used (d) Enable/disable of A/D conversion is as follows
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
— — — — — — — — — — — —
CC CC HH HH
32 10
Bit 0 1 16#0003 : 0000 0000 0000 0011
Description Stop Run
CH3, CH2, CH1, CH0
Set channel to use
(e) The value in B4~B15 is ignored. (f) The right figure is example enabling CH0~CH1 of analog input module equipped at slot 0.
(2) Input current range setting (a) You can set input current range per channel (b) When analog input range is not set, all channels are set as 4 ~ 20mA (c) Setting of analog input current range is as follows.
– The following is example setting CH0~CH1 as 4~20mA and CH2~CH3 as 0~20mA
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH3
CH2
CH1
CH0
Bit
Description
0000
4 mA ~ 20 mA
0001
0 mA ~ 20 mA
16#4422 : 0001 0001 0000 0000
CH3, CH2, CH1, CH0
Input range setting
7-37
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(3) Output data range setting
(a) Digital output data range about analog input can be set per channel. (b) When output data range is not set, all channels are set as -32000~32000. (c) Setting of digital output data range is as follows
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH3
CH2
CH1
CH0
Bit
Description
0000
-32000 ~ 32000
0001
Precise value
0010
0~10000
16#2012 : 0010 0000 0001 0010
CH3, CH2, CH1, CH0
Precise value has the following digital output range about analog input range 1) Current
Analog input
4 ~ 20
0 ~ 20
Digital output
Precise Value
4000 ~ 20000
0 ~ 20000
(4) Average process setting (a) You can enable/disable average process per channel (b) Average process is not set, all channels are set as enable (c) Setting of filter process is as follows (d) The following figure is example using time average about CH1
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH3
CH2
CH1
CH0
Bit
Contents
0000
Sampling process
0001 0010 0011
Time average Count average Moving average
0100
Weighted average
16#0010 : 0000 0000 0001 0000
CH3, CH2, CH1, CH0
7-38
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(5) Average value setting
(a)Initial value of average value is 0
(b) Setting range of average value is as follows. Average method Time average Count average Moving average Weighted average
Setting range 200 ~ 5000(ms)
2 ~ 50(times) 2 ~ 100(times)
0 ~ 99(%)
(c) When setting value other than setting range, it indicates error number at error code indication (_F0001_ERR_CODE). At this time, A/D conversion value keeps previous data. (# means the channel where error occurs at error code)
(d) Setting of average value is as follows
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
— — — — — — — —
CH# average value
Setting range is different according to average method
Address
_Fxxyy_CH0_AVG_VAL _Fxxyy_CH1_AVG_VAL _Fxxyy_CH2_AVG_VAL _Fxxyy_CH3_AVG_VAL
Contents
CH0 average value setting CH1 average value setting CH2 average value setting CH3 average value setting
* At device allocation, x means base number, y means slot number where module is equipped.
(6) Alarm process setting
(a) This is are to enable/disable alarm process and it can be set per channels (b) Default of this area is 0. (c) Setting of alarm process is as follows.
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CCCCCC CC
HHHHHH HH
—————- 3 2 1 0 3 2 1 0
Change rate alarm
Process alarm
BIT
Contents
0
Disable
1
Enable
Note Before you set Time/Count average value, enable the average process and select average method (Time/Count).
7-39
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(7) Process alarm value setting
(a) This is area to set process alarm value per channels. Range of process alarm is different according to data range.
1) Signed Value: -32768 ~ 32767 1) Precise Value
Range 4 ~ 20 mA 0 ~ 20 mA
Value 3808 ~ 20192 -240 ~ 20240
2) Percentile Value: -120 ~ 10120
(b) For detail of process alarm, refer to 2.5.2.
B B15 B14 B13 B12 B11 B10 B9 B8
B
B
B
B
B B1 B0
76 5 43 2
CH# process alarm setting value
Variable
_F0001_CH0_PAHH_VAL _F0001_CH0_PAH_VAL _F0001_CH0_PAL_VAL _F0001_CH0_PALL_VAL _F0001_CH1_PAHH_VAL _F0001_CH1_PAH_VAL _F0001_CH1_PAL_VAL _F0001_CH1_PALL_VAL _F0001_CH2_PAHH_VAL _F0001_CH2_PAH_VAL _F0001_CH2_PAL_VAL _F0001_CH2_PALL_VAL _F0001_CH3_PAHH_VAL _F0001_CH3_PAH_VAL _F0001_CH3_PAL_VAL _F0001_CH3_PALL_VAL
Contents
CH0 process alarm HH-limit CH0 process alarm H-limit CH0 process alarm L-limit CH0 process alarm LL-limit
CH1 process alarm HH-limit CH1 process alarm H-limit CH1 process alarm L-limit CH1 process alarm LL-limit CH2 process alarm HH-limit CH2 process alarm H-limit CH2 process alarm L-limit CH2 process alarm LL-limit CH3 process alarm HH-limit CH3 process alarm H-limit CH3 process alarm L-limit CH3 process alarm LL-limit
Note Before you set process alarm value, enable process alarm.
7-40
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(8) Change rate alarm detection period setting
(a) Range of change rate alarm detection period is 100 ~ 5000(ms) (b) If you set the value out of range, error code 60# is indicated at error code indication address. At
this time, change rate alarm detection period is applied as default value (10) (c) Setting of change rate alarm detection period is as follows.
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH# change rate alarm detection period
Range of change rate alarm detection period is 100 ~ 5000(ms)
Variable
_F0001_CH0_RA_PERIOD _F0001_CH1_RA_PERIOD _F0001_CH2_RA_PERIOD _F0001_CH3_RA_PERIOD
Contents
CH0 change rate alarm detection period CH1 change rate alarm detection period CH2 change rate alarm detection period CH3 change rate alarm detection period
Note Before you set the change rate alarm period, enable change rate alarm and set H/L-limit of change rate alarm.
(9) Change rate alarm setting value (a) Range of change rate alarm value is -32768 ~ 32767(-3276.8% ~ 3276.7%). (b) Setting of change rate alarm value is as follows.
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
CH# change rate alarm setting value
Range of change rate alarm value is -32768 ~ 32767
Variable
_F0001_CH0_RAL_VAL _F0001_CH0_RAL_VAL _F0001_CH1_RAL_VAL _F0001_CH1_RAL_VAL _F0001_CH2_RAL_VAL _F0001_CH2_RAL_VAL _F0001_CH3_RAL_VAL _F0001_CH3_RAL_VAL
Contents
CH0 change rate alarm H-limit setting CH0 change rate alarm L-limit setting CH1 change rate alarm H-limit setting CH1 change rate alarm L-limit setting CH2 change rate alarm H-limit setting CH2 change rate alarm L-limit setting CH3 change rate alarm H-limit setting CH3 change rate alarm L-limit setting
Note Before you set the change rate alarm detection period, enable change rate alarm process and set alarm H/L- limit.
7-41
Chapter 7 Configuration and Function of Internal Memory (For 2MLI/2MLR)
(10) Error code
(a) Saves error code detected at HART Analog Input Module. (b) Error type and contents are as follows. (c) The following figure is program example reading error code.
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
— — — — — — — —
Error code
Error code (Dec.)
0
Normal operation
Description
RUN LED status
RUN LED ON
10
Module error (ASIC reset error)
11
Module error (ASIC RAM or Register error)
20# Time average set value error
Flickers every 0.2 sec.
30#
Count average set value error
40#
Moving average set value error
50#
Weighted average set value error
Flickers every 1 sec.
60#
Change rate alarm detection period set value error
* At error code, # indicates channel where error occurs
* For more detail error code, refer to 9.1
(d) In case two error codes occurs, module saves first occurred error code and later occurred error code is not saved
(e) In case error occurs, after modifying error, use “Error clear request flag”(referring to 5.2.7), restart power to delete error code and stop LED flicker
7-42
Chapter 8 Programming (for 2MLI/2MLR)
Chapter 8 Programming (For 2MLI/2MLR)
8.1 Basic Program
– It describes about how to set operation condition at internal memory of Analog Input Module. – Analog Input Module is equipped at slot 2 – IO occupation points of Analog Input Module are 16 points (Flexible type) – Initial setting condition is saved at internal memory by 1 time input
(1) Program example using [I/O Parameter]
8-1
Chapter 8 Programming (for 2MLI/2MLR)
(2) Program example using [I/O Parameter]
ModuleERxecaudtyion coEnxtaecut ptionint
Channel RUN signal
Execution
CH0 Output
Device to save data to send CH0 digital output
Device saving data to send
CH1 Output CH3 digital output
CH2 Output CH4 digital output
Base No. Slot No.
Internal memory address
CH3 Output
Reading error code
Read error code
Execution
8-2
Chapter 8 Programming (for 2MLI/2MLR)
(3) Program example using PUT/GET instruction Execution contact point
Enable CH (CH 1,2,3)
Set input current range
Output data type
Set average process
Set CH3 Average value
CH1 Process alarm H-limit
Set CH1 average value
Alarm process
Set CH2 average value
CH1 Process alarm H-H limit
CH1 Process alarm L-limit
8-3
CH1 Process alarm L-L limit
Chapter 8 Programming (for 2MLI/2MLR)
CH3 Process alarm H-H limit
CH3 Process Alarm L-L limit
CH1 Change rate Alarm H-limit
CH3 Change rate Alarm L-limit
CH3 Process alarm H-limit
CH1 Change rate Alarm detection period
CH1 Change rate Alarm L-limit
CH3 Process Alarm L-limit
CH3 Change rate Alarm detection period
CH3 Change rate Alarm H-limit
8-4
Chapter 8 Programming (for 2MLI/2MLR)
Execution input
CH1 output
CH2 output
CH3 output
Error code
8-5
Chapter 8 Programming (for 2MLI/2MLR)
8.2 Application Program
8.2.1 Program to sort A/D converted value in size
(1) System configuration
2MLP 2MLI- 2MLI 2MLF 2MLQ
–
CPUU –
–
–
ACF2
D24A AC4H RY2A
(2) Initial setting content
No.
Item
Initial setting content
1 Used channel
CH0, Ch2, CH3
2 Input voltage range 0 ~ 20
3 Output data range -32000~32000
4 Average process
CH0, 2, 3 (Weight, Count, time)
5 Average value
CH0 weight average value: 50 (%)
6 Average val
Documents / Resources
![]() |
Honeywell 2MLF-AC4H Analog Input Module [pdf] User Guide 2MLF-AC4H Analog Input Module, 2MLF-AC4H, Analog Input Module, Input Module, Module |