Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Hello World" on a PLC

Status
Not open for further replies.

itsmoked

Electrical
Feb 18, 2005
19,114
Momentum PLC

Okay I have stuffed a 1MB flash processor module with an Ethernet connection,
171CCC96030 Processor onto a:
170 ADI 350 00 TSX Momentum I/O base - 32 discrete inputs

On a second I/O base I have the standard comm interface module snapped on. The base is a:
The 170 ADM 350 00 TSX Momentum I/O base - 32 discrete outputs

I have maneuvered thru the absurd nearly random power wiring to supply both bases. With 24VDC.

I have hooked the two together with a the appropriate interface cable.

I have installed ProWORX 32 (Lite).

I have flipped the switch and both I/O bases light up. Lots of LEDs everywhere denoting power and network.

I used BootP to assign the cpu unit to 192.168.1.150

It seems that the "Traffic Cop" found the two bases and identified them.

I am now just trying to achieve a "Hello World" state. I want to close a contact on the input base and have that close a contact on the output base.

---||-----()----

I have spent hours trying to get there. I am astounded that Square D has no walk-thru of a "Hello World" LL program using ProWORX 32. (At least anywhere I can find it.)

For starters I cannot figure out how to label the logic elements to relate to the screws on these two bases.

Help!

Keith Cress
Flamin Systems, Inc.-
 
Replies continue below

Recommended for you

Could this be of any assistance? At least for the last line of your post?

It is a snip from ElectroMech4933/PLC-handout.pdf

----------------------------------------------------------
PLC Communicates with the external world in terms of word form data. Whenever a PLC
takes inputs (maximum of 4 Analog and 4 Digital) from external world, it writes all input
values in memory in the form of 5 contiguous words as follow:

word 1: Analog input 1
word2: Analog input 2
word3: Analog input 3
word4: Analog input 4
word5: Discrete input 1 & 2

(Though Discrete inputs are 1 bit data, as PLC can communicate only through word form
data, they have to be written as word form.)
During configuring a PLC, user must specify where or which Reference the Analog input 1
would be written. PLC will automatically decide the References to write the other inputs.
Similarly, output is also given in word form data. The 2 Analog and 2 Digital outputs along
with the output parameters are written in 5 contiguous output words.

word1: Parameters for Analog input channels
word2: Parameters for Analog output channels
word3: Analog output 1
word4: Analog output 2
word5: Discrete output 1 & 2

When configuring a PLC, user must specify Reference for Analog input channel will be
written. PLC will automatically decide where to write the other parameters and output
values.
Certain rules are followed to provide address for input and output memory adress. They are:

All 16 bit input will start with prefix 3
All 16 bit output will start with prefix 4
All 1 bit input will start with prefix 1
All 1 bit output will start with prefix 0

----------------------------------------------------------

I hope it is for the right PLC [ponder]

Looks like you are in for bit/word and word/bit conversion. Seems a bit awkward - you could just as well write directly for a micro. I know I would. In Forth...


Gunnar Englund
 
Hi skogs,
I am afraid the above has somewhat confused me further.[hairpull2] Seems to be based on the "Concept" form of software but then maybe it would make sense if I could just "get it". You know how when you look back from a position of knowledge at where you came from and it all makes sense.

Thanks though. I am still cogitating on it all.


P.S. (Read your (swipnet)email some time huh?[hammer])


Keith Cress
Flamin Systems, Inc.-
 
Keith,

Will the Schneider POS talk to the old DOS Modsoft application? I might be able to direct you toward someone who has a copy. The programming is more conventional: there is only so much complexity you can add to a DOS program! I've also got a couple of sample apps from different projects - which might disclose how the adressing works. Would this help in the short term? I'm on a course tomorrow, but I will be back at work on Thursday.

----------------------------------
image.php
I don't suffer from insanity. I enjoy it...
 
Sorry, was torn from the old house hearth. Haven't been able to. Doing this from a hotel lobby. No access to mail.

Gunnar Englund
 
