The Craftmans Shop > New from Old
The Sequel - Oh Blimey I bought a CNC Lathe (Beaver TC 20)
awemawson:
So it's only taken since the beginning of August to get STEP5 running, talking to the 820T controller, and getting a vague understanding of my way about inside the PLC program. Not quite three months so it could have been worse !
Next step is to cross reference the ladder programs inputs and outputs to the corresponding entries on the various other documents such as the circuit diagram and wiring lists. That should hopefully start to reveal where the M codes are handled. I think that there is a documentation feature in STEP5 that will allow me to put 'labels' on the local copy of the PLC program which will make things far easier to understand.
. . . but I must confess to a warm glow this morning having got this far :palm:
awemawson:
--- Quote from: AdeV on October 22, 2018, 04:16:41 AM ---Crumbs - I'd not like to try to work that lot out without a manual and a stiff cup of coffee!
What are the segments that look a little like machine code? And what do they do? :scratch:
I reckon, if you gave me a week & a text version of that file, and a few hints from the manual, I could come up with a nice lathe simulator for you :lol:
--- End quote ---
I believe those sections are STEP5 commands that must be doing clever things yet to be revealed - I do have the list of commands if you fancy a bit of homework :lol:
Something must also hook into the vast ASM file that gets loaded but all this excitement is still over the horizon :clap:
mc:
Have you not got it all traced yet?
It's only 33 pages, and the first doesn't even contain any segments... :D
awemawson:
Thanks for the encouragement Mory :clap:
I have, though, started the cross referencing - just a few labels at first to see how and where they appear. When inserted they are displayed on the screen in a tasteful yellow when you click on an input or output, but not in printed versions. I'm sure that it must be possible to get them on the print out, but I've yet to find how other than editing the .PDF (which I don't want to do as within STEP5 the label pop up in all sorts of different screens).
. . . so much to learn . . .so much fun . . .so many Aspirins :lol:
PekkaNF:
That does not look too bad...Only it is ladder and I am more used to FUP. Some statement lists the but I did not spot any assembler.
If I remember right in S5 lingo S-R has reser overriding and R-S has set overriding. Modicon and Telemeganique had it it opposite - or A-B! Anyway, I had to check every time I changed my "language".
S5 has interesting timers, to convert S5 to Modicon had to make some extra logic to accommondate some of the timers used in S5, but not suported in Modicon.
First you need to check the offending outputs on harware, crossreference where outputs are set (only once in the program or someone has ****** up) and there you find the segmet it is set. Backtrack from there.
Commenting few segments and most inputs/outputs is a half a battle, figuring out the flags (typically exceptions like E-stop, Low hydraulic pressure, alarms, permits or states like "run" or "pause" or "jog" takes a little more tennacity.
But you are the man!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version