direct logic 06 math

plc noob

Member
Join Date
Oct 2007
Location
atlanta , georgia
Posts
258
i am trying my first time at programming a direct logic plc 06 . i need help getting data into the vmemory locations . how do you get data into a vmempry location . and how do you load a constant to the accumulator . every time i enter a constant it says ta and the my constant . i read that ta was timer accumulated . am i missing something . i am using the latest software direct soft 5.2
 
i am trying to load v1200 and add v1201 the out to v1202 v 1200 contains decimal 100 , v1201 contains decimal 50 , and v1202 is still 100 when i make the rung true . like the add function is not working . am i missing a step . i loaded theses values into the vmemory locations with a data view
 
Please post the code that you are trying to implement. At first I thought you were stepping on one of the current Vmem locations but 1200 is above them...
LD, ADD, OUT should work.
 
The PLC performs most math operations in BCD. Make sure you are entering/viewing BCD values in Data View. Also, make sure that V1201 has a value in it and the PLC is in Run mode. If that's correct you could post a screen cap.
 
i got it working using ld,add,out. but how do you do math on numbers larger than 9999 out of the bcd range . it seems the math instructions will only see bcd numbers how do use use higher numbers
 
There are double instructions. The work with two consecutive memory locations. So you would do LDD V2000 (loads V2000 and V2001), ADD or ADDD, then OUTD V2004 (output to V2004 and V2005).

There are also Real instructions, but if you have a BCD number you must convert it to a real number before you use a Real instruction on it.
 

Similar Topics

So this is my attempt at collecting and displaying data on a Cmore panel With a DL06. Each pair in my logic is the "Time total" or the TA15 and...
Replies
4
Views
477
Hello, I am having some trouble trying to use Port 2 on the direct logic (250-1) for K-sequence. I am trying to use RS-232, I have a breakout...
Replies
0
Views
549
I have a few o these controllers and had to replace a CPU. It looks like everything is there in the ladder including the registers for the port...
Replies
5
Views
1,459
Hey, I am entirely new to PLC's and am trying to help my friend with a project. He wants to take the signal from a PNP photoelectric sensor as...
Replies
12
Views
2,235
Anyone know anybody that will attempt a repair on a DirectLogic F1-130AR? There were a few hits on the internet but none I've used personally...
Replies
1
Views
1,289
Back
Top Bottom