[ Home ] [ Products ] [ Data Sheets ] [ Support ] [ FAQ ] [ Sales Offices ] [ Request Catalog ] [ Contact duTec ]
Analog J and S | l data field |
l - {[(DesiredD - Z) / (F - Z)] * 4095} Convert to 3 hex digits
Where: | |
l is the 3 hex digit value to be entered into the instruction
DesiredD is the actual value desired in decimal based on the module units. For example, if you want a module to read 2.5 Volts, then DesiredD = 2.5. F is the full scale value of the module and Z is the zero scale of the module. These are shown for the standard modules in the table below. |
duTec Module | F | Z | Units |
---|---|---|---|
OV5 | 5 |
0 |
Volts |
OV10 | 10 |
0 |
Volts |
OI420 | 20 |
4 |
mAmps |
Example: | 3.6 Volts output by an OV10 Module |
l = [(3.6 - 0) / (10 - 0)] * 4095 | |
= 0.36 * 4095 | |
= 1474.2 | |
= 5C2H is the value entered in the l data field |
Analog K | l data field |
ResponseD = [(l / 4095) * (F - Z) + Z]
Where: | |
Response is actual value read by the input in engineering units.
l is the 3 digit hex value converted to decimal. F is the full scale value of the module, and Z is the zero scale of the module. These are shown for the standard modules in the table below. |
duTec Module | F | Z | Units |
---|---|---|---|
OV5 | 5 |
0 |
Volts |
OV10 | 10 |
0 |
Volts |
OI420 | 20 |
4 |
mAmps |
Example: | 78FH is returned from an OI420 Module 78FH = 1935D |
||
ResponseD | = (1935 / 4095) * (20 - 4) + 4 | ||
= 0.473 * 16 + 4 | |||
= 7.56 + 4 | |||
= 11.56 mA |
Analog V | p and q data field |
p or q = [(DesiredD - Z) / (F - Z)] * 4095 Convert to 3 hex digits
Where: | |
p or q is the 3 hex digit value entered into the instruction.
DesiredD is the amplitude desired in engineering units. F is the full scale value of the module and Z is the zero scale of the module. These are shown for the standard modules in the table below. |
duTec Module | F | Z | Units |
---|---|---|---|
OV5 | 5 |
0 |
Volts |
OV10 | 10 |
0 |
Volts |
OI420 | 20 |
4 |
mAmps |
Example: | 18mA is the desired maximum amplitude and 7 is the desired minimum amplitude for an OI420 (4-20mA) Module |
p = [(18 - 4) / (20 - 4)] * 4095 | |
= {14 / 16} * 4095 | |
= 0.875 * 4095 | |
= 3583.125 = DFFH | |
q = [(7 - 4) / (20 - 4)] * 4095 | |
= [3 / 16] * 4095 | |
= 0.1875 * 4095 | |
= 767.81 = 2FFH |
Copyright 1996-2001 duTec
e-mail comments or questions to
webmaster@dutec.net