OMRON Sysmac C20 PLC

simisteven

Member
Join Date
Dec 2009
Location
Mansfield
Posts
8
I have a Mnemonic code for the above PLC. I wish to convert it to ladder diagram but the code is a bit complex. I am looking for someone to assist me please
 
if you can post a copy of the code and a brief description of the operation of the machine it is controlling I am sure we can offer you some assistance.

A quick google search shows that the basic operation manual is available for download. the back end of the manual has several worked examples of how a ladder diagram is transcribed into menomic language. As I recall the most complicated function in a C-series was a shift register.
 
Is it possible this diagram
xxx.png
from the Sysmak C20K/... operations manual here has the ladder wrong, and the mnemonics shown would actually produce this:
yyy.png
?
 
Stupid PLC tricks

I wrote a Python script to parse the mnemonics, so this may be close, and enough to load into RSLogix 500 and print out the ladder e.g. here is that long line:

xxx.png


It's not valid RSL500 of course, but at least someone could use this to get there.



Maybe someday I'll figure out the KEEPs; I think they need DeMorgan's Theorem to implement from what is parsed.
But for now the OP should know that the two rungs before each KEEP below should be same as the the dual input rungs to the KEEP(11) instructions on the C20K, so a simple Start/Stop pattern should do the job.


BST XIC bit0003 NXB XIC bit0004 NXB XIC bit0005 BND TON T4:0 0.01 30 0
XIC T4:0/DN XIC bit0003 XIC bit1500 XIC bit1400 OTE bit0501
XIC T4:0/DN XIC bit0004 XIC bit1600 XIC bit1400 OTE bit0503
XIC T4:0/DN XIC bit0005 XIC bit1700 XIC bit1400 OTE bit0505
XIO bit0501 XIO bit0004 XIO bit0005 TON T4:1 0.01 3000 0
XIO bit0503 XIO bit0003 XIO bit0004 TON T4:3 0.01 3000 0
BST XIC T4:1/DN NXB XIC T4:2/DN NXB XIC T4:3/DN BND TON T4:4 0.01 6000 0
XIC T4:1/DN XIO T4:4/DN XIC bit1500 OTE bit0502
XIC T4:2/DN XIO T4:4/DN XIC bit1600 OTE bit0504
XIC T4:3/DN XIO T4:4/DN XIC bit1700 OTE bit0506
BST BST XIC bit0001 NXB XIC bit0500 BND XIO bit0002 BST XIC bit0013 XIC bit0003 XIC bit1500 NXB XIC bit0014 XIC bit0004 XIC bit1600 NXB XIC bit0015 XIC bit0005 (continued ...)
(... here) XIC bit1700 BND XIO T4:5/DN XIC bit1400 OTE bit0500 XIC bit0003 XIC bit0006 NXB XIC bit0004 XIC bit0007 NXB XIC bit0005 XIC bit0008 BND TON T4:5 0.01 9000 0 OTE bit1505
BST XIC bit1505 NXB XIC bit0000 BND XIC bit1902 OTE bit0508
BST XIC bit0500 XIO bit0012 NXB XIC bit0501 XIO bit0013 NXB XIC bit0503 XIO bit0014 NXB XIC bit0505 XIO bit0015 BND TON T4:6 0.01 500 0
BST XIC bit0000 NXB XIC bit1815 BND
XIC T4:6/DN
KEEP bit1400
BST XIO bit1400 NXB XIC bit0000 NXB XIC bit1808 BND XIC bit1902 OTE bit0510
BST XIC bit0000 NXB XIC bit1815 BND
XIC bit0003 XIC bit0009
KEEP bit1500
BST XIC bit0000 NXB XIC bit1815 BND
XIC bit0004 XIC bit0010
KEEP bit1600
BST XIC bit0000 NXB XIC bit1815 BND
XIC bit0005 XIC bit0011
KEEP bit1700
BST BST XIO bit1500 NXB XIO bit1600 NXB XIO bit1700 BND OTE bit1605 NXB XIC bit0000 BND XIC bit1902 OTE bit0509
BST XIC bit1505 NXB XIO bit1400 NXB XIC bit1605 NXB XIC bit0000 BND OTE bit0507

 
Last edited:
Here is my interpretation of the code you posted, I think it is pretty accurate, however, I do not have Ladder support software (LSS) so cannot verify it, there seems to be a small error in the code where they do an "OR" before a load (LD) this is something that may work if it was put in by a hand held programming console & probably works (have seen something similar before).
So I hope this helps.
I cannot produce exactly the symbols that OMRON use so the timers & Keep relays are my interpretation of them.
I also cannot directly give the symbols for bits & my IDE will not allow a number to start so I have put "Bit_" in front of them.
I assume that bits 0000 to 0015 are inputs & bits 00500 to 0510 are outputs the other bits are internal bits.
 
Just done a test on a Mitsubishi FX PLC I entered the code on ladder rung 21 but in Statement list (Mnemonic) & although it would not show up or compile in ladder it works in Mnemonic when I downloaded it should be:
LD xx
AND xx
OUT xx

Not

OR XX
AND xx
OUT xx
 
I think neither @parky (rungs 11 and 12) nor my script is porting that long rung correctly. After looking at the manual, I am pretty sure an AND after an output mnemonic (OUT or TIM here) should branch from just before the output, so it should look like this:

xxx.png
 
I think DRBB is right, I have got it slightly wrong that is how it has been coded, however, in S6 it will not compile into ladder, it needs the IL & ILEND instruction, it probably works anyway, however, I do have doubts if it is a parallel bit of logic it may interpret as a separate rung.

See pic from the manual on parallel outputs

Parallel.png
 
It is as DRBB said, I have just fumbled in my loft & found an old copy of Syswin, the C20 was the same I remember it in the old Ladder Support Software (LSS), so here is the printout of the ladder & statement list for that rung.
So yes it is correct but should not be used like this, some editors will not allow parallel rungs like this.

OMRON LAD.png Statement list.png
 
Here is the converted program as it converts into ladder on a C20 using Syswin
Note: Syswin actually uses the xx.xx format not the original xxxx no idea why but if I type in 0500 it converts it to 05.01
 
Last edited:

Similar Topics

Hi, I have taken over maintaining some HVAC units that are run by the Sysmac C20 PLC. To keep a stock of PLCs handy we have had to buy used PLCs...
Replies
10
Views
2,308
The PLC stopped working - likely a failure with in the power circuit (no power light). We have a code printout but one page is missing. How can we...
Replies
4
Views
3,071
Hope everyone had a good Thanksgiving Holiday. I am getting ready to purchase a used machine. This machine was built in 1990. It has a Omron...
Replies
2
Views
6,673
Hi to you all, hope someone can help. I have just purchased a slab making plant which uses the c20 to control certain actions, my problem is when...
Replies
7
Views
4,881
I have a problem with a machine equipped with OMRON SYSMAC C20 - 3G2C7 - CPU54E. The PLC is in ERROR and I have no manual of the equipment...
Replies
2
Views
7,610
Back
Top Bottom