PLC: my first steps

The access to the data memory is different to each PLC. There are many marks and models of PLC. Some popular marks are Allen Bradley, Siemens, schneider-electric, Omron, Automation Direct among other. It is very difficult to talk about to access the processor memory in general way, so, a specific processor was chosen. The choice is a popular mark, that also it has free programming software and emulator. The result was Micrologix 1100 of Allen Bradley. In the future it will talk about others marks of PLC.

The micrologix 1100 has included I/O and also supports till 4 expansion modules. In total it can handle up to 144 digital I/O. It has RS-232/485 port, Ethernet port, 4k program memory, 4k data memory and LCD screen through which it can monitor and modify controller data. More details can be seen in the user manual.

Addressing data memory of the PLC

The PLC data memory is divided in files. Each file is of a specific data type. Nine default data files are created. These are:

  • File 0, outputs (O0)
  • File 1, inputs (I1)
  • File 2, status (S2)
  • File 3, binaries (B3)
  • File 4, timers (T4)
  • File 5, counters (C5)
  • File 6, control registers (R6)
  • File 7, de integers (N7)
  • File 8, point floats (F8)

This memory distribution can be seen in RSLogixMicro.

Input and output address

The size of de output file is depending of the quantity of output modules in the PLC. For address of outputs, the format is as follows:

O:#output_module/#bit

Where #output_module is 0 for outputs on the base and 1, 2, 3 and 4 for output modules in the position 1, 2, 3 and 4 respectively, So, the address of the first output is O:0/0 and the address of the output 5 in the module on the position 3 is O:3/5.

The address of the input is very similar, just the “O” is changed for “I”. So, the address of the first input in the base is I:0/0 and the address of the input 6 in the module on the position 1 is I:1/6.

Binary and integer address.

Binaries and Integers are grouped in elements of 16 bits. The following format is used to address a bit: B3:#element/#bit or also B3/#bit, where the #element is omitted. In this sense, the address B3:1/1 and the address B3/17 are same, for example, like the next figure shows, in the position with the red x.

Bit address

Bit address

Integers are of 16 bits, so, an integer can represent numbers in the range of -32.768 a 32.767. The address of the integers have the follows format: N:#elemento, so, a valid address for a integer is N7:1, referring to second integer of the file N7. Also it can access a particular bit of an integer, for example to access the last bit of the N7:1 the next address is used N7:1/15.

Timers and counter address

The address to access the timers, counters, control register, floating point and states will be explained later, when appropriate.

Instruction set of the PLC

The Micrologix 1100 controller is programming with ladder diagram. Instruction set of the processor is divided en group of instructions, such as: binary, timers and counters, arithmetic, logical, compare, program control among others.

Input and output instructions

Instructions that write on the data memory are called output instruction and are put in the last position on the rung. The rest of instructions are called input instructions.

Bit instruction group

The most basic instruction group is the binary and which we will explain below, within this group include the following instructions:

  • Normally open contact (-] [-, XIC), input instruction. In this instruction is assigned a binary address, for example, an input (I), an output (O) or a bit (B) and its behavior is as a relay whose coil is the associated address. If the address state is 0 (false), then the contact is open and there is no logical continuity, in other words, the instruction is false. If the address state is 1 (true), then the contact will close and there is logical continuity between its ends, in other words, the instruction is true.
  • Normally closed contact (-]/[-, XIO), input instruction. In this instruction is assigned a binary address, for example, an input (I), an output (O) or a bit (B) and its behavior is as a relay whose coil is the associated address. If the address state is 0 (false), then the contact is closed and there is logical continuity, in other words, the instruction is true. If the address state is 1 (true), then the contact will open and there is no logical continuity between its ends, in other words, the instruction is false.
  • One shot (-[ONS]-, ONS), input instruction. In this instruction is assigned a bit (B) and always has, at least, one instruction before it. The ONS instruction checks the state of instructions before it. When the state changes from false to true (rising edge), the ONS instruction is true during the time of one scan cycle. The instruction is false the rest of time.
  • Output coil (–( )–, OTE), output instruction. In this instruction is assigned a binary address, for example, an output (O) or a bit (B). When the rung is false, the OTE instruction writes 0 in the corresponding address and when the rung is true, the OTE instruction writes 1 in the corresponding address.
  • Output latch (–(L)–, OTL), output instruction. In this instruction is assigned a binary address, for example, an output (O) or a bit (B). When the rung is false, the OTL instruction does not do anything and when the rung is true, the OTL instruction writes 1 in the corresponding address.
  • Output unlatch (–(U)–, OTU), output instruction. In this instruction is assigned a binary address, for example, an output (O) or a bit (B). When the rung is false, the OTL instruction does not do anything and when the rung is true, the OTL instruction writes 0 in the corresponding address.

 

