Professional Documents
Culture Documents
MESSUNG SYSTEMS EL-2, J- Block MIDC Bhosari, Pune 411026.(INDIA) Tel: (+91)-020-712 0807, 712 2807. Email : marketing@ms.messung.com WEB: www.messung.com
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
Version 1.0
Description High Speed Mix Analog I/O Module (Ordering Code 4366)
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
INDEX
1. 1.1 1.2 1.3 2. Module Overview ..............................................................................................................5 High Speed Mix Analog Module Overview..................................................................5 LED Indications...........................................................................................................7 General Specifications ................................................................................................7 Module Operation .............................................................................................................8
2.1 Block Diagram.............................................................................................................8 2.2 Input Range ................................................................................................................9 2.3 Output Range............................................................................................................11 2.4 On-Board Processor Operations...............................................................................12 2.4.1 Power On Operations..........................................................................................12 2.4.2 Analog to Digital Conversion...............................................................................13 2.4.3 Digital Filter .........................................................................................................13 2.4.4 Digital to Analog Conversion...............................................................................14 2.5 Module Information ...................................................................................................15 2.5.1 Input Output Image Mapping...............................................................................15 2.5.2 Memory Mapping ................................................................................................16 2.5.3 Module Status Bits ..............................................................................................17 3. 3.1 3.2 3.3 4. Installations and Wiring...................................................................................................18 Module Installation ....................................................................................................18 Connection Details....................................................................................................18 Precautions to be taken ............................................................................................20 Configuration and Programming.....................................................................................21
4.1 Slot Configuration .....................................................................................................21 4.2 Data Information to Module.......................................................................................22 4.2.1 Analog Input Channel enable/ disable ................................................................22 4.2.2 Analog Output Channel Data ..............................................................................23 4.2.3 Digital Filter .........................................................................................................23 4.3 Analog Input Channel Data.......................................................................................23 4.4 Module Scan Time ....................................................................................................23 4.5 Programming with Nexgen 4000 CPU ......................................................................24 Programming with Nexgen 5000 CPU ......................................................................24 4.6
INDEX OF FIGURES
Figure 1 : Front View of High Speed Mix Analog Module..........................................................6 Figure 2 : Block diagram of High Speed Mix Analog Module ....................................................8 Figure 3 :Data Range of Analog Input Voltage Signal...............................................................9 Figure 4 :Data Range of Analog Input Current Signal.............................................................10 Figure 5 :Data Range of Analog Output Voltage Signal..........................................................11 Figure 6 :ADC Coversion Cycle ..............................................................................................13 Figure 7 : Digital Filter Action ..................................................................................................14 Figure 8 : Input Output Image Mapping of High Speed Mix Analog Module ...........................15 Figure 9 : Memory Mapping of High Speed Mix Analog Module ............................................16 Figure 10 :Connection diagram of High Speed Mix Analog Module .......................................19
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0 Published July 2002 Page 3 of 30
Messung Systems
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. b) Any commissioning or service engineer must be of a competent nature, trained and qualified to the local and national standards required to fulfill that job. These engineers should also be trained In the use and maintenance of the completed product. This Includes being completely familiar with all associated documentation for the said product. All maintenance should be carried out in accordance with established safety practices. 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 its 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 installed correctly, and maintained as recommended.
Warning !
The specifications of product and contents of manual are subject to change without notice.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
1. Module Overview
This chapter describes the following High Speed Mix Analog Module Overview LED Indications General Specifications
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
4366
Terminal Block Fixing Screw
MIXED ANALOG IO 4 IP 2 OP
01 02 03 04 05 06 07 08 09 10 11
CH0 CH1 CH2 CH3 V0 + I0 + V2 + COM 0 I2 + V1 + COM 2 I1 + V3 + COM 1 I3 + VOUT 1 COM 3 AG VOUT 2 AG
12 13 14 15 16 17
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
IO Label
FG
LED Indications
Front Door
Figure 1 : Front View of High Speed Mix Analog Module The module provides LED indications on the front. Brief information about channel can be written on the front door. Behind front door, 38-pin removable terminal block is provided for interfacing. The wiring details are shown on backside of front door. The high speed mix analog module can be configured in any IO slot of the PLC. The number of high speed mix analog module is limited by back panel current capacity. In all, 13 words information per module is available.
Published July 2002 Page 6 of 30 High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
2. Module Operation
This chapter helps in getting started with high speed mix analog module. It describes the basic operation of the module. This chapter explains operational details of: Block Diagram Input Range Output Range On-Board Processor Operations Module Information
At the time of application program development, the module can be configured using the programming software DOXMINI+. Refer chapter 4 for configuration and programming details.
On board Processor
Output 0 Driver DAC0 R-2R Channel 0 0 to +10 VDC Output Signal Output 1 Driver DAC1 R-2R Channel 1 0 to +10 VDC Output Signal
CPU Module
+ 5 VDC 5 V GND
+15 V
DC-to-DC Converter
-15 V +5 V GND
Messung Systems
The module provides four analog to digital channels for analog input. CPU bus is optically isolated from ADC circuit. The enabled channel input signals are multiplexed and then amplified by differential amplifier for ADC input. Thus sigma-delta (/ ) ADC converts only enabled analog channels to digital value one by one. On-board processor manipulates the converted count for each channel. It provides instantaneous as well as filtered channel data information. The input channels can be independently enabled or disabled. The analog input data information is available in dual port RAM on the module. The input channel selection information is transferred to the module memory using WRITE_W function in the application program. Similarly data of all channels can be read by READ_W function in the application program. The module also provides two digital to analog channels. CPU bus is optically isolated from DAC circuit. The data from CPU for two channels is stored in dual port module memory registers. DAC (R2R type) converts binary data to an equivalent analog output voltage. The module provides proportional 0 to + 10 VDC. In output driving stage, presets are provided for adjustments of gain and offset for each channel. These are factory settings and should not be tampered. The module works on 5 VDC supply from back plane. 5 VDC supply is directly given to digital circuit. Also, DC-to-DC converter generates isolated 15 VDC and + 5 VDC as required for analog section. If isolated supply doe analog section is not available to module, it generates 'No 5 V Supply' signal for main CPU.
0 VDC $0000
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
625 A $1
20.48 mA $ 7FFF
0 VDC $0000
20 mA $ 7D00
Figure 4 :Data Range of Analog Input Current Signal The module provides 15-bit resolution. The figure above shows digital data and associated input voltage values. For the range of 0 to +10 V ( 20 mA ), the digital value ranges from 0 to +32,000. The resolution is the smallest detectable change in analog signal. For 0 to +10 V range, the voltage span is 10 V and there can be 32,000 (15 bits) equal steps. Each step corresponds to 10 V / 32000 = 312.5 V Similarly, for 0 to 20 mA range, the current span is 20 mA and there can be 32,000 (15 bits) equal steps. Each step corresponds to 20 mA / 32000 = 625 A The table below shows typical data values in decimal as well as hexadecimal format and their equivalent voltage values.
Input Voltage Value 0 312. 5 V 1V 2V 3V 4V 5V 6V 7V 8V 9V 10 V 10.24 V Input Current Value 0 625 A 2 mA 4 mA 6 mA 8 mA 10 mA 12 mA 14 mA 16 mA 18 mA 20 mA 20.48 mA Data (Decimal) 0 1 3200 6400 9600 12800 16000 19200 22400 25600 28800 32000 32767 Data (Hexadecimal) 0 1 C80 1900 2580 3200 3E80 4B00 5780 6400 7080 7D00 7FFF
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
0 VDC $0000
Figure 5 :Data Range of Analog Output Voltage Signal The module provides 12-bit resolution. The figure above shows digital data and associated output voltage values. For voltage range of 0 to +10 V, the digital value ranges from 0 to +32,000 for user convenience. The resolution is the smallest detectable change in analog output signal. For 0 to +10 V range, the voltage span is 10 V and there can be 4,000 (12 bits) equal steps. Each step corresponds to 10 V / 4,000 = 2.5 mV The table below shows typical data values in decimal as well as hexadecimal format and their equivalent voltage values. Even though resolution is 2.5 mV ( 4000 steps in 0 to 10 VDC ), input range provided is 0 to +32,000 for user convenience.
Output Value 0 2.5 mV 1V 2V 3V 4V 5V 6V 7V 8V 9V 10 V 10.24 V Data (Decimal) 0 1 3200 6400 9600 12800 16000 19200 22400 25600 28800 32000 32767 Data (Hexadecimal) 0 1 C80 1900 2580 3200 3E80 4B00 5780 6400 7080 7D00 7FFF
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
2.4.2
Analog to Digital Conversion The module samples an analog input channel and converts analog input to its digital value one by one. After power on, conversion is started for enabled analog input channels. The disabled 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. The processed data for previous channel is made available during this period. After converting all healthy channels, processed data 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.
Channel
disabled
Channel
Channel
disabled
disabled
Channel 2 Conversion
Channel 0 Conversion
Channel 3 Conversion
Figure 6 :ADC Coversion Cycle The module takes certain time to sample all enabled channels and convert into digital value. The factors affecting module update time is 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. 2.4.3 Digital Filter Module provides analog input channel data as instantaneous value as well as filtered value. This is a digital filter implemented in software algorithm. User can set three parameters for the filter, which is applicable for all the four analog input channels. The significance of three filter parameters is explained below. Band 1 is a band within which analog input count is treated as valid analog input count. Module samples analog input channel in its scan and converts to equivalent binary count. This ADC cycle is explained in chapter 2.3.2. Module compares current count with previous count and if current count lies within band 1, then current count is valid count and respective memory locations are updated accordingly. If current count is crossing the band 1, then previous count is considered as valid count and respective memory locations are not updated. As explained in chapter 2.2, for analog input from 0 to 10 V, module provides equivalent 0 to 32,000 counts. If band 1 value is 50, then acceptable band is previous count band 1value.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0 Published July 2002 Page 13 of 30
Messung Systems
Band 2 parameter comes in picture when current analog input count crosses band 1. Once current count has crossed the band 1, this changed count is stored in temporary memory location. Previous count is treated as valid count. Now current analog input count is compared with band 2. This is to confirm whether the change in analog input count is a valid change or some erroneous change due to noise, etc. If current count is within band 2 , then current count replaces earlier count in temporary location. In this way if number of successive samples of current count lies within band 2, then only the change in analog input count is treated as valid and current count is transferred to respective memory location. Parameter delay count decides for how many samples the change in analog input count is to be confirmed. If at any point, current count is again not within band 2, then changed value replaces earlier count in temporary memory location and again change is validated for number of samples as defined in parameter delay count. Thus, once the change in analog input is detected, it is confirmed if number of samples lies within a band defined as temporary memory location count band 2 value. The typical response for a step input is shown is figure below. Temporary Memory location
Analog input Sampling Instance
Band 1
Band 1
Figure 7 : Digital Filter Action 2.4.4 Digital to Analog Conversion Once ADC cycle is over, module reads the binary data from respective memory locations and transfers that data to DAC serially. DAC converts binary data to equivalent voltage signal. This signal is then amplified by amplifier. The amplifier stage has presets for adjusting offset and gain. The output of amplifier is 0 to 10 VDC signal. The presets for offset and gain adjustments are factory set and should not be tampered.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
Input Scan
Analog Input
Channel 3
Channel 0
IMM_IN ENO EN SLOT
Channel 1
Analog Output
Figure 8 : Input Output Image Mapping of High Speed Mix Analog Module The module consumes 8 input bits (1 byte) of input image and 8 output bits (1 byte) of output image in the CPU module. CPU reads the status of module in input scan. For immediate updation of input image in application program, IMM_IN functions can be used in application program whenever required. For the details refer chapter 2.4.4.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
2.5.2
Memory Mapping The memory mapping related to high speed analog module is shown in figure below.
CPU Module
6 Words
Analog input channels enable/disable Analog output channel 0 data Analog output channel 1 data Analog input filter value 1 Analog input filter value 2 Analog input filter value 3 MW50 MW52 MW54 MW56 MW58 MW60 WRITE_W ENO EN SLOT DATA LEN ADDR
6 Words
Analog input channels enable/disable Analog output channel 0 data Analog output channel 1 data Analog input filter value 1 Analog input filter value 2 Analog input filter value 3 MMW00 MMW02 MMW04 MMW06 MMW08 MMW10
9 Words
Analog input channel 0 data (Filtered) Analog input channel 1 data (Filtered) Analog input channel 2 data (Filtered) Analog input channel 3 data (Filtered) Analog input channel 0 data (Instant) Analog input channel 1 data (Instant) Analog input channel 2 data (Instant) Analog input channel 3 data (Instant) Module scan time MW100 MW102 MW104 MW106 MW108 MW110 MW112 MW114 MW116 READ_W ENO EN SLOT DATA LEN ADDR
9 Words
Analog input channel 0 data (Filtered) Analog input channel 1 data (Filtered) Analog input channel 2 data (Filtered) Analog input channel 3 data (Filtered) Analog input channel 0 data (Instant) Analog input channel 1 data (Instant) Analog input channel 2 data (Instant) Analog input channel 3 data (Instant) Module scan time MMW256 MMW258 MMW260 MMW262 MMW264 MMW266 MMW268 MMW270 MMW272
Figure 9 : Memory Mapping of High Speed Mix Analog Module The analog input channel enable/ disable configuration and filter values from PLC variable area e.g. memory or page is transferred to module memory when WRITE_W function gets executed in application program i.e. in logic scan. The module takes appropriate action on configuration information change immediately. After power on, the module starts converting enabled input channels. If filter values are modified or channel is enabled / disabled, it takes effect only in the subsequent conversion cycle. The configuration, filter values can be modified by using WRITE_W function. Similarly channel can be enabled or disabled during normal operation for optimum results. CPU writes binary data for two analog output channels to module memory words. The module coverts this data to equivalent analog output voltage. These values can be modified by using WRITE_W function. The analog input channel readings and module scan time count can be read from the module using READ_W function.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
2.5.3
Module Status Bits 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' 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
No. 1 2 3
Description Isolated supply to analog section is absent or faulty Isolated supply to analog section is healthy ADC hardware fault ADC healthy Module CPU watch dog fault Module not ready. Module CPU section healthy and ready
Note xx is slot number in which module is fixed. Ixx.1 to Ixx.5 is reserved and should not be used. Whenever accessing the module, user must check the module status bit Ix.0 and Ix.7. Whenever, isolated supply to analog section is absent or faulty, No 5 V Supply bit Ixx.0 is set. In this case, ADC Fault bit Ixx.6 also set.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
01 02 03 04 05 06 07 08 09 10 11
0 to 10 VDC Input
-+
0 to 20 mA Input
-To interface current input, it is necessary to short Vn + and In terminals of respective channel.
0 to 10 VDC Output
-+ --
0 to 10 VDC Output
Figure 10 :Connection diagram of High Speed Mix Analog Module In figure, analog voltage input is connected to channel 0 and analog current input is connected to channel 2. For interfacing analog signals, 38-pin terminal block is provided. Analog voltage input is connected to Vn+ and COMn terminals, where n is a channel number. Ensure correct polarity of analog input. Analog voltage input 0 is to be connected to terminal numbers 15 and 19. Analog voltage input 1 is to be connected to terminal numbers 21 and 25. Analog voltage input 2 is to be connected to terminal numbers 18 and 22. Analog voltage input 3 is to be connected to terminal numbers 24 and 28.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0 Published July 2002 Page 19 of 30
Messung Systems
Analog current input is connected to In+ and COMn terminals, where n is a channel number. Here, short corresponding Vn+ terminal to In+ terminal. Analog current input 0 is to be connected to terminal numbers 17 and 19. Current input 1 is to be connected to terminal numbers 23 and 25. Current input 2 is to be connected to terminal numbers 20 and 22. Current input 3 is to be connected to terminal numbers 26 and 28. Analog output is taken from VOUT n and AG. Analog output 1 can be taken from terminal numbers 27 and 29. Analog output 2 can be taken from terminal numbers 30 and 32. For functioning of high-speed mix analog module, 5 VDC supply is taken from back plane hence no external supply is required.
Outside control panel Following guidelines to be observed outside control panel. 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 and for communication. Wherever possible, it is recommended to Avoid parallel routing of cables carrying analog signals and power cables, etc over long distances Ensure that cables carrying analog signals cross at right angles to power cables so that minimum length of cable will be in close vicinity of power cables. Run cables on metallic surfaces Avoid number of joints Keep cable lengths as short as possible.
Published July 2002 Page 20 of 30 High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
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. High speed mix analog 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. The IO byte consumption along with configuration of Nexgen PLC is shown below.
Power Supply Module Nexgen 5000 CPU Module Slot 0 32 DC Input Module I0.0 to I0.7 I1.0 to I1.7 I2.0 to I2.7 I3.0 to I3.7 Slot 1 32 DC Output Module Q0.0 toQ0.7 Q1.0 to Q1.7 Q2.0 to Q2.7 Q3.0 to Q3.7 Slot 2 High Speed Analog Module I4.0 to I4.7 Q4.0 to Q4.7 Slot 3 16 DC Output Module Q5.0 to Q5.7 Q6.0 to Q6.7
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. High speed mix analog 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.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0 Published July 2002 Page 21 of 30
Messung Systems
This information is transferred to module memory by using 'WRITE_W function. The module takes action on this information immediately in its own scan. The required information is to be written to module memory words MMW #0 to MMW #10. 4.2.1 Analog Input Channel enable/ disable Bit wise information is stored in module memory word MMW #0 for four analog input channels as shown below.
15 14 13 12 11 10 9 Analog Input 0 Analog Input 1 Analog Input 2 Analog Input 3 Enable Disable Enable Disable Enable Disable Enable Disable 8 7 6 5 4 3 2 1 0 1 0
1 0 1 0 1 0
Analog input 0 enable/disable bit is bit 0 of MMW#0 and so on. If this bit is set, analog input channel 0 is enabled and module samples and converts input to equivalent binary value. Channel 0 data is updated accordingly. Also, corresponding channel LED indication (green) on module is switched ON indicating that channel is enabled. If this bit is reset, analog input channel 0 is disabled and the channel is not sampled and channel data is not updated. Corresponding channel LED indication on module is switched OFF. During module power ON, default value $000F is loaded to MMW#0 enabling all the four analog input channels. At the same time, all four channel LEDs are switched ON. User can modify this word by WRITE_W function for optimum module scan time.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
4.2.2
Analog Output Channel Data Module memory word MMW #2 holds data for analog output channel 0 whereas MMW #4 holds data for analog output channel 1.
MMW #2 MMW #4 Analog Output Channel 0 data Analog Output Channel 1 data
The data range is from 0 to 32,000 for 0 to 10 VDC output. For more details of analog voltage output and equivalent binary data, refer chapter 2.2. 4.2.3 Digital Filter Three filter values are to be programmed for stable analog input reading as per varous site conditions. These three values are written to module memory words MMW#6 to MMW#10. During module power ON, following default values are loaded.User can modify these words by WRITE_W function as per site conditions to get stable analog input reading.
Module Memory Word MMW #6 MMW #8 MMW #10 Item Filter Value 1 Filter Value 2 Filter Value 3 Default Value # 100 # 75 #3
375 x 10 -9
Published July 2002 Page 23 of 30
Messung Systems
'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. High speed analog module is not accessible to CPU module. M0.0 ------ WRITE_W ---M0.1 +---| |---+--------- |EN ENO|-+---------+---( )--| | #2 -|SLOT | | | MW50 -|DATA | | | #6 -|LEN | | | #00 -|ADDR | | | ------------------So 6 words (MW50 to MW60) information from CPU memory is transferred to the memory at address #00 onwards of high speed mix analog module fitted in slot 2. The 'READ_W' function below shows data transfer from the high speed mix analog module memory to CPU memory. The details of transfer are High speed analog module is configured in slot 2 of PLC Address on high speed mix analog module in slot 2 is #256 Start address of memory on the CPU module is MW100 Length of data area to be transferred is 9 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
Published July 2002 Page 24 of 30 High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
Parameters of function are invalid or not within specified range. High speed mix analog module is not accessible to CPU module
M0.2 ------ READ_W ----M0.3 +---| |---+--------- |EN ENO|-+---------+---( )--| | #2 -|SLOT | | | #256 -|ADDR | | | #9 -|LEN | | | MW100-|DATA | | | ------------------So 9 words (MMW256 to MMW272) information on high speed mix analog module fitted in slot #2 are transferred to the CPU memory words (MW100 to MW116). 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. I 8.0 is a module status bit as 'No 5 V Supply' bit. I8.0 is set if 5 VDC supply to module is not healthy. I 8.6 is a 'ADC Fault' bit. It is set in case of ADC circuit hardware fault. If this bit is set, analog input channel readings are not updated. I 8.7 is a module CPU circuit status bit as 'CPU Fault' bit. This is set in case of watchdog fault. S 4.2 is a 'Module Error' bit for the module fitted in slot 2. While developing application program, first check whether the module is healthy. For the same, check 'Module Error' bit S 4.2, 'CPU Fault' bit I8.7 and 'NO 5 V Supply' bit I8.0. If any bit is set, declare respective fault. In this case, module is not accessible. If all these bits are OFF, then only enable 'WRITE_W' and 'READ_W' functions for high speed analog module. Check 'ADC Fault' bit I8.6 while reading analog input channel data. In case of ADC fault, analog input channel data is not updated and so data is not valid. During self test of module at the time of power ON, default values are loaded in MMW#0 and MMW#6 to MMW#10. This enables all the four analog input channels indicated by four channels status LEDs. Default filters values are also loaded. If user wants to continue with this configuration, it is not necessary to write the configuration again. If user wants change the configuration, it can be done using WRITE_W function as explained further. When 'WRITE_W' function is executed successfully, ENO output becomes ON, 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
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
Module Error bit becomes OFF i.e. System bit S4.2 is OFF No 5 V Supply bit becomes OFF i.e. Input bit I8.0 is OFF CPU Fault bit becomes OFF and Input bit I8.7 is OFF
Any other condition as per requirement of application program e.g. memory bit M2.0 is ON. S4.2 M0.3 ------ WRITE_W ---M2.2 +---| |---+---|N|---|---------|EN ENO|-+---( )--| | | I8.0 M0.4 | | | +---| |---+---|N|---| #2 -|SLOT | | | | M8.6 M0.5 | | | +---| |---+---|N|---| MW50 -|DATA | | | | M2.0 M2.1 | | | +---| |---+---|P|--#6 -|LEN | | | | | #0 -|ADDR | | | ------------------If 'WRITE_W' function is executed successfully, M2.2 bit becomes ON for one scan duration. If this bit is not ON even if function enable conditions are ON, declare fault and take appropriate action. When 'WRITE_W' function is executed, necessary data from PLC variables MW 50 to MW60 is transferred to module memory MMW#00 onwards. The significance of PLC variables is as given below. MW 50 Channel enable / disable word MW 52 - Analog output channel 0 binary data MW 54 - Analog output channel 1 binary data MW 56 Digital filter 1 value for analog inputs MW 58 Digital filter 2 value for analog inputs MW 60 Digital filter 3 value for analog inputs After transferring this information to high speed mix analog module memory, module starts functioning as per requirement. Enable 'READ_W' function with any condition M1.0 with interlocks of Module Error bit S4.2, 'CPU Fault' bit I8.7 and ADC Fault bit I8.6. When 'READ_W' function is executed, the analog input channel readings stored in module memory MMW#256 to MMW#270 and module scan count stored in MMW#272 are transferred to CPU memory MW100 to MW#116 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.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
M1.0 S4.2 I8.7 I8.6 ------ READ_W ----M1.1 +---| |---+---|/|---+---|/|---+|---|/|---|EN ENO|-+--( )| | | | #2 -|SLOT | | | | | #256 -|ADDR | | | | | #9 -|LEN | | | | | MW100 -|DATA | | | ------------------After execution, filtered analog input data from four channels is available in PLC variables MW100 to MW106. Instantanous analog analog input data from four channels is available in MW108 to MW114. Module scan count is stored in MW116. This data can be proceesed further in application program.
'IM_Write' function gets executed when condition for enable ' Wr_Delay.Q' is ON. ' Config_Dn' output becomes ON, when EN is ON and function is executed successfully. Config_Dn is OFF if Parameters of function are invalid or not within specified range. High speed analog module is not accessible to CPU module.
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
So 6 words information from CPU memory is transferred to the memory at address #00 onwards of high speed mix analog module fitted in slot 2. The 'IM_Read' function below shows data transfer from the high speed mix analog module memory to CPU memory. The details of transfer are High speed analog module is configured in slot 2 of PLC Address on high speed mix analog module in slot 2 is #256 The Data to be stored in PLC variable array AIData Length of data area to be transferred is 9 words
Im_Read' function gets executed when condition for enable ' Rd_Delay.Q' is ON. ' Rd_Dn' 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. High speed mix analog module is not accessible to CPU module
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0
Messung Systems
MESSUNG SYSTEMS EL 2, J - Block, MIDC, Bhosari, PUNE 411 026. INDIA Tel. (+91) 020 712 0807, 712 2807 Fax. (+91) 020 712 0391
NEXGEN PLC I/O Modules Highspeed Mix Analog IO Module(4366) Document No.:ED-2002-006
High Speed Mix Analog Input Output Module(4366) Document No.: ED-2002-020/V1.0