Professional Documents
Culture Documents
NEXGEN PLC
8 Channel Analog Input Module
Document No.:ED-2002-015
Version: 1.01
MESSUNG SYSTEMS
EL-2, J- Block MIDC Bhosari,
Pune – 411026.(INDIA)
Revision
INDEX
Index of Figures
Guidelines for the Safety of the user and protection of I/O Modules.
This manual provides information for the use of the I/O Modules. The manual has
been written to be used by trained and competent personnel. The definition of such a
person or persons is as follows:
a) Any engineer who is responsible for the planning, design and construction of
automatic equipment using the product associated with this manual should be of a
competent nature, trained and qualified to the local and national standards required to
fulfill that role. These engineers should be fully aware of all aspects of safety with
regards to automated equipment.
c) All operators of the completed equipment should be trained to use that product in a
safe and coordinated manner in compliance to established safety practices. The
operators should also be familiar with documentation, which is connected with the
actual operation of the completed equipment.
Note: The term-completed equipment refers to a third party constructed device, which
contains or uses the product associated with this manual. Note on the Symbol used in
this Manual
At various times through out this manual certain symbols will be used to highlight
points of Information, which are Intended to ensure the users personal safety and
protect the integrity of equipment. Whenever any of the following symbols are
encountered it’s associated.
Note must be read and understood. Each of the symbols used is listed below; with a
brief description of its meaning.
Warning !
This product can only function correctly and safely if it is transported,
stored, setup, and installed correctly, and operated and maintained as
recommended.
Warning !
1. Module Overview
This analog input module converts input voltage or current values into equivalent
binary values. This is sigma - delta type A/D conversion. It provides 8 non-
isolated channels. The individual channel can be configured for specific type
of voltage or current input. The voltage and current ranges are –
-10 to 10V
0 to 10 V
0 to 5 V
1 to 5 V
0 to 20 mA
4 – 20 mA
The resolution of ADC is 305.176 µV / 1.221 µA for voltage / current input irrespective
of range. The parameters that are passed to the module for advanced
processing are –
input filter frequency (50 / 60 / 250 / 500 Hz)
open circuit value
number of averaging samples
This is an intelligent module with on-board processor and memory. The data transfer
between CPU module and analog input module takes place by 'READ_W' /
‘IM_Read’ and 'WRITE_W' / ‘IM_Write’ functions in the application program.
The module status is available in input image and commands can be issued
through output image.
The figure on next page shows front view of analog input module
4308
Terminal Block ANALOG INTPUT
Fixing Screw 8 CH – V/I
01
NO 24 V SUPPLY Module
02 CPU ERROR Status
03 CONF. ERROR LEDs
04
05
06
07
08
09
10 CH0
11 CH1
V IN0
Front Shield 12
V IN1 CH2
Plate 13
I IN0 CH3 Channe
14
15
I IN1 CH4 Status
COM 0 LEDs
16 CH5
COM 1
17 CH6
38 Pin 18
V IN2
CH7
Terminal 19 V IN3
I IN2
Block 20
I IN3
21
COM 2
22
COM 3
23
V IN4
24
V IN5
25
I IN4
26
I IN5
27
28
COM 4 IO Label
COM 5
29
V IN6
30
V IN7
31
I IN6
32
I IN7
33
COM 6
34
COM 7
35
+ 24 V
36
Terminal Block GND
37
Fixing Screw 38
EARTH
The analog module can be configured in any IO slot of the PLC. The number of analog
input modules is limited by back panel current capacity. In general a channel
requires following information –
registers to hold configuration information (2 words)
register to hold data (1 word) and
registers to hold status information (1 word)
2. Module Operation
This chapter helps in getting started with the analog input module. It describes the
basic operation of the module. This chapter explains operational details of:
• Block Diagram
• Analog input Types and Range.
• On-Board Processor Operations
• Module Information
At the time of application program development, the module can be configured using
the programming software so that above special features can be used..
The module provides eight analog to digital channels for voltage/ current input. CPU
bus is optically isolated from ADC circuit. ADC operates on the data from the
channels. The enabled channel input signals are multiplexed and then
amplified for ADC input. Thus sigma-delta (Σ/ ∆) ADC converts only enabled
analog channels to digital value one by one. The converted count for each
channel is manipulated by on-board processor and binary data is transferred
to module memory, which holds channel data information.
The configuration, data, status information is available in dual port RAM on the
module. The configuration of all channels is transferred to the module memory
using WRITE_W / IM_Write function in the application program. Similarly data
and status of all channels can be read by READ_W / IM_Read function in the
application program.
The module requires external 24 VDC supply for ADC circuit operation. Internally DC-
to-DC converter generates ±15 VDC and ±5 VDC as required by each
channel. If 24 VDC is absent or on-board glass fuse is blown, module
generates 'No 24 V Supply' signal for main CPU. The fuse protection for
external 24 VDC supply is provided on module.
This section describes the analog input types and data range of binary values.
The analog input module is intelligent module with on-board processor. The functions
of on-board processor are explained in the sections below.
After power ON, if 24 V supply to module is absent or on-board fuse is blown then on-
board processor sets Ix.0 bit of input image. After power ON, this processor
carries out self test. During self-test and if hardware error is detected, Ix.0 bit
is set. Also CPU fault LED on front panel is put ON indicating that module is
not accessible. During module operation, if module hardware is found faulty or
watchdog error is detected, Ix.0 bit is set.
If the module hardware is OK, Ix.0 bit is cleared. The module waits for configuration
from the CPU module. After reception of valid configuration of input channels,
the module starts sampling and digital conversion cycle of enabled channels.
The module continues sampling, converting the channels and updating module
memory even after the PLC is put in STOP mode. But In this case, CPU
module does not read the channel data and status.
The module samples the input channel and converts voltage or current input to its
digital value one by one. After power on, as shown in the figure below, only
enabled channels are converted. If any error like invalid configuration is
detected, channel is not converted. The disabled channels are bypassed
retaining earlier values. After one channel conversion, module initiates next
channel conversion. During this conversion period, module processes
converted data of previous channel. This process includes averaging as per
configuration. Thus the processed data for previous channel is made available
during this period. After converting all healthy channels, processed data and
status information of all the channels is transferred to respective memory area
on the module. This cycle continues. Thus when the processor module
performs READ_W operation, it reads either old or new information i.e. data
and status of channels.
The module takes certain time to sample all enabled channels and convert into digital
value. The required time is the module update time. The factors affecting
module update time is filter frequency selected and number of channels
enabled. The module update time is minimum when only one channel is
enabled. Likewise the module update time is maximum when all channels are
enabled.
The module incorporates a digital low pass filter to reject noise on the input signal. The
digital filter is programmable. It provides better noise rejection for low filter
frequencies. Its noise rejection decreases as filter frequency is increased. Also
filter frequency affects channel update time. The channel update time reduces
as filter frequency is increased. The following shows update times required for
different filter frequencies.
2.3.3 Averaging
The module provides user selectable averaging facility so that stable value is available
for processing and necessary control action. The module samples and
converts enabled channels one by one. The module keeps digital value into
different memory locations. Depending on the averaging count, the module
performs averaging of those many previous readings and updates channel
data information.
Thus if the averaging counts of channel 0, 1 and 2 are 0, 4 and 8 respectively, then
initially data of channel 0, 1 and 2 are updated after 1, 4 and 8 conversion
cycles respectively. After that, it gets updated in every cycle. One conversion
cycle means sampling and converting all enabled channels as explained in
chapter 2.3.2. Thus combination of filter frequency and averaging count can
be selected to get optimum channel update time and stable temperature
reading.
This section explains the entire information required and available with analog input
module. The following points are discussed.
• Input Output Image Mapping
• Memory Mapping
• Commands
• Module Status Bits
Input output image mapping related to analog input module is shown below.
The module consumes 8 input bits (1 byte) of input image and 8 output bits (1 byte)
of output image. CPU reads the status of module in input scan. CPU writes
user commands to module in output scan. For immediate updation of input
and output image in application program, IMM_IN / Refresh_In and IMM_OUT
/ Refresh_Out functions can be used in application program whenever
required. For the details refer chapter 2.4.3 and 2.4.4.
The memory mapping related to analog input module is shown in figure below.
CPU Module `
Logic Scan
16 words hold configuration 16 words hold configuration information
information of 8 channels of 8 channels
Ch 0 Configuration MW66 Ch 0 Configuration MMW256
WRITE_W
Ch 0 Configuration MW68 EN ENO Ch 0 Configuration MMW258
Ch 1 Configuration MW70 Ch 1 Configuration MMW260
Ch 1 Configuration MW72 SLOT
Ch 1 Configuration MMW262
DATA
Ch 7 Configuration MW94 Ch 7 Configuration MMW284
Ch 7 Configuration MW96 LEN Ch 7 Configuration MMW286
ADDR
Logic Scan
9 words hold data for 8 channels 9 words hold data for 8 channels
Ch 0 Data MW100 Ch 0 Data MMW00
READ_W
Ch 7 Data MW114 EN ENO Ch 7 Data MMW14
SLOT
8 words hold status of 8 channels 8 words hold status of 8 channels
Ch 0 Status MW116 DATA Ch 0 Status MMW16
LEN
Ch 7 Status MW134 Ch 7 Status MMW30
ADDR
The configuration from PLC variable area is transferred to module memory when
WRITE_W / IM_Write function gets executed in application program i.e. in
logic scan. The module takes action on valid configuration information. After
power on, the module starts its channel conversion operation only after
receiving valid configuration. If channel configuration is modified, it takes
effect only in the subsequent conversion cycle. The channel configuration can
be modified using WRITE_W / IM_Write function. Similarly channel can be
enabled or disabled during normal operation for optimum results.
The channel data and status information can be read from the module using
READ_W / IM_Read function.
2.4.3 Commands
As discussed in chapter 2.4.1, output image bits are used as user commands to
module. User can issue various commands to module through application
program. CPU writes commands in output image area of module in output
scan. The module reads output image area cyclically and takes appropriate
action. If 'IMM_OUT' / ‘Refresh_Out’ function is executed in logic scan for a
particular slot, it stops current logic scan, executes output scan for defined slot
and resumes logic scan again. This is useful when ever immediate updation of
output image is needed. The functions of output image bits are given below.
Bit
No. Command Status Description
Address
Auto ON It gives command to ADC to calibrate itself.
1 Qxx.0 Calibration
OFF Auto calibration command is OFF.
Normally, ADC is calibrated during self test after power ON and when ever 24 VDC
power to the module is switched ON. Also, it is calibrated at regular interval
during operation. The output image bit Qxx.0 is additional facility to the user to
calibrate ADC when ever required.
As discussed in chapter 2.4.1, input image bits are used as module status indications.
User can check the module status through application program. The module
writes status in its input image area cyclically. The CPU reads this input image
area in input scan. If 'IMM_IN' / ‘Refresh_In’ function is executed in logic scan
for a particular slot, it stops current logic scan, executes input scan for defined
slot and resumes logic scan again. This is useful when ever immediate
updation of input image is needed. The functions of input image bits are given
below
Whenever accessing the module, user must check the module status bit Ixx.0.
The installation procedure for analog input module is same as any other discrete I/O
module.
Put the module in to the desired slot of the PLC.
Tighten the screw provided at the top of the module.
Connect the terminal block at the front of the module and tighten it.
01
02
03
04
05
06
15 I IN1
Current Input connected to 16
COM 0
channel 3 17
COM 1
V IN2
18
19 V IN3
I IN2
20
21 I IN3
22 COM 2
23 COM 3
V IN4
24
25 V IN5
26 I IN4
27 I IN5
COM 4
28
29 COM 5
V IN6
30
31 V IN7
I IN6
32
+ 24 VDC I IN7
33
GND 34
COM 6
35 COM 7
EARTH + 24 V
36
37 GND
38 EARTH
In figure, first channel is configured for voltage input where as fourth channel is
configured for current input.
For interfacing analog signals, 38 pin removable terminal block is provided. The
voltage input is connected to terminals V INn and COMn. Here n is channel
number from 0 to 7. Current Input is connected to terminals I INn and COMn.
To connect current input, short terminals V INn and I INn for respective
channel. This is shown for the channel 3 in figure.
Being susceptible to industrial noise, analog signal is to be carried out on the field
through shielded twisted cable. Connect both ends of shield to Earth busbar
in control panel.
For functioning of analog input module, external 24 VDC supply is required. Connect
24 VDC supply between terminals 36 (+ 24 V) and 37 (GND). Connect terminal
38 to earth busbar in the control panel.
All the normal precautions concerning the wiring and protection of an electronic
equipment in an industrial environment should be observed. To guard against
coupling noise from one conductor to another, follow the guidelines given
below.
Depending upon the type of modules used in PLC, separate ducts should be provided
for
• Power circuit wiring and power cables.
• Input cables.
• Output cables.
• All cables carrying low level signals for analog IO modules,
thermocouple/ RTD input modules, for communication, high frequency
pulse input and output.
The analog input module provides 8 analog input channels, which can be
independently operated. Configuring the slot for the module is just like any
other discrete IO module only. The programming software DOXMINI+ (for
Nexgen 4000 PLC) and CoDeSys (for Nexgen 5000 PLC) is used for
configuration and programming. The module consumes 1 byte of input image
and 1 byte of output image. The input image is used for reading status of the
module. The output image is used for writing user commands to the module.
For more details, refer chapter 2.4.3 and 2.4.4. The IO byte consumption
along with configuration of Nexgen4000 PLC is shown below.
Input module in first slot 0 consumes IB0 to IB3 of input image. Output module in slot 1
consumes QB4 to QB7 of output image. The analog input module consumes
IB8 of input image and QB8 of output image.16 DC Output module in slot 3
consumes QB9 and QB10 of output image.
Input module in first slot 0 consumes IB0 to IB3 of input image. Output module in slot 1
consumes QB0 to QB3 of output image. The analog input module consumes
IB4 of input image and QB4 of output image.16 DC Output module in slot 3
consumes QB5 and QB6 of output image.
The analog input module can be configured in any slot of the PLC. The 8 channels
can be independently configured for different types of analog inputs.
After power on the configuration of one or more channels can be transferred to the
module using WRITE_W / IM_Write function. The PLC variables hold channel
configuration. The channel configuration information includes –
Input type
Filter frequency
Open circuit value
Channel Enable
Averaging
Item Description 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-10 to +10V 0 0 0 0 0
0 to 10V 0 0 0 0 1
Input 0 to 5V 0 0 0 1 0
Type 1 to 5V 0 0 0 1 1
0 to 20mA 0 0 1 0 0
4 to 20mA 0 0 1 0 1
50 Hz 0 0 0
Filter 60 Hz 0 0 1
frequency 250 Hz 0 1 0
500 Hz 0 1 1
Zero 0 0
Open
Upper scale 0 1
Circuit
Lower scale 1 0
Value
Invalid 1 1
Reserved -- 0
Channel Disabled 0
Status Enabled 1
Reserved 0 0 0 0
Item Description 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0
4 0 1
Averaging
8 1 0
16 1 1
Input type
The analog input module supports different types of inputs. The inputs include
-10 to 10V
0 to 10 V
0 to 5 V
1 to 5 V
0 to 20 mA
4 to 20 mA
Filter frequency
Next three Bits, Bit5 to Bit 7 define the low-pass filter frequency. One out of four filter
frequencies can be selected for a module. The filter frequency selected for
channel 0 is applied for all the channles irrespective of any selection.by user
for remaining channels.
The filter frequency affects noise rejection on incoming analog signal. A lower filter
frequency increases noise rejection. Also it affects channel update time. So
select a filter frequency considering acceptable noise and channel update
time.
Next two bits, bit 8 and bit 9 define the value of the channel when the open circuit is
detected.
The module detects open circuit of a channel for 4-20 mA and 1 to 5 V input types. In
such open circuit condition, the channel value can be set to any one of above
options considering safety in control action. If such open circuit is detected for
a channel, corresponding channel LED starts flashing.
Channel Enable
Bit11 defines the enable status of the channel. If it is ‘0’ Channel is disable and if it is
‘1’ Channel is enable. The module samples only enabled channels and
converts into digital value. Thus enabling only used channels can minimize the
channel update time.
Averaging
Next two Bits, Bit16 and Bit 17 define the selection of sampling value for averaging.
The module provides averaging facility so that stable value is available for processing
and necessary control action. The module samples and converts enabled
channels one by one. The module keeps digital value into different words.
Depending on the averaging count, the module performs averaging of those
many words and updates channel data information.
Thus if the averaging counts of channel 0, 1 and 2 are 0, 4 and 8 respectively, then
data of channel 0, 1 and 2 are updated every 1, 4 and 8 conversion cycles
respectively. One conversion cycle means sampling and converting all
enabled channels. Thus combination of filter frequency and averaging count
can be selected to get optimum channel update time.
Channel Data
The module memory words MMW #0 to MMW #14 are module memory words for
channel data. For enabled channels, this information is updated cyclically in
module. The data is read and stored in PLC variables using READ_W /
IM_Read function in application program.
Channel Status
The module continuously updates status of all channels into its memory. The
processor module can read the status information as required using READ_W
function. This information is also useful to check validity of configuration data.
This status information is stored in bit form in one word for each channel starting from
module memory address 16. The following table gives status bit information
available.
The copy of Bit 0 to Bit 11
from configuration word.
Item Description 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-10 to +10V 0 0 0 0 0
0 to 10V 0 0 0 0 1
Input 0 to 5V 0 0 0 1 0
Type 1 to 5V 0 0 0 1 1
0 to 20mA 0 0 1 0 0
4 to 20mA 0 0 1 0 1
50 Hz 0 0 0
Filter 60 Hz 0 0 1
frequency 250 Hz 0 1 0
500 Hz 0 1 1
Zero 0 0
Open
Upper scale 0 1
Circuit
Lower scale 1 0
Value
Invalid 1 1
Reserved -- 0
Channel Disabled 0
Status Enabled 1
Config Valid 0
Invalid 1
Open No open circuit 0
Ckt. Open circuit 1
Under- No under range 0
range Under range 1
Over No over range 0
range Over range 1
The copy of Bit 0 to Bit 11 from configuration word is available in status word as it is.
This information is useful to check validity of configuration as written by
WRITE_W function when ever configuration is set or modified. The application
program should confirm validity of configuration before reading channel data.
Configuration Error
If configuration error bit is set, ‘configuration Error’ LED ( yellow colour )on module
glows.
If open circuit error bit is set for a channel , corresponding input indication LED (green
colour) on module starts flashing. The channel data holds the data as per
configuration. It can be zero or upper scale reading or lower scale reading.
The configuration data in PLC variables is transferred to the analog input module
when 'WRITE_W' function is executed. The data in the PLC variables can be
updated using functions like 'MOV_W', arithmetic or any other functions. The
data from analog input module memory can be transferred to PLC variables
when 'READ_W' function is executed.
The WRITE_W function below shows data transfer from the CPU module's memory to
analog input module memory. The details of transfer are -
• The analog input module is configured in slot 2 of PLC
• Start address of memory on the CPU module is MW50
• Length of data area to be transferred is 16 words
• Address on the analog input module in slot 2 is #256
'WRITE_W' function gets executed when condition for enable 'EN' is ON. 'ENO' output
becomes ON, when EN is ON and function is executed successfully. ENO is
OFF if
• Parameters of function are invalid or not within specified range.
• analog input module is not accessible to CPU module
The 'READ_W' function below shows data transfer from the analog input module
memory to CPU memory. The details of transfer are -
• The analog input module is configured in slot 2 of PLC
• Address on the analog input module in slot 2 is #0
• Start address of memory on the CPU module is MW100
• Length of data area to be transferred is 8 words
'READ_W' function gets executed when condition for enable 'EN' is ON. 'ENO' output
becomes ON, when EN is ON and function is executed successfully. ENO is
OFF if
Parameters of function are invalid or not within specified range.
The module is not accessible to CPU module
Example of basic application program is given below. For the same, refer Nexgen PLC
configuration shown in chapter 4.1.
I 8.0 is a module status bit as 'Module Not OK' bit. I8.0 is set if 24 VDC supply to
module is not healthy and / or hardware fault, watchdog fault is observed on
module.
I 8.1 is a channel status bit as. I 8.1 is set if for one or more channels, configuration is
invalid and / or any channel error like open circuit is observed.
While developing application program, first check whether the module is healthy. For
the same, check 'Module Error' bit S 4.2 and 'Module Not Ok' bit I8.0. If any bit
is set, declare respective fault. In this case, module is not accessible. If both
are OFF, then only enable 'WRITE_W' and 'READ_W' functions for analog
input module.
The configuration information consists of basic attributes like input type, filter (50 Hz,
60 Hz, 250 Hz, 500 Hz), return value in case of open circuit of input signal
(zero, upper scale, lower scale) and no. of averaging samples (1, 4, 8, 16).
This configuration is to be transferred to module memory MMW#256 to
MMW#286, if all the 8 channels are used. In this example, channels are
configured for
• 0 – 10 VDC
• 50 Hz filter
• Return value is of upper scale in case of open circuit of input signal
• No. of averaging samples is 16
For this configuration, the value $0801 and $0003 should be written to respective
module memory word.
Configuration Word 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
$0801 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1
Configuration Word 2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
$0003 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
Reserved 16
averaging
samples
So MW50 and MW52 should contain $0801 and $0003 , for the configuration
required. This information is transferred to analog module memory MMW#256
to MMW#286, when 'WRITE_W' function is executed.
When 'WRITE_W' function is executed successfully, ENO output becomes ON, When
ENO is ON, set 'Static Configuration Write' command bit informing the module
to accept the static configuration or change in configuration. Once this
information is transferred to module, it is valid as long as PLC power is
present. It is recommended to enable 'WRITE_W function when
• Warm start is observed i.e. System bit S0.6 is ON
• Cold start is observed i.e. System bit S0.7 is ON
• Module Error bit becomes OFF i.e. System bit S4.2 is ON
• Module Not OK bit becomes OFF i.e. Input bit I8.0 is ON.
If 'WRITE_W' function is executed, M3.0 bit is set. If this bit is not ON even if function
enable conditions are ON, declare fault and take appropriate action. The bit
M3.0 is reset. If any error is detected.
After transferring configuration data to analog module memory, module configures the
channels and starts functioning accordingly. It takes about 500 ms time for
module to take necessary action if configuration is changed. So after a proper
delay (say 1 sec), enable 'READ_W' function. When 'READ_W' function is
executed, the binary values of channels stored in module memory MMW#0 to
MMW#14 are transferred to CPU memory MW#100 to MW#114 respectively.
If 'READ_W' function is executed successfully, M1.1 bit becomes ON. If this bit is not
ON even if function enable conditions are ON, declare fault and take
appropriate action.
To read the status of channels, read MMW#16 to MMW#30. The status can be read
continously or conditionally when input image bit I8.1 is ON.
With this status, appropriate action can be taken for reporting the error.
The configuration data in PLC variables is transferred to the analog input module
when 'IM_Write’ function is executed. The data in the PLC variables can be
updated using operators like 'MOVE', arithmetic or any other functions. The
data from analog input module memory can be transferred to PLC variables
when 'IM_Read' function is executed.
The ‘IM_Write’ function below shows data transfer from the CPU module's memory to
analog input module memory. The details of transfer are -
• The analog input module is configured in slot 2 of PLC
• The configuration information is stored in an 16 word array ‘Config’
• Length of data area to be transferred is 32 bytes
• Address on the analog input module in slot 2 is 256
The 'IM_Read function shows data transfer from the analog input module memory to
CPU memory. The details of transfer are -
• The analog input module is configured in slot 2 of PLC
• Address on the analog input module in slot 2 is 0
• The data to be stored in PLC variable array ‘AIData’
• Length of data area to be transferred is 8 words
'IM_Read' function gets executed when 'RD' is ON. 'Rd_ON' output becomes ON,
when EN is ON and function is executed successfully. ENO is OFF if
Parameters of function are invalid or not within specified range.
The module is not accessible to CPU module
So 8 words (MMW0 to MMW14) information on analog input module fitted in slot 2 are
transferred to the PLC variable AIData which is an array of data type INT.
Example of basic application program is given below. For the same, refer Nexgen PLC
configuration shown in chapter 4.1. In the configuration, following points are to
be noted.
%IX4.0 is a module status bit as 'Module Not OK' bit. %IX4.0 is set if 24 VDC supply to
module is not healthy and / or hardware fault, watchdog fault is observed on
module.
%IX4.1 is a channel status bit as. %IX4.1 is set if for one or more channels,
configuration is invalid and / or any channel error like open circuit is observed.
While developing application program, first check whether the module is healthy. For
the same, check 'Module Error' bit _BRACK_0_IOERR.2 and 'Module Not Ok'
bit %IX4.0. If any bit is set, declare respective fault. In this case, module is not
accessible. If both are OFF, then only enable 'IM_Write' and 'IM_Read’
functions for analog input module.
The configuration information consists of basic attributes like input type, filter (50 Hz,
60 Hz, 250 Hz, 500 Hz), return value in case of open circuit of input signal
(zero, upper scale, lower scale) and no. of averaging samples (1, 4, 8, 16).
This configuration is to be transferred to module memory MMW256 to
MMW286, if all the 8 channels are used. In this example, channels are
configured for
• 0 – 10 VDC
• 50 Hz filter
• Return value is of upper scale in case of open circuit of input signal
• No. of averaging samples is 16
For this configuration, the value 16#801 and 16#3 should be written to respective
module memory word.
Published Feb 2004 8 Ch Analog Input Module (4308)
Page 32 of 38 Document No.: ED-2002-015/V1.01
Messung Systems NEXGEN PLC I/O Modules
Configuration Word 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
16#801 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1
Reserved 16
averaging
samples
So configuration words should contain 2049(16#801) and 3, for the configuration
required. This information is transferred to analog module memory MMW256
to MMW286, when 'IM_Write' function is executed. The application program
required to handle analog input module is shown below along with comments
and PLC variable declaration.
Once analog input data is read successfully, the data can be processed as the
application requirement. If anaolg input data read is to be displayed on HMI or
SCADA, the varaible ‘AIData’ should be mapped to any memory varaible while
declaration like
Here the analog input data for the channels is stored in memory variable %MW100 to
%MW114 in integer format. Channel 0 data is stored in %MW100 while
channel 7 data is stored in %MW14.
If input image bit %IX4.0 or %IX4.1 is TRUE, the appropriate error should be declared
and further processing of anaolg input data read should be hold.
If input image bit %IX4.1 is TRUE, the status of all the channels can be read and
individual channel error and exact cause can be located with the help of an
application program as shown below.
5. Troubleshooting
In this chapter, following points related to analog input module are discussed.
The following table explains significance of LED provided for module status and
diagnostic purpose on the module.
MESSUNG SYSTEMS
EL – 2, J - Block, MIDC, Bhosari,
PUNE – 411 026. INDIA
Tel. – (+91) –020 – 2712 0807, 2712 2807
Fax. – (+91) –020 – 2712 0391