The complete instruction set of the PLC can be found here. The next figure shows the ladder diagram for a typical motor start developed with RSLogixMicro. A start button is connected in the input I:0/0, a stop button is connected in the input I:0/1, the auxiliary contact is connected in the input I:0/2 and the starter coil is connected in the output O:0/0. When the start button is pressed the rung is true till output instruction, then the starter is activated, the auxiliary contact is activated and the motor starts even if the start button is released. If stop button is pressed, the output instruction is false and the motor is stopped. The program can download to RSEmulate using RSLinx and then be tested.

PLC ladder diagram

PLC ladder diagram

83 Comments

  1. Pingback: » PLC: mis primeros pasosControl Real

  2. Kewwum

    buy stromectol 12mg – candesartan 8mg over the counter carbamazepine for sale

    Reply
  3. Bifisl

    order isotretinoin 10mg without prescription – zyvox 600mg cheap purchase linezolid

    Reply
  4. medartix.com

    Looking forward to reading more. Great article.Really looking forward to read more.

    Reply
  5. cupon reducere

    WOW just what I was searching for. Came here by searching for tongkat ali supplementAlso visit my blog post thaipurchase.com

    Reply
  6. just go to

    What’s up, just wanted to tell you, I liked this blog post.It was practical. Keep on posting!

    Reply
  7. bokep mantap

    Bardzo interesujące informacje! Idealnie to, czego szukałem! domowy generator tlenu domowy generator tlenu.

    Reply
  8. Wedding Venues in Western New York

    Heya i’m for the first time here. I came across this board and I in finding It really useful & it helped me out much.I’m hoping to offer one thing back and aid others suchas you aided me.

    Reply
  9. royal club casino login

    I really enjoy the blog.Much thanks again. Awesome.

    Reply
  10. 派傳單

    Thank you for some other wonderful article. Where else could anyone get that type of information in such a perfect approach of writing? I’ve a presentation subsequent week, and I’m at the search for such information.

    Reply
  11. traffic user

    weaning off zoloft schedule sertraline effects

    Reply
  12. Wedding photography

    Greetings! Very useful advice in this particular article! It’s the little changes that produce the most significant changes. Thanks for sharing!

    Reply
  13. tour sieu re

    Amazing loads of valuable knowledge. phd thesis abstract what to write an essay about

    Reply
  14. rank keywords quick

    Nice post. I was checking continuously this blog and I’m impressed!Very useful info specifically the last part 🙂 I care for such information much.I was looking for this particular info for a very long time.Thank you and good luck.

    Reply
  15. xhamster porn

    Well I really liked studying it. This tip offered by you is very useful for accurate planning.

    Reply
  16. car connectors

    Enjoyed every bit of your post.Much thanks again. Really Great.

    Reply
  17. auto carPlay

    Hey, thanks for the post.Really thank you! Want more.

    Reply
  18. biya pay

    Im obliged for the blog post.Thanks Again.

    Reply
  19. Drop shipping

    This is one awesome post.Much thanks again. Much obliged.

    Reply
  20. Sports Rehabilitation

    I value the post.Much thanks again. Awesome.

    Reply
  21. Dumpster rental near me

    Thanks again for the blog article.Thanks Again. Really Great.

    Reply
  22. linkin love

    Thank you for your blog.Really looking forward to read more. Cool.

    Reply
  23. bokep jahanam

    Pretty section of content. I just stumbled upon your blog and in accession capital to assert that I get actually enjoyed account your blog posts.Any way I will be subscribing to your augmentand even I achievement you access consistently quickly.

    Reply
  24. mini massager advantages

    I think this is a real great article.Really looking forward to read more. Keep writing.

    Reply
  25. business visa

    A fascinating discussion is worth comment. I do believe that you need to publish more on this subject matter, it might not be a taboo matter but usually people do not discuss these topics. To the next! Cheers.

    Reply
  26. Tang follow Tiktok

    Enjoyed every bit of your blog post.Really thank you! Want more.

    Reply
  27. Najlepsze kasyna online w Polsce

    Thông Tin, Sự Khiếu Nại Liên Quan Lại Đến Thẳng Soccer Nữ dangky.tluĐội tuyển Việt Nam chỉ cần thiết một kết quả hòa có bàn thắng để lần loại hai góp mặt tại World Cup futsal. Nhưng, để thực hiện được điều đó

    Reply
  28. jav porn

    Hey There. I found your blog using msn. That is a really well written article.I will make sure to bookmark it and come back to read more of your helpful information. Thank you forthe post. I’ll definitely comeback.

    Reply
  29. sweet puff

    I really liked your post.Much thanks again. Really Cool.

    Reply
  30. Zhenxindustry

    Major thankies for the article post.Much thanks again. Really Great.

    Reply
  31. Baixicans

    I value the article post.Much thanks again. Want more.

    Reply
  32. africa porn

    Amazing things here. I am very happy to peer your article.Thank you a lot and I’m having a look aheadto touch you. Will you kindly drop me a mail?

    Reply
  33. weng toto

    What’s up mates, its wonderful paragraph regarding cultureand fully defined, keep itup all the time.

    Reply
  34. Wyzpmv

    zithromax where to buy – tinidazole 500mg pills order bystolic without prescription

    Reply
  35. taxi porn

    Aw, this was a very nice post. In thought I wish to put in writing like this additionally taking time and precise effort to make a very good article however what can I say I procrastinate alot and in no way appear to get one thing done.

    Reply
  36. adult porn

    Hi there, I read your new stuff like every week. Your story-telling style is awesome, keep doing what you’redoing!

    Reply
  37. cara melihat pelanggaran di tiktok

    Hey there! I just wish to offer you a huge thumbs up for your great information you have here on this post. I will be returning to your blog for more soon.

    Reply
  38. Paste4D - Arena Game Digital Terpercaya

    A big thank you for your article.Really looking forward to read more. Will read on…

    Reply
  39. porn fans

    Hello.This article was really remarkable, especially since I was investigating for thoughts on this topic last Friday.

    Reply
  40. to read more

    magnificent points altogether, you just won a new reader. What could you recommend in regards to your publish that you made some days in the past? Any certain?

    Reply
  41. blue salt trick for men reviews

    Hi there, just became aware of your blog through Google, and found that it’s really informative. I am going to watch out for brussels. I will be grateful if you continue this in future. Lots of people will be benefited from your writing. Cheers!

    Reply
  42. Yyfdho

    buy prednisolone generic – cost omnacortil 40mg buy prometrium generic

    Reply
  43. esc online

    the ridge apartments rentberry scam ico 30m$ raised doraville apartments

    Reply
  44. Jughead’s Jokes

    peptide liquid tadalafil elitenet tadalafil

    Reply
  45. 출장마사지

    I really liked your article. Want more.

    Reply
  46. cost-effective water filtration

    Hi my loved one! I want to say that this article is awesome, nice written and come with almost all important infos. I?¦d like to peer more posts like this .

    Reply
  47. Latex hood

    Major thanks for the blog post.Much thanks again. Really Great.

    Reply
  48. C-64 Games

    It¡¦s in reality a great and useful piece of info. I am satisfied that you just shared this useful info with us. Please keep us informed like this. Thank you for sharing.

    Reply
  49. best geek bar flavors

    I really enjoy the blog post. Want more.

    Reply
  50. Sagrada Madre inciensos

    Fine way of explaining, and good post to get data on the topic of my presentation subject, which i am goingto deliver in school.

    Reply
  51. jaket hoodie

    Informative and precise Its difficult to find informative and precise info but here I found

    Reply
  52. may in 3d gia re

    I was suggested this blog by my cousin. I am not sure whether this post is written by him as noone else know such detailed about my difficulty.You are wonderful! Thanks!

    Reply
  53. Eje Cafetero tour Medellín opiniones

    Super-Duper blog! I am loving it!! Will be back later to read some more. I am bookmarking your feeds also

    Reply
  54. Miel natural

    There may be noticeably a bundle to know about this. I assume you made sure nice points in features also.

    Reply
  55. to read more

    metronidazole odontogenic infection flagyl nursing mother flagyl dose diverticulitis

    Reply
  56. Npbsjj

    buy gabapentin 100mg online – oral clomipramine 25mg order sporanox 100mg without prescription

    Reply
  57. 派傳單

    how to use ivermectin for dogs ivermectin shampoo for head lice

    Reply
  58. for more details

    Whats Happening i am new to this, I stumbled upon this I have found It absolutely helpful and it has aided me out loads. I hope to give a contribution & help other users like its aided me. Good job.

    Reply
  59. Pcnrlz

    how to get furosemide without a prescription – betnovate 20 gm brand3 buy betamethasone 20 gm creams

    Reply
  60. ice water hack

    pharmacy supply store near me walmart pharmacy camino canada

    Reply
  61. Dealer Yamaha Terdekat

    Really no matter if someone doesn’t understand afterward its up to other viewers thatthey will help, so here it occurs.

    Reply
  62. ghe massage tri lieu

    trustworthy canadian pharmacies turkey pharmacy online

    Reply
  63. Mizxkx

    buy monodox for sale – buy monodox sale how to get glipizide without a prescription

    Reply
  64. Ttpwpj

    augmentin oral – augmentin oral duloxetine 20mg ca

    Reply
  65. Tang like Facebook

    I enjoy, cause I found exactly what I was taking a look for. You have ended my 4 day long hunt! God Bless you man. Have a nice day. Bye

    Reply
  66. 实用文

    This is one awesome post.Really looking forward to read more. Much obliged.

    Reply
  67. 1xbet سایت اصلی

    Thank you, I’ve just been looking for information about this topic for a while and yours is the best I have discovered till now. However, what concerning the bottom line? Are you sure about the source?

    Reply
  68. Tang follow Facebook

    Thank you for sharing your thoughts. I trulyappreciate your efforts and I will be waiting for your next post thank you onceagain.

    Reply
  69. plastic injection molding

    Thank you for your blog.Thanks Again. Will read on…

    Reply
  70. click for more

    You have actually covered this topic professionally.

    Reply
  71. water bladder

    Thank you for your blog.Really looking forward to read more. Really Great.

    Reply
  72. universo

    accutane skin carestill breaking out on accutane month 5 accutane

    Reply
  73. datacenter proxies

    Great post.

    Reply
  74. vlastne tričko

    Hey there! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no back up. Do you have any solutions to protect against hackers?

    Reply
  75. SheTopper Shades

    A big thank you for your blog article.Thanks Again. Will read on…

    Reply
  76. nsfw ai chat

    Really appreciate you sharing this blog post. Great.

    Reply
  77. nsfw ai chat

    Very good blog.Thanks Again. Cool.

    Reply
  78. Smbmur

    augmentin 1000mg pill – generic cymbalta 20mg cymbalta price

    Reply
  79. دانلود برنامه آرین بت

    I loved your blog.Much thanks again. Great.

    Reply
  80. Real estate market

    Hello! I know this is kinda off topic but I was wonderingif you knew where I could get a captcha plugin for my comment form?I’m using the same blog platform as yours and I’m having problems finding one?Thanks a lot!

    Reply
  81. Explore our services

    Fascinating read and also the subject was good. Thank you with respect to preparing this commentary! I will be actually back with respect to more!

    Reply
  82. best usmle online course

    Thanks for sharing this fine article. Very interesting ideas! (as always, btw)

    Reply
  83. Tbgqch

    order rybelsus 14mg for sale – semaglutide cost buy generic periactin

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *