News:

  • November 26, 2026, 03:03:54 PM

Login with username, password and session length

Author Topic: completely new to plcs  (Read 84774 times)

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 270
    • Host Engineering, Inc.
Re: completely new to plcs
« Reply #15 on: August 26, 2008, 02:00:55 PM »
u can import that code directly into directsoft, simply use good ole notepad, cut from the forum, paste into noetpad, save to a .txt file.

the use directsoft's 'file-> import program' facility to bring that text into a ladder program, complete with documentation.
Good design costs a lot. Bad design costs even more.

milldrone

  • Full Member
  • ***
  • Posts: 48
  • I'm changing my attitude to thumbs up
Re: completely new to plcs
« Reply #16 on: August 27, 2008, 07:42:46 AM »
crdfx,

Just in case you did not understand Mike's answer.

Save the text I wrote in a notepad file (copy and paste).

1. Launch direct soft, double click on "direct soft 5 programming"
2. Pick a name for your project, click on 06 for plc type, click on "OK"
3a. You might have a tip of the day, read it (there is lots of good tips and short cuts here) click through.
3b. Click on "file", click on "Import", click on "program", find the notepad file you saved earlier, highlight it, click on "open".

This should open the project I wrote. If you have any problems or questions, post back and we will work them out.
Vaughn

gmh

  • Newbie
  • *
  • Posts: 2
Re: completely new to plcs
« Reply #17 on: April 14, 2009, 09:23:56 PM »
This is a great site i'm in the same position as newbie.  I need to control a vfd for a pressure system and start and stop 6 lag pumps according to psi which is sensed by a pressure transducer. What loop is best to use for sensing and controlling pressure open,closed, forwarding etc. does anyone have any advice for me thanks

milldrone

  • Full Member
  • ***
  • Posts: 48
  • I'm changing my attitude to thumbs up
Re: completely new to plcs
« Reply #18 on: April 15, 2009, 06:23:50 PM »
gmh,

Presuming you are the "gmh" that posted over at PLCs.net, and was asking questions about Omron. I doubt you will get much help here. Now if you have some questions about Automation Direct PLCs you may get what you need here. Please be specific and describe the whole process. This includes things like what do you want to happen if one of the pumps is locked out for maintenance? Are you talking about pump alternation? Are all the pumps local to each other (not connected by wireless)? We don't want to be playing 20 questions. Ect. ect.

Thinking out of the box, if you have good local support for ABB drives. There is a ABB drive that will do the PID and the lead lag for four pumps. No PLC is needed.  This drive is the ACS550 VFD. Over at PLCs.net Dick DV is the expert you will want for ABB.
Vaughn

imemotor

  • Newbie
  • *
  • Posts: 6
Re: completely new to plcs
« Reply #19 on: April 30, 2009, 12:08:24 PM »

I have read some of your posts and it seems that you know this stuff, I am writing my first program to control a cooling tower.  I bought a DL-05 with analogue input card (input for 4ma to 20ma pressure sensor and temperature sensor) I know now I should have bought a DL-06 with a analogue input and output (output to send to VFD).  Anyway my project with the DL-05 is:
input from C-more touch panel
system on button (output Y0)
temperature probe (analogue input 1)
-If temp is set point 1 activate Y1 (pump on contactor) activate Y2 VFD fan (preset speed 1)
-If temp is set point 2, Y1 still on Y2 off and Y3 on (VFD preset speed 2)
- If temp is set point 3, Y1 still on Y3 off and Y4 on (VFD preset speed 3)
- Analogue input 2 (pressure sensor) if pressure drops to set point 1 turn on Y5 (alarm).
I would like to display analogue input 1 and analogue input 2 in graph form on the C-more panel (EA7-S6M-R)

I am able to program the touch panel with a button to activate an X input which triggers a Y output on the PLC but have not been able to work with analogue inputs to the PLC or touch panel.

Can you help?

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3628
  • Darth Ladder
Re: completely new to plcs
« Reply #20 on: April 30, 2009, 05:50:31 PM »
There are a couple more options you might want to consider for the speed interface to the VFD.  First, there are combination analog modules for the 05/06 that have both inputs and outputs on the same module.   Another possibility is that many VFD's have a "motor-pot" mode using two digital inputs to the drive.  As long as you hold one input true, the motor will speed up.  Hold the other true and it will slow down.  Leave both off and it will continue to run at the same speed.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

imemotor

  • Newbie
  • *
  • Posts: 6
Re: completely new to plcs
« Reply #21 on: May 01, 2009, 08:31:11 AM »
Thanks for your help, I didn't know there were dual analog cards available.  Can you point me in the right direction for programming the PLC with the analog inputs that trigger outputs at various set points?  also how do I set the touch panel to monitor the data.

plcnut

  • Hero Member
  • *****
  • Posts: 816
    • premiersi.com
Re: completely new to plcs
« Reply #22 on: May 01, 2009, 12:04:26 PM »
Imemotor:

Try importing this program, It should do just what you described. As far as the C-more is concerned whenever you program your panel you need to map V200 as your pointer for system temperature, and V201 as the pointer for pressure. You can also set pointers for all your Setpoints to v210-V213, the default values are loaded on the first scan, but you can adjust them accordingly when you program. Hope this helps, let me know if you have any more questions, and please feel free to critique my program, there are probably a lot of you guys that could do a lot better than me. Jason



PLC 05

// Rung 1
// Address 0
ISG S0

// Rung 2
// Address 2
ANLGIN K0 K0 K2 K0 V200

// Rung 3
// Address 40
STR SP0
LD K1000
OUT V210
LD K3000
OUT V211
LD K4000
OUT V212
LD K200
OUT V213

// Rung 4
// Address 49
STR X0
SET S1
OUT Y0

// Rung 5
// Address 52
STR X0
ANDN V201 V213
SET S5

// Rung 6
// Address 56
STRN X0
RST S1 S5

// Rung 7
// Address 59
SG S1

// Rung 8
// Address 61
STR V200 V210
JMP S2

// Rung 9
// Address 64
SG S2

// Rung 10
// Address 66
OUT Y1
OUT Y2

// Rung 11
// Address 68
STR V200 V211
JMP S3

// Rung 12
// Address 71
STRN V200 V210
JMP S1

// Rung 13
// Address 74
SG S3

// Rung 14
// Address 76
OUT Y1
OUT Y3

// Rung 15
// Address 78
STR V200 V212
JMP S4

// Rung 16
// Address 81
STRN V200 V211
JMP S2

// Rung 17
// Address 84
SG S4

// Rung 18
// Address 86
OUT Y1
OUT Y4

// Rung 19
// Address 88
STRN V200 V212
JMP S3

// Rung 20
// Address 91
SG S5

// Rung 21
// Address 93
OUT Y5

// Rung 22
// Address 94
END

// Rung 23
// Address 95
NOP


#BEGIN ELEMENT_DOC
"X0","On/Off switch","",""
"Y0","""System On""","","Indicator Light"
"Y1","Pump On","",""
"Y2","Fan speed 1","",""
"Y3","Fan Speed 2","",""
"Y4","Fan Speed 3","",""
"Y5","Alarm Output","",""
"V200","Channel 1","","Analog input"
"V201","Channel 2","","Analog input"
"V210","S.P. 1","",""
"V211","S.P. 2","",""
"V212","S.P. 3","",""
"V213","S.P. 4","","Low Pressure"

#END
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
https://premiersi.com

milldrone

  • Full Member
  • ***
  • Posts: 48
  • I'm changing my attitude to thumbs up
Re: completely new to plcs
« Reply #23 on: May 02, 2009, 09:54:47 AM »
imemotor,

There are a couple of things in your post that might be interpreted differently than what you may have intended.

input from C-more touch panel

What are you intending to control via the input from the Cmore?

system on button (output Y0)

Is this just an indicator? Or is this an illuminated selector switch? Or an illuminated momentary push button? Or an illuminated push pull maintained button? I think plcnut thinks it's a illuminated button of some sort. And that you turn the system on and off with this. While we are on the subject of the on and off control. You stated that this is a cooling tower, and I'm guessing that if maintenance were to be performed it would be locked out. What do you want to happen if there is a power failure? Do you want it to start back up on it's own? Or do you want some sort of operator intervention? Many installations that I have seen this type of equipment is just desired to run without any operator intervention. What kind of startup do you want to happen after a maintenance lockout? You mentioned that you had been able to program the HMI to turn on an output. Do you want to be able to turn on the system from the HMI as well as the "on off button"?

