"Hello World" on a PLC
"Hello World" on a PLC
(OP)
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!
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.- http://www.flaminsystems.com





RE: "Hello World" on a PLC
It is a snip from www.engr.mun.ca/~gmann/Documents/ 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
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
www.gke.org
RE: "Hello World" on a PLC
I am afraid the above has somewhat confused me further.
Thanks though. I am still cogitating on it all.
P.S. (Read your (swipnet)email some time huh?
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com
RE: "Hello World" on a PLC
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.
----------------------------------
I don't suffer from insanity. I enjoy it...
RE: "Hello World" on a PLC
Gunnar Englund
www.gke.org
RE: "Hello World" on a PLC
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?
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com
RE: "Hello World" on a PLC
Gunnar Englund
www.gke.org
RE: "Hello World" on a PLC
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!).
RE: "Hello World" on a PLC
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.- http://www.flaminsystems.com
RE: "Hello World" on a PLC
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
www.gke.org
RE: "Hello World" on a PLC
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.
----------------------------------
I don't suffer from insanity. I enjoy it...
RE: "Hello World" on a PLC
ScottyUK;
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.- http://www.flaminsystems.com
RE: "Hello World" on a PLC
----------------------------------
I don't suffer from insanity. I enjoy it...
RE: "Hello World" on a PLC
Is the World Cow Bingo Competition a logical successor to this event?
http://www.pq.goeke.net/PQReport1.html
Respectfully
RE: "Hello World" on a PLC
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com
RE: "Hello World" on a PLC
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.
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com
RE: "Hello World" on a PLC
----------------------------------
I don't suffer from insanity. I enjoy it...
RE: "Hello World" on a PLC
Thanks much Scotty!
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com