background image

ANALOG IN 15 BIT  VOLTAGE/CURRENT 8CH  IC220ALG221

6226B_GE

33

Standard Method 2

Task:

The input channels are to be operated in different configurations. 
The channels are to be configured first (4x00

hex

).

After configuration, the measured values are to be read (0x00

hex

).

Configuration of the channels:

Procedure:

1

Install the terminal.

2

Connect the voltage (power up).

3

Configure each individual channel in the terminal in turn (initialization phase; e.g., in the 
initialization phase of the application program). 

4

Read the measured value for each channel in turn.

Initialization phase:

The appearance of the process data output word OUT[0] is as follows for all channels:

The process data output word OUT[1] indicates the parameters for each channel according to the 
task: For channel 1, it looks like this:

Parameter

Channel 1

Channel 2

Channel 3

...

Filtering by mean-
value generation:

No filtering
(01

bin

, 1

dec

)

16-sample average
(00

bin

, 0

dec

)

4-sample average
(10

bin

, 2

dec

)

...

Format:

IB IL
(000

bin

, 0

dec

)

IB IL
(000

bin

, 0

dec

)

IB IL
(000

bin

, 0

dec

)

...

Measuring range:

0 V to 50 V
(0110

bin

, 6

dec

)

±5 V
(0011

bin

, 3

dec

)

4 mA to 20 mA
(1010

bin

, 10

dec

)

...

OUT[0]

Bit

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Assignment

0

Command

0

0

0

0

0

0

0

0

bin

0

1

0

0

0

Z

2

Z

1

Z

0

0

0

0

0

0

0

0

0

hex

4

x

0

0

OUT[1]

Bit

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Assignment

0

0

0

0

0

0

Filter

0

Format

Measuring range

bin

0

0

0

0

0

0

0

1

0

0

0

0

0

1

1

0

hex

0

1

0

6

Summary of Contents for VersaPoint IC220ALG221

Page 1: ...Various current and voltage measuring ran ges Channels are configured independently of one another using the bus Measured values can be represented in five different formats 16 bit analog to digital converter Process data multiplex operation Diagnostic indicators Figure 1 The ANALOG IN 15 BIT VOLTAGE CURRENT 8CH terminal with connectors Please note that the connectors are not supplied as standard ...

Page 2: ...ng through the potential jumpers of the analog terminals as low as possible All of the analog terminals need a separate main circuit If this is not possible in your application and if you are using analog terminals in a main circuit together with other terminals place the analog terminals behind all the other terminals at the end of the main circuit D A I 8 S F 1 2 1 2 3 4 1 2 3 4 1 1 1 2 1 3 1 4 ...

Page 3: ... to digital converter Electrically erasable reprogram mable read only memory Amplifier Microprocessor monitoring Multiplexer I N T E R B U S 2 4 V U M 2 4 V U S U L U A N A U L E E P R O M O P C µ P M U X U I N 1 I I N 1 1 U I N 2 I I N 2 U I N 3 I I N 3 U I N 4 I I N 4 U I N 5 I I N 5 U I N 6 I I N 6 U I N 7 I I N 7 U I N 8 I I N 8 6 2 2 6 A 0 0 4 4 2 4 V 5 V 4 4 4 2 2 2 2 2 2 2 2 R E F S U P E R...

Page 4: ... pair cables Connect the shielding to the VersaPoint terminal using the shield clamp The clamp con nects the shield directly to FE functional earth ground on the terminal side Additional wiring is not required Isolate the shielding at the sensor or connect it with a high resistance and a capacitor to the PE potential 6 2 2 6 0 0 0 5 A n a l o g i n p u t s F E p o t e n t i a l A B E l e c t r i c...

Page 5: ... connection The sensors have the same reference potential Programming Data 1 2 1 2 3 4 1 2 3 4 1 2 1 2 3 4 1 2 3 4 1 2 1 2 3 4 1 2 3 4 1 2 1 2 3 4 1 2 3 4 D A I 8 S F 1 2 3 4 I N V o l t a g e s e n s o r t o c h a n n e l 1 I N S l o t C h a n n e l 1 2 3 4 5 6 7 8 C u r r e n t s e n s o r t o c h a n n e l 8 ID code 5Fhex 95dec Length code 02hex Process data channel 32 bits Input address area 4...

Page 6: ... 2 1 0 Assignment 0 Command 0 0 0 0 0 0 0 0 OUT 1 Byte bit view Byte Byte 2 Byte 3 Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Assignment 0 0 0 0 0 0 Filter 0 Format Measuring range Process Data Input Word 0 IN 0 Process Data Input Word 1 IN 1 Byte 0 Byte 1 Byte 2 Byte 3 IN 0 Byte bit view Byte Byte 0 Byte 1 Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Assignment 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Depends on th...

Page 7: ...tation the message Measured value invalid diagnostic code 8004hex appears in the process data input words for every channel scanned The message is displayed until the appropriate channel has been configured If the configuration is changed the message Measured value invalid diagnostic code 8004hex appears for a maximum of 100 ms Please note the extended runtime when a channel is configured for the ...

Page 8: ...hex Configure channel x and read measured value of channel x 0 1 1 0 0 0 0 0 6000hex Configure entire terminal all channels 0 1 1 1 0 Y Y1 Y0 7x00hex Commands for groups without mirroring Z2 Z1 Z0 Channel number Y2 Y1 Y0 Group number OUT 0 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment 0 Command 0 0 0 0 0 0 0 0 Channel group 0 X X X X X X X 0 0 0 0 0 0 0 0 Code Channel Code Group bin dec bin...

Page 9: ... confirmed in the input words with the set error bit Bit 9 and bit 8 Bit 6 to bit 4 OUT 1 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment 0 0 0 0 0 0 Filter 0 Format Measuring range Code Filter Filtering by Mean Value Generation bin dec 00 0 16 sample average default 01 1 No mean value generation 10 2 4 sample average 11 3 32 sample average Code Format bin dec 000 0 IB IL 15 bits default 001 ...

Page 10: ...l the use of bipolar ranges is not permitted on any other channel Code Measuring Range Voltage bin dec 0000 0 0 V to 10 V default 0001 1 10 V 0010 2 0 V to 5 V 0011 3 5 V 0100 4 0 V to 25 V 0101 5 25 V 0110 6 0 V to 50 V 0111 7 Reserved Code Measuring Range Current bin dec 1000 8 0 mA to 20 mA 1001 9 20 mA 1010 10 4 mA to 20 mA 1011 11 Reserved 1100 12 0 mA to 40 mA 1101 13 40 mA 1110 14 Reserved ...

Page 11: ... correctly If the command was not executed correctly the error bit is set in bit 15 of the input word IN 0 The error bit is set if one of the following reasons see page 29 There is no valid configuration for the channel scanned There was an invalid parameter during configuration A reserved bit was set The command is only mirrored if it has been executed completely That means for example that the 5...

Page 12: ...for the 3C00hex command For the commands 1x00hex 4x00hex and 6000hex IN 1 contains the mirroring of the specified con figuration IN 1 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment Firmware version Module ID Example 123hex Terminal equipped with firmware version 1 23 6hex IN 1 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment 0 0 0 0 0 0 Filter 0 Format Measuring range ...

Page 13: ...ite 16 IN 1 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment Measured value in the appropriate format SB Sign bit OC Open circuit AV Analog value OR Overrange 0 4 4 to 20 mA measuring range MSB Most significant bit LSB Least significant bit M S B L S B 0 1 4 1 3 1 2 1 1 1 0 9 8 7 6 5 4 3 2 1 1 5 S B A V 0 1 4 1 3 1 2 1 1 1 0 9 8 7 6 5 4 3 2 1 1 5 O R 0 4 O C S B A V I B S T I B I L I B R T S t...