-If temp is set point 1 activate Y1 (pump on contactor) activate Y2 VFD fan (preset speed 1)
-If temp is set point 2, Y1 still on Y2 off and Y3 on (VFD preset speed 2)
- If temp is set point 3, Y1 still on Y3 off and Y4 on (VFD preset speed 3)
- Analogue input 2 (pressure sensor) if pressure drops to set point 1 turn on Y5 (alarm).

It looks like plcnut is presuming you want the setpoints to be programmed in the PLC. And that they are default values that the system will start with whenever the PLC transitions to run. I'm guessing that you want the values to come from the HMI. But I have no idea if you want default values or the last values that the HMI sent to the PLC.

You have not stated what VFD you are using. In all of the VFD's that I have used the preset speeds are programmed at the VFD. You listed 3 preset speeds. This would normally be done with two inputs for speed selection.

The following would be an example of how a GS2 VFD (Automation Direct) would be preset speed selected.

P 4.00 = 01  source of frequency command by digital keypad (up down arrows)
P 3.03 = multi speed bit 1
P 3.04 = multi speed bit 2
P 5.01 = 25 Hz preset 1
P 5.02 = 40 Hz preset 2
P 5.03 = 60 Hz preset 3

Now when just the run command is on the drive will run to the last speed that the up down arrows set.

If the run command is on and the input DI 4 is on the drive will run at 25 hz

If the run command is on and the input DI 5 is on the drive will run at 40 Hz

If the run command is on and both DI 4 and DI 5 are on the drive will run at 60 Hz.

Now that we are on the subject of VFD's. Did you know that most drives are capable of very tight temperature control on it's own without a PLC? Depending on how you answered the "what do you want to happen after a power failure" question. You still might use the PLC for auto startup, In this example the PLC is going to auto start the drive.   In a GS2 you would use your 4 t0 20 ma temperature signal to the AC1 input of the drive.

P 7.00 = 04 reverse acting (cooling)
P 7.01 = process value default is 100
P 7.02 = setpoint source when only the run command  is on, 00 = keypad
P 7.10 = keypad setpoint
P 7.11 = PID setpoint 1
P 7.12 = PID setpoint 2
P 7.13 = PID setpoint 3
P 7.14 = PID setpoint 4
P 7.15 = PID setpoint 5
P 7.16 = PID setpoint 6
P 7.17 = PID setpoint 7

So you can get 8 different temperature setpoints from a combination of the run command and three digital inputs to the drive.

Now that we are on the subject of PID control let me throw another curve ball at you. You can use comm port 1 to connect to the HMI use comm port 2 to connect to a GS2 via RS232. Perform a PID loop in the PLC and give the drive what amounts to analog control through the RS232 connection. The only downside to this arraignment is that to program either the PLC or the HMI you need to unplug the com port connection.

Now for a disclaimer: I have very limited experience with PID control. But my guess is that ControlsGuy has much more experience than myself and would be willing to help you with any or all of this project.     




   



Vaughn

imemotor

  • Newbie
  • *
  • Posts: 6
Re: completely new to plcs
« Reply #24 on: May 03, 2009, 11:49:57 PM »
Milldrone,

Thanks for your input, my VFD is made by Baldor but most drives are the same.  I understand that drives (mine included) have analog and digital inputs, the reason I am using a PLC is primarily for the C-more panel interface.  I want to display graphs for temp, pressure, and provide some indicator for fan speed (energy savings).  The C-more will have a system “on” button that will enable the VFD (Y0) I will have 2 graphs for temp and pressure, an indicator for fan speed (text buttons) and a valve open/closed indicator.  The system should self  “restart” after power failure.

My goal for this project is cooling tower automation (energy savings) pump and fan should turn on as required fan should increase or decrease with temperature demand.  System should auto restart after power failure.  System will have a hard lock out but will also have an electronic “lock out” via the C-more button.

Please give me your ideas for project improvement.

IMEMOTOR

milldrone

  • Full Member
  • ***
  • Posts: 48
  • I'm changing my attitude to thumbs up
Re: completely new to plcs
« Reply #25 on: May 04, 2009, 07:54:28 AM »
Thanks for your input, my VFD is made by Baldor but most drives are the same.
I understand that drives (mine included) have analog and digital inputs,