Ah ScottyUK a few pages of apps would probably go a really long, l o n g way to getting me going. That would be great!! Check my site "Contact Info" to contact me.

I know too little to know if the POS would talk to an old Modsoft app..

Ah Gunnar attending the World Cow Bingo Competition huh?[cow][lol]

Keith Cress
Flamin Systems, Inc.-
 
Hello;
The traffic cop assigns addresses to the "screws" on the I/O bases. Inputs start with 10001 and outputs start with 00001. So in you above example right click on the normally open contact and type in the address 10001 and then right click on the coil and type in the address 00001 (need to fill in the leading zeros!). You must then download both the traffic cop and the PLC program (they are seperate!).
 
Follow up report... ARGH (^$%*&%#$$[banghead]@#@#(^$#@!@!~!

For starters you have to do the BOOTP thing as previously mentioned. You do this via the MAC address of the device. You select the static address you want the unit to have and bingo.

You then have to go to segment memory and declare some, say 100 words. Also previously mentioned but hard to find. And then miraculously the PLC will remember its IP ... This is nuts.

You next have to go to 'communications' and set the IP address again and "leave the window on TCP/IP when you close the window as the program automatically tries to communicate with the PLC using the last comm method selected in the window on subsequent boot ups".

Next you must update the PLC's executive. The default one is IEC and ProWORX Lite only allows 984LL. So you must "re-flash" the PLC to the different exec. It's not provided with ProWORX!! Tech support has to give it to you.

Once all this is done you can write logic and then "write it" to the PLC.

At this point you should be able to "Start" running the PLC.

Then go "Online" or "Combined". "Combined" allows forcing I/O changes.

Oh and the I/O is bass ackwards. Screw 1 is actually contact 16! (as also previously mentioned)

Currently ProWORX crashes on my Dell laptop every time I attempt to go "Online".

It works fine on my desktop which I have no vague desire to develop LL on. For starters it will be several blocks from the partially assembled system.

The Snider Tech did correctly suspect a computer/software problem. I hope today he can figure it out.

Stay tuned.

Keith Cress
Flamin Systems, Inc.-
 
Well,

That's only natural with PLCs - You could have done a lot of useful work on a micro in the meantime.

Not just kidding...

Gunnar Englund
 
Keith,

Did you ever get my e-mail? It got blocked and then released by the IT Thought Police, but that seemed to screw up the receipt I thought I'd put on it. I'll get a CD burned with the applications if the e-mail didn't make it.


----------------------------------
image.php
I don't suffer from insanity. I enjoy it...
 
Boy don't I agree with that skogs!! I'd be done by now not "still haven't started" yet.

ScottyUK;[cry] No...[cry]
Did you get my email on how to put it up on a private file share site? That would be way easier than a CD for you. Only takes about 2 or 3 minutes.

Keith Cress
Flamin Systems, Inc.-
 
Yeah - not sure if I can do it from work though. There are a lot of restrictions on what we can and can't do on the net which you won't have put up with, being self-employed. I'll sort something out anyway.


----------------------------------
image.php
I don't suffer from insanity. I enjoy it...
 
No. Not at all.. This electrified cows thing is very interesting though. I read a long dissertation on the subject a while back. It will really screw over your dairy quickly.

Keith Cress
Flamin Systems, Inc.-
 
Update:

After serval days of "I'll have to ask around" the Modicon tech support guy asked me today to try creating a "new project" doing everything like 'traffic cop', 'configuration', writing this to the PLC and putting it in run mode, then trying to go 'online'. This worked!! No crashing ProWORX. I then added in 'logic' and it still worked. Restarted everything several different ways and it always worked. Go figure.. I love it when I am gifted as the only person on the planet with some bizarre failure. Grrrrr.

Now I need Scotty's examples.[reading] [lol]

Keith Cress
Flamin Systems, Inc.-
 
I've stuck the cd in the mail to you. Technology seems to have turned against me lately: it's the 'Rise of the Machines', and it's starting here on Teesside!


----------------------------------
image.php
I don't suffer from insanity. I enjoy it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor