Professional Documents
Culture Documents
ED-2002-131 2Ch Analog VoltageCurrent Output Expansion Module (NE02AX) UserManual
ED-2002-131 2Ch Analog VoltageCurrent Output Expansion Module (NE02AX) UserManual
• Any commissioning or service engineer must be of a competent nature, trained and qualified to the local and national standards required to fulfill Load > 5 KΩ 0 to 500 Ω (Inclusive of wire resistance)
that job. These engineers should also be trained in the use and maintenance of the completed product in a safe and coordinated manner in Expansion Unit backside view
compliance to established safety practices.
Channel update time 1 ms for two channels
• Provide external interlock circuit like emergency stop or protective circuit to keep the systems safe in case there is problem in the PLC. Output settling time 2 msec inclusive of output rise time for 0 to 10 VDC typically To remove unit from the rail, follow the reverse of process given above.
• For output, place fail safe protective circuit external to PLC to ensure product operates safety in case of PLC fault condition. Also built external Channel to channel Nil
output monitoring circuit to identify the output to which the problem has occurred. Isolation
Channel to backplane Optical 1.5 KV INTERFACING EXPANSION
• Protect the product from conductive dust, corrosive gases, wire debris, flammable gases, rain and fluid from entering into the product through
ventilation slits. Product should not be exposed to high explosive risk, excessive magnetic interference & inflammable substances. Module current consumption 125 mA at 24 VDC, expansion unit is powered by base unit through expansion cable Up to 4 expansion units can be interfaced to a base unit. Expansion unit has interface cable strip (300 mm length) with polarized plug on
• Do not paint the product.
the left side. This interface cable can be connected to a base unit or another expansion unit. It also has a socket on the right side to which
Output short / open circuit protection Continuous another expansion unit can be connected.
• Do not modify, dismantle, re construction and repair the product. If this product emit smoke or an unusual odour or unusual sound or unusual
operation, immediately switch OFF the power to the product. If the product is continued in operation under such state, this shall result in fire & CPU can write channel configuration and data to expansion unit buffer memory by The figure below shows expansion unit interfaced to a base unit.
Module access
damage the product. Contact the nearest authorized Sales / Repair agency of this product. executing function IM_Write
• The unit supply is 24 VDC as supplied by base unit. Utmost precaution is required to be taken to avoid connection of AC mains to the supply I/O memory consumption 16 input points + 16 output points
or any of the DC input or Output terminals. Connecting mains to supply may damage the unit permanently. The Relay wiring, if on AC, should
be effectively isolated from DC wiring physically. Operating temperature 0 to 55 °C ambient
• This product does not contain any intentionally added mercury or cadmium. In case this product is required to be disposed off it should be I/O connections 10 pin removable terminal block
done treating it as 'Industrial Waste' and disposed off adhering to all relevant local and national laws of the concerned country.
EMC is applicable as per base unit. *Overall accuracy includes offset, gain error and non linearity and repeatability.
1 OVERVIEW
This is Nexgenie series expansion module. It provides 2 non isolated channels and 12 bit resolution DAC, is used to convert 12 bits digital 3 LED INDICATIONS
value into four types of analog outputs : 0 to 10 VDC, -10 to +10 VDC and 0/4 to 20 mA. This is R-2R ladder type D/A conversion. The
individual channel can be configured for specific type of output range. LED Colour Status Significance
Connection Cable
35 mm
DIN Clip
Voltage output is available between terminals 01 and 03 for channel 0 and between terminals 05 and 07 for channel 1.
7.5 mm Current output is available between terminals 02 and 03 for channel 0 and between terminals 06 and 07 for channel 1.
DIN rail
It is recommended to use shielded twisted pair cable to connect analog output signal from module to field device.
Left view Front view Connect cable shield at module end and at device end to proper earth directly
!
Example 2 [User defined configuration with 4 - 20 mA output type]
6 MODULE MEMORY MAPPING 7 PROGRAMMING
This programming example explains how to configure analog output channels for 4 to 20 mA output type. It is assumed that module is
Programmer writes module configuration by writing configuration information to specific module memory location (i.e. MMB 5220) by PLC application program is developed using programming software CoDeSys. configured in slot 2.
executing function IM_Write. Once configuration is over, programmer can write channel data to respective module memory word (MMW) By default, both channels are configured for 0 to 10 VDC output type. The POU named as “Expansion_2Ch_AO_Handling_4to20mA” need to be called in PLC_PRG.
by executing function IM_Write.
Programmer can write channel data (0 to 4095 for 0 to 10 VDC and current type output, -2048 to 2047 for -10 to +10 VDC type output) 0001 (*In this program block, configures analog channel outputs to 4 to 20 mA output type and writes data to output channel*)
Channel Configuration Byte to respective MMW by execution of IM_Write function in application program. 0002 PROGRAM Expansion_2Ch_AO_Handling_4to20mA
Channel Configuration MMB 5220 Module generates equivalent output signal at the channel. 0003 VAR
0004 SlotNum:BYTE:=2; (*To be intialized to slot number from 1 to 4 in which expansion module is fixed*)
Channel Data Word 0005 PSU_Fault AT %IX6.6: BOOL; (*TRUE if onboard analog section power supply is faulty*)
This section discuss actual application programs to handle analog output channels 0006 DAC_OverTemperature AT %IX6.7: BOOL; (*TRUE in case of DAC over temperature*)
Channel0 Data MMW 6100
Example 1 and 2 below handles single NE02AX module. 0007 Module_Ok: BOOL; (Becomes TRUE if expansion module is healthy*)
Channel1 Data MMW 6102 0008 Ch_config:BYTE:=16#OF; (*Here, both the channels are configured for 4 to 20 mA current output type
To handle more than 1 module,
0009 16#00 for 0 to 10 Vdc, 16#05 for -10 to +10 Vdc,
CHANNEL CONFIGURATION - Programmer has to create copy of respective program block (PRG type of POU)
0010 16#0A for 0 to 20 mA, 16#OF for 4 to mA*)
Right click on POU name in POU tab and Copy Object with New POU name. 0011 ConfigWrDn: BOOL; (*Becomes TRUE, if channel configuration is written successfully*)
Programmer configures individual channel output type by executing function IM_Write at rising edge of module detection bit (in system
- Initialize variable Slot_Num to slot number in which module is fixed. 0012 Ch_data: ARRAY [0..1] OF INT; (*Ch_data[0] and Ch_data[1] holds data for channel 0 and 1 respectively*)
variable _W_REG_STATUS). Once configuration is written successfully, channel data can be written to module memory to generate
0013 DataWrDn: BOOL; (*Become TRUE, if channel data is written sucessfully*)
equivalent analog output signal. - Initialize variable Ch_config as per required analog output type.
0014 END_VAR
By default, both the output channels are configured for 0 to 10 VDC output type, even if programmer does not configure module using - If required, rename local variables in the POU (e.g. Ch_config, Ch_data) for better understanding. But it is not mandatory.
function IM_Write. Details of channel configuration byte MMB 5220 is as shown below. - Call respective POU in PLC_PRG. 0001
_W_REG_STATUS.2 indicates that expansion unit in slot2 is detected.
So for every expansion module, programmer has to add and call one program block.
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
MMB 5220 Reserved Ch1 Ch0
Example1 [Default configuration with 0 - 10 Vdc output type] _W_REG_STATUS.2 PSU_Fault DAC_OverTemperature Module_Ok
0 to 10 VDC 0 0
Programming example1 below explains analog output channel handling for default analog output type i.e. 0 to 10 VDC. It is assumed
-10 to +10 VDC 0 1 that the module is configured in slot1.
Ch0 0002
0 to 20 mA 1 0 The POU named as “Expansion_2Ch_AO_Handling_DefaultConfig” need to be called in PLC_PRG. If expansion unit is not healthy, ConfigWrDn is reseted so that
when expansion unit becomes healthy again, then required configuration is written
4 to 20 mA 1 1 0001 (*In this program block writes data to analog output channels of type 0 to 10 Vdc. By default both channels are configured to 0 to 10
0002 Vdc output type*) Module_Ok ConfigWrDn
0 to 10 VDC 0 0 0003 PROGRAM Expansion_2Ch_AO_Handling_DefaultConfig R
-10 to +10 VDC 0 1 0004 VAR
0005 SlotNum:BYTE:=1; (*To be intialized to slot no. 1 to 4 in which expansion module is fixed*) 0003
Ch1 Function IM_Write writes channel configuration stored at Ch_config to module buffer memory address 5220
0 to 20 mA 1 0 0006 PSU_Fault AT %IX4.6: BOOL; (*TRUE if onboard analog section power supply is faultty*) Successful execution returns ConfigWrDn as TRUE.
0007 DAC_OverTemperature AT %IX4.7: BOOL; (*TRUE in case of DAC over temperature*)
4 to 20 mA 1 1 0008 Ch_data: ARRAY [0..1] OF INT; (*Ch_data[0] and Ch_data[1] holds data for channel 0 and 1 respectively*)
Module_Ok ConfigWrDn IM_Write
EN
0009 DataWrDn: BOOL; (*Becomes TRUE, if channel data is written sucessfully*)
Slot_Num Slot S ConfigWrDn
CHANNEL DATA 0010 END_VAR ADR(Ch_config) Data_Adr
0011 5220 MMW
Programmer can write channel data to respective module memory word by executing function IM_Write. The table below shows module 1 Len
memory words for channel 0 and 1.
0001
_W_REG_STATUS.1 indicates that expansion module in slot1 is detected. 0004
Module Data Function IM_Write writes channel data (Ch_data[0] and Ch_data[1]) to module buffer memory address 6100 and 6102 respectively.
Function IM_Write writes channel data (Ch_data[0] and Ch_data[1]) to module buffer memory address 6100 and 6102 respectively.
Successful execution returns DataWrDn as TRUE.
MMW 6100 Channel 0 data Successful execution returns DataWrDn as TRUE.
ConfigWrDn IM_Write
MMW 6102 Channel 1 data _W_REG_STATUS.1 PSU_Fault DAC_OverTemperature IM_Write EN
EN Slot_Num Slot DataWrDn
SlotNum Slot DataWrDn ADR(Ch_data[0]) Data_Adr
Programmer writes channel data to respective buffer memory address (6100 for channel0 and 6102 for channel1) and proportional 6100 MMW
ADR(Ch_data[0])) Data_Adr
voltage and current output is generated at output terminal 6100 MMW 4 Len
Channel generates zero output irrespective of channel data; 4 Len
• If channel data is out of range [not within 0 to 4095 for 0 to 10 VDC and current type output and not within -2048 to 2047 for -10 to Note : CoDeSys program files are available alongwith this manual.
+10 VDC type output]
• Base unit supply is below specified.
• If PLC is in STOP mode or base unit is faulty.
IO MEMORY
Expansion module consumes 2 bytes of input memory and 2 bytes of output memory. I/O memory is fixed slot wise. Significance of I/O
bits as shown in the table below.
CPU writes user commands to module in output scan.