Instruction Manual
7: -1666.67 B3
8: 10 A4
9: -5000 B4
; Now update the SDM-CVO4 with the information
; for the four channels
11: SDM-AO4 (P103)
1: 4 Reps
2: 30 SDM Address
3: 5 Loc [ ScldOut_1 ]
6.2.2 Restricted Range Current Output Modes (4-20 mA)
When driving a system that requires a restricted current range then the full-scale
range is reduced accordingly. In the case of 4-20 mA devices the maximum range
is 8000 units and the minimum value should be scaled to
-3000 and prevented from going below this level.
The following partial program could be used in place of the last two instructions
in the example above.
; Then apply the scaling with one instruction P53
; The readings are scaled -3000 to +5000, i.e. to
; cover the range which would equate to
; 4-20 mA in current mode.
; Windspeed to cover the range 0-100 m/s
; Wind direction to cover 0-360 degrees
; Temperature -25 to +50 degrees C
; Radiation 0 - 1000 m^2/s
10: Scaling Array (A*Loc+B) (P53)
1: 5 Start Loc [ ScldOut_1 ]
2: 80 A1 ; WS multiplier
3: -3000 B1 ; WS Offset
4: 22.2222 A2
5: -3000 B2
6: 106.667 A3
7: -333.32 B3
8: 8 A4
9: -3000 B4
; Now limit the lowest scaled value to -3000 (4 mA)
; As we have four 4-20 mA current outputs, a loop
; construct is the easiest way to do this.
11: Beginning of Loop (P87)
1: 0000 Delay
2: 4 Loop Count
; If the scaled value is less the –3000
12: If (X<=>F) (P89)
1: 5 -- X Loc [ ScldOut_1 ]
2: 4 <
3: -3000 F
4: 30 Then Do
17