Page 14: ... of one channel is mapped to every input word The display corresponds with the display in the input word IN 1 for the 0x00hex and 5x00hex commands Example 2 x 16 Bit Group A Channels 1 and 2 7400hex Command IN 0 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment 16 bit measured value channel 1 in the appropriate format IN 1 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment 16 bit measured val...

Page 15: ... 16 bit value Example 4 x 8 Bit Group A Channels 1 2 3 and 4 7000hex Command The status bits in IB ST format and the diagnostic messages in IB IL and standardized display format are not displayed in this configuration IN 0 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment 8 bit measured value channel 1 in the appropriate format 8 bit measured value channel 2 in the appropriate format IN 0 Bit 1...

Page 16: ...14 to 0 An additional bit bit 15 is available as a sign bit This format supports extended diagnostics Values 8000hex and 8100hex indicate an error The following diagnostic codes are possible Measured value representation in IB IL format 15 bits OR Overrange UR Under range Code hex Error 8001 Overrange 8002 Open circuit 8004 Measured value invalid no valid measured value avai lable e g because the ...

Page 17: ... 5 419 10 837 27 093 54 187 7530 30000 5 0 10 0 25 0 50 0 0001 1 166 67 µV 333 33 µV 833 33 µV 1 6667 mV 0000 0 0 0 0 0 0000 0 0 0 0 0 Input Data Word Two s Complement 5 V UIN 10 V UIN 25 V UIN hex dec V V V 8001 OR 5 419 10 837 27 093 7F00 32512 5 419 10 837 27 093 7530 30000 5 0 10 0 25 0 0001 1 166 67 µV 333 33 µV 833 33 µV 0000 0 0 0 0 FFFF 0 166 67 µV 333 33 µV 833 33 µV 8AD0 30000 5 0 10 0 2...

Page 18: ... 0 0 0000 0 0 0 Input Data Word Two s Complement 20 mA IIN 40 mA IIN hex dec mA mA 8001 OR 21 6746 43 3493 7F00 32512 21 6746 43 3493 7530 30000 20 0 40 0 0001 1 0 6667 µA 1 3333 µA 0000 0 0 0 FFFF 1 0 6667 µA 1 3333 µA 8AD0 30000 20 0 40 0 8100 32512 21 6746 43 3493 8080 UR 21 6746 43 3493 Input Data Word Two s Complement 4 mA to 20 mA IIN hex dec mA 8001 OR 21 339733 7F00 32512 21 339733 7530 30...

Page 19: ...er range Input Data Word Two s Complement 0 V to 5 V UIN 0 V to 10 V UIN 0 V to 25 V UIN 0 V to 50 V UIN hex dec V V V V 7FF9 32761 5 375 10 75 26 875 53 75 7FF8 32760 4 9988to 5 375 9 9975to 10 75 24 9939to 26 875 49 9878to 53 75 4000 16384 2 5 5 0 12 5 25 0 0008 8 1 221 mV 2 441 mV 6 1025 mV 12 205 mV 0000 0 0 0 0 0 Input Data Word Two s Complement 5 V UIN 10 V UIN 25 V UIN hex dec V V V 7FF9 32...

Page 20: ... 0000 0 0 0 Input Data Word Two s Complement 20 mA IIN 40 mA IIN hex dec mA mA 7FF9 32761 21 5 43 0 7FF8 32760 19 9951 to 21 5 39 9902 to 43 0 4000 16384 10 0 20 0 0008 8 4 8828 µA 9 7656 µA 0000 0 0 0 FFF8 8 4 8828 µA 9 7656 µA C000 16384 10 0 20 0 8000 32768 20 0 to 21 5 40 0 to 43 0 8001 32767 21 5 43 0 Input Data Word Two s Complement 4 mA to 20 mA IIN hex dec mA 7FFD 32765 21 5 7FFC 32764 19 ...

Page 21: ...1 10 9 8 7 6 5 4 3 2 1 0 SB Analog value SB Sign bit Input Data Word Two s Complement 0 V to 5 V UIN 0 V to 10 V UIN 0 V to 25 V UIN 0 V to 50 V UIN hex dec V V V V 7FFF 32767 4 999847 9 999695 24 999237 49 998474 7FFE 32766 4 999695 9 999390 24 998474 49 996948 4000 16384 2 5 5 12 5 25 0 0001 1 152 6 µV 305 2 µV 762 9 µV 1 5259 mV 0000 0 0 0 0 0 Input Data Word Two s Complement 5 V UIN 10 V UIN 2...

Page 22: ... 0 0 Input Data Word Two s Complement 20 mA IIN 40 mA IIN hex dec mA mA 7FFF 32767 19 999385 39 9987739 7FFE 32766 19 998779 39 9975586 4000 16384 10 0 20 0 0001 1 0 6104 µA 1 2207 µA 0000 0 0 0 FFFF 1 0 0006105 0 0012207 C000 16384 10 0 20 0 8001 32770 19 999385 39 9987793 8000 32768 20 0 40 0 Input Data Word Two s Complement 4 mA to 20 mA IIN hex dec mA 7FFF 32767 19 9995117 7FFE 32766 19 999023...

Page 23: ...nostics Values 8000hex and 8100hex indicate an error The following diagnostic codes are possible Measured value representation in standardized display format 15 bits Measuring Range Validity of One Bit 0 V to 5 V 5 V 1 mV 0 V to 10 V 10 V 1 mV 0 V to 25 V 25 V 1 mV 0 V to 50 V 10 mV 0 mA to 20 mA 4 mA to 20 mA 1 µA 0 mA to 40 mA 10 µA Code hex Error 8001 Overrange 8002 Open circuit 8004 Measured v...

Page 24: ... 187 5 419 152B 5419 5 419 54 187 5 419 1388 5000 5 0 50 0 5 0 0001 1 1 0 mV 10 0 mV 1 0 mV 0000 0 0 0 0 0000 1 0 0 1 0 mV EC78 5000 5 0 EAD5 5419 5 419 8080 UR 5 419 Input Data Word Two s Complement 0 V to 10 V UIN 10 V UIN hex dec V V 8001 OR 10 837 10 837 2A55 10837 10 837 10 837 2710 10000 10 0 10 0 0001 1 1 0 mV 1 0 mV 0000 0 0 0 0000 0 0 FFFF 1 1 0 mV D8F0 10000 10 0 D5AB 10837 10 837 8080 U...

Page 25: ...226B_GE 25 Input Data Word Two s Complement 0 V to 25 V UIN 25 V UIN hex dec V V 8001 OR 27 093 27 093 69D5 27093 27 093 27 093 61A8 25000 25 0 25 0 0001 1 1 0 mV 1 0 mV 0000 0 0 0 0000 0 0 FFFF 1 1 0 mV 9E58 25000 25 0 962B 27093 27 093 8080 UR 27 093 ...

Page 26: ... 0 0000 0 0 Input Data Word Two s Complement 20 mA IIN hex dec mA 8001 OR 21 6747 54AA 21674 21 6747 4E20 20000 20 0 0001 1 1 0 µA 0000 0 0 FFFF 1 0 001 B1E0 20000 20 0 AB56 21674 21 6747 8080 UR 21 6747 Input Data Word Two s Complement 40 mA IIN hex dec mA 8001 OR 43 349 10EE 4334 43 349 0FA0 4000 40 0 0001 1 10 0 µA 0000 0 0 FFFF 1 10 0 µA F060 4000 40 0 EF12 4334 43 349 8080 UR 43 349 Input Dat...

Page 27: ...10 mA Input data word Measuring range 10 V Measured value 5 V Input data word Format hex Value dec Value Measured Value IB IL 3A98 15 000 10 mA IB ST 4000 16 384 10 mA IB RT 4000 16 384 10 mA Standardized display 2710 10 000 10 mA Format hex Value dec Value Measured Value IB IL 3A98 15 000 5 V IB ST 4000 16 384 5 V IB RT 4000 16 384 5 V Standardized display 2710 5 000 5 V ...

