Hello people of Host Engineering,
New person here. I have most of my experience in LabVIEW, Matlab and C#, but this is my absolute first time I am working with a PLC and, it is not what I expected and I was wondering if someone could help.
I have a DD0 06 PLC from Automation Direct. It is controlling four servos that take 0-5VDC as a function of angle and two motor controllers that take a binary signal for direction and a 0-5VDC for speed. I have 4 potentiometers that output 0-10VDC and various end stop buttons.
I have added cards to the box to do 10x 0-5VDC output, 8x 0-10VDC input, 4 thermocouple (for a future part of the program) and a display screen.
I have been researching how to do ladder logic, but it has been a sharp learning curve and I don't know anyone with any experience and how to contact anyone. Unlike other programs I have worked with, I can't figure out how to test or experiment with the code before I upload it.
I have been reading the manual for DirectSOFT5 and for the PLC and I have a full pseudo code layout of what I would want the code to do (with stages, comparators, jumps, etc.), but I am at an impasse with some issues.
I realize that I can assign or read various parts of V-memory with the ANLGIN or ANLGOUT. How can I assign a piece of V-memory to a value I want.
Here is an example of a problem I can't seem to solve. I output 5VDC to the motor and read the pot until the voltage from the pot reaches a specific value.
How can I tell the program to compare a voltage, for which I do not know what form the voltage is in? How do I say I want V410 to be 5 volts? Am I supposed to tell the machine that V410 is the value 5 for 5V or some sort of binary or hex value which is a function of the full travel? How do I assign V memory to specified values?
Most likely what is occurring is that I am missing something obvious. Could someone point me to somewhere where I could find examples of ladder logic code (other then the ones that come with DirectSOFT5) which deal with analog input/output?
And as for why I chose ladder logic? Because I know I will be using ladder logic in the future. I need to learn this some time.
Sincerely
U.G.