Yes but you said that you had an analog input card. Some drives have RS232 coms, that could be accessed by the DL05. This way you would not need an analog output from the PLC. Are you still planning on using the preset speeds?  Does the Baldor drive have PID capacity?  Do the preset speeds in your drive work like you described earlier. Ie one digital input = one preset speed, or does it use 2 preset inputs to get 3 or 4 presets (depending on if you count the keypad operation mode) or 3 preset inputs to get 7 or 8 preset speeds (depending on count)?


I want to display graphs for temp, pressure, and provide some indicator for fan speed (energy savings).

How will you know the fan speed? The VFD may have faulted or ?

  The C-more will have a system “on” button that will enable the VFD (Y0)

There is no need to use a "real" output for this. Try it with Y6, or Y7, or Y17.  Also what do you want to happen if the Cmore looses comms?

The system should self  “restart” after power failure.

I thought this might be the case. This needs to be planned for from the very beginning.

My goal for this project is cooling tower automation (energy savings) pump and fan should turn on as required

Ok! You mentioned two analog inputs pressure and temperature. You also mentioned that the pump will start and stop. From this I have to assume that this will clue the PLC to turn on or stop the pump. Will there be a delay for temperature to "homogenize" after the pump starts?

« Last Edit: May 04, 2009, 10:15:31 AM by milldrone »
Vaughn

imemotor

  • Newbie
  • *
  • Posts: 6
Re: completely new to plcs
« Reply #26 on: May 05, 2009, 12:16:03 AM »
PLCNUT

Thanks for your program, you said

"As far as the C-more is concerned whenever you program your panel you need to map V200 as your pointer for system temperature, and V201 as the pointer for pressure. You can also set pointers for all your Set points to v210-V213, the default values are loaded on the first scan, but you can adjust them accordingly when you program."

I have set the C-more temperature graph to V200 and pressure to V201.  I understand that your program left the set points at there default values please show me how the program looks with temperature set points 150, 200, 250.  Pump pressure should alarm at low level 35.  Please explain pointer set points v210-v213?

Additionally, Pump on output (Y1) I originally said should trigger "on" following temp set point 1 (150) and remain on through all subsequent trigger points.  I need to correct this statement, I need pump "on" to initiate following "system on" input X0 and a separate input X1 and remain on untill untill X1 is turned off.

Also per MILLDRONE how can we account for system restart (power failure)

milldrone

  • Full Member
  • ***
  • Posts: 48
  • I'm changing my attitude to thumbs up
Re: completely new to plcs
« Reply #27 on: May 05, 2009, 07:03:57 AM »


Also per MILLDRONE how can we account for system restart (power failure)


If the Cmore is the only interface then toggle a retentive bit. The default retentive ranges in an 05 are: C400  through C777. You can also increment a counter the default is retentive for all counters. You can read about setting the retentive ranges in the manual appendix A-6. (thats' where it is listed in my version of the DL05 manual)

If you have a hardwired input to the PLC (what I recommend). Use a maintained (mechanical) contact like a selector switch.
« Last Edit: May 05, 2009, 07:57:45 AM by milldrone »
Vaughn

imemotor

  • Newbie
  • *
  • Posts: 6
Re: completely new to plcs
« Reply #28 on: May 06, 2009, 07:55:54 AM »
MILLDRONE,

Can you help with the program that PLCNUT wrote. 

I have set the C-more temperature graph to V200 and pressure to V201.  I understand that your program left the set points at their default values please show me how the program looks with temperature set points 150, 200, 250.  Pump pressure should alarm at low level 35.  Please explain pointer set points v210-v213?

Additionally, Pump on output (Y1) I originally said should trigger "on" following temp set point 1 (150) and remain on through all subsequent trigger points.  I need to correct this statement, I need pump "on" to initiate following "system on" input X0 and a separate input X1 and remain on until  X1 is turned off

My temperature transmitter is 0 to 300 and pressure is 0 to 100

milldrone

  • Full Member
  • ***
  • Posts: 48
  • I'm changing my attitude to thumbs up
Re: completely new to plcs
« Reply #29 on: May 06, 2009, 10:14:16 AM »
MILLDRONE,

Can you help with the program that PLCNUT wrote. 


Maybe PLCnut can I'm busy untill 2:00 this afternoon
Vaughn