Page 28: ...en circuit threshold in the higher level control system are freely definable Measured value representation in PIO format 16 bits Example of parameterization using PIO format Option 1 1 Configuring channel 1 2 Reading the measured value Option 2 Configuring channel 1 and reading the measu red value Significant Measured Values 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Analog value Channel 1 Filtering 16...

Page 29: ...d display formats offer additional diagnostic functions These are specified on page 16 and page 23 Command hex Code hex PF Meaning Note Remedy 8020 X I O supply voltage faulty Check the supply voltage of the station head e g UBK Check the potential jumper connection After module start 8040 X Module faulty Replace module 0x00 8004 There is no valid configuration for the channel scanned Configure ch...

Page 30: ... e g in the initialization phase of the application program 4 Read the measured value for each channel in turn Initialization phase According to the task the appearance of the process data output words is as follows With the command in OUT 0 the configuration according to OUT 1 is sent to the electronics module After configuration is complete the command and the configuration are mirrored in the p...

Page 31: ...data input word IN 1 Configure terminal OUT 0 6000hex OUT 1 0301hex Configuration completed successfully IN 0 6000hex IN 1 0301hex Error during configuration IN 0 F000hex IN 1 0301hex OUT 0 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Assignment 0 Command 0 0 0 0 0 0 0 0 bin 0 0 0 0 0 Z2 Z1 Z0 0 0 0 0 0 0 0 0 hex 0 x 0 0 Read measured value for channel 1 OUT 0 0000hex OUT 1 0000hex Command executed s...

Page 32: ... t e r m i n a l 6 0 0 0 0 3 0 1 h e x n 1 n n 1 O K R e a d m e a s u r e d v a l u e o f c h a n n e l n 0 x 0 0 0 0 0 0 h e x Y e s N o n 8 E v a l u a t e a n d r e m o v e e r r o r s O K N o Y e s Y e s N o 6 2 2 6 A 0 1 4 I n i t i a l i z a t i o n C y c l i c p r o g r a m s e q u e n c e f o r r e a d i n g t h e m e a s u r e d v a l u e s o f c h a n n e l s 1 t o 8 ...

Page 33: ...the process data output word OUT 0 is as follows for all channels The process data output word OUT 1 indicates the parameters for each channel according to the task For channel 1 it looks like this Parameter Channel 1 Channel 2 Channel 3 Filtering by mean value generation No filtering 01bin 1dec 16 sample average 00bin 0dec 4 sample average 10bin 2dec Format IB IL 000bin 0dec IB IL 000bin 0dec IB ...

Page 34: ...ead request is sent to the electronics module After the command has been executed it is mirrored in the process data input word IN 0 and the analog value xxxxhex or a diagnostic message yyyyhex is displayed in the process data input word IN 1 The appearance of the process data input and output words is the same as in example 1 Configure channel 1 OUT 0 4000hex OUT 1 0106hex Configuration completed...

Page 35: ...x x h e x n 1 n n 1 O K R e a d m e a s u r e d v a l u e o f c h a n n e l n 0 x 0 0 0 0 0 0 h e x Y e s N o n 8 E v a l u a t e a n d r e m o v e e r r o r s Y e s Y e s N o 6 2 2 6 A 0 1 5 I n i t i a l i z a t i o n o f e a c h i n d i v i d u a l c h a n n e l C y c l i c p r o g r a m s e q u e n c e f o r r e a d i n g t h e m e a s u r e d v a l u e s o f c h a n n e l s 1 t o 8 n 1 n n 1 ...

Page 36: ...he 4x00hex command 4 Use group command 7000hex to read the measured values for channels 1 to 4 simultaneously Then use group command 7100hex to read the measured values for channels 5 to 8 Both groups can be reread cyclically Advantages of the Standard Methods Compared With the Special Methods The standard methods read the measured values with greater reliability because the command is mirrored fo...

Page 37: ...OLTAGE CURRENT 8CH terminal makes closed loop control tasks particularly easy to carry out The terminal sup ports the advantages of bus with regard to time equidistance As the terminal scans input sig nals synchronously with the bus clock and the bus runtime has a very small jitter the input sig nals can be scanned equidistantly Thus the measured results are particularly suitable for use in closed...

Page 38: ...d Measured value acquisition according to standard method 1 or 2 Filtering no mean value generation This increases the dynamic response of the terminal Adjust the bus cycle time to the firmware runtime This achieves discrete periods of scanning Example in standard method 1 the firm ware runtime is 800 µs i e the bus cycle time should be set to 800 µs Linked Voltages When using linked voltages ensu...

Page 39: ...rrents in cur rent loops please ensure that the eight current inputs operate on a common ground potential single ended Thus the measured input should always be on the GND potential with the minus input Figure 13 Measuring currents 1 2 1 2 3 4 1 2 3 4 1 2 1 2 3 4 1 2 3 4 1 2 1 2 3 4 1 2 3 4 1 2 1 2 3 4 1 2 3 4 D A I 8 S F 6 2 2 6 A 0 1 7 I 1 G N D A ...

Page 40: ...0 02 0 10 Measuring Range Absolute Typical Absolute Maximum Relative Typical Relative Maximum 0 V to 5 V 5 V 5 0 mV 15 0 mV 0 10 0 30 0 V to 10 V 10 V 10 0 mV 30 0 mV 0 10 0 30 0 V to 25 V 25 V 25 0 mV 75 0 mV 0 10 0 30 0 V to 50 V 50 0 mV 150 0 mV 0 10 0 30 Measuring Range Absolute Typical Absolute Maximum Relative Typical Relative Maximum 0 mA to 20 mA 4 mA to 20 mA 20 mA 8 0 µA 40 0 µA 0 04 0 2...

Page 41: ... Range Final Value Voltage Input Typical Deviation From the Measuring Range Final Value Current Input Relative Relative Electromagnetic fields field strength 10 V m according to EN 61000 4 3 IEC 61000 4 3 2 2 Conducted interference Class 3 test voltage 10 V according to EN 61000 4 6 IEC 61000 4 6 1 1 Fast transients bursts 4 kV supply 2 kV input according to EN 61000 4 4 IEC 61000 4 4 1 1 ...

Page 42: ...rage 85 occasionally For a short period slight condensation may appear on the outside of the housing if for example the terminal is brought into a closed room from a vehicle Permissible air pressure operation 80 kPa to 106 kPa up to 2000 m 6562 ft above sea level Permissible air pressure storage transport 70 kPa to 106 kPa up to 3000 m 9843 ft above sea level Degree of protection IP 20 according t...

Page 43: ... representation in IB IL and standardized display format Digital filtering mean value generation None or over 4 16 or 32 measured values Default setting over 16 measured values Conversion time of the A D converter 10 µs maximum Process data update of the channels Bus synchronous Firmware runtime depending on the command 0x00hex 800 µs 5x00hex 850 µs 7000hex 7100hex 1500 µs 7400hex 7500hex 7600hex ...

Page 44: ... the described analog input ter minal from separate power supplies Interconnection of the 24 V power supplies is not permitted Common Potentials The 24 V main power supply 24 V segment voltage and GND have the same potential FE is a se parate potential area Separate Potentials in the System Consisting of Bus Terminal Power Terminal and an I O Terminal Test Distance Test Voltage 5 V supply incoming...

Page 45: ...th eight analog input channels ANALOG IN 15 BIT VOLTAGE CURRENT 8CH IC220ALG221 Four connectors with shield connector for the connection of two cables are needed for complete fitting of the terminal Connector with shield connector for the connec tion of two cables 5 per pack I O TERMINAL STRIP W DUAL SHIELD QTY 5 IC220TBK062 ...

Page 46: ...ANALOG IN 15 BIT VOLTAGE CURRENT 8CH IC220ALG221 46 6226B_GE ...

Reviews: