DL205 scaling help

dginbuffalo

Member
Join Date
Dec 2010
Location
Buffalo,NY
Posts
630
Back again for some advice. i need to take the output of a PID loop and scale it to 0-600 to send across Modbus to a GS-2 VFD. is there any easy instruction to do this? i try using a MATHBCD box with this expression ((k600-k0) / (k4095-k0) * v2205 . V2205 is the PID output. the result never comes off zero. is it because the division is getting rounded to zero? must be a simpler way.
 
LD V2205
MUL K600 - the accumulator will hold a number larger than 9999 ok
DIV K4095 - this divides the total result of the multiplication by 4095. Except for the loss of a fractional part it should be accurate.
OUT Vxxxx

But now I see your note that the value is the output of a PID loop. The input and output parameters for PID loops are in binary, not BCD. Knowing that try this:

LD V2205
MULB K258 (hex value of 600 decimal)
DIVB Kfff (Hex value of 4095 decimal)
OUT Vxxx (this will be a binary value)

If this is a DL250-1 or DL260 you can also try the ANSCLB IBox command.

(I'm obviously too slow.)
 

Similar Topics

Hey guys, I have a 4-20ma current sensor 4ma = 0 amps, 20ma = 100amps I'm using automationdirect remote field IO. (T1F-16AD-1) I get a...
Replies
1
Views
2,290
Hello everyone! I need to connect to a DL205-1 CPU and, as far as I know, I need to use DirectSOFT 6 software for the connection. Is anyone...
Replies
1
Views
79
I have some AD Direct Logic 205 series processors, racks and I/O cards, etc. that I used for development previously. It's (almost) useless to me...
Replies
16
Views
4,595
I have an older G310 - so stuck with Crimson 2, but although it is not nearly as cool, I'm doing ok with it. The issue I have is that I have a...
Replies
3
Views
2,511
Does anybody have a schematic for the power supply output in a DL205 rack? This one is the 24DC version, but the standard 120V version would do as...
Replies
2
Views
1,753
Back
Top Bottom