/r/PLC

Photograph via snooOG

This sub is dedicated to discussion and questions about Programmable Logic Controllers (PLCs): "an industrial digital computer that has been ruggedized and adapted for the control of manufacturing processes, such as assembly lines, robotic devices, or any activity that requires high reliability, ease of programming, and process fault diagnosis."

Description

This sub is dedicated to discussion and questions about Programmable Logic Controllers (PLCs): "an industrial digital computer that has been ruggedized and adapted for the control of manufacturing processes, such as assembly lines, robotic devices, or any activity that requires high reliability, ease of programming, and process fault diagnosis."

On topic subjects

  • News and articles about PLCs
  • Questions about PLCs
  • Homework help; but make it clear it's homework
  • PLC internship, employment and education questions

Off topic subjects

Rules

  1. Be civil: do not insult; no all-caps, no excessive "!" and "?", please.
  2. Submissions must be on topic
  3. If asking a question, ask the actual question, fully yet concisely, right in the title
  4. No spam; no self-promotion (*); no commercial content. Any ads (offer or wanted) go to the weekly thread
  5. No shit posts (memes - pictures with superimposed text - are OK)

(*) At mods' discretion, certain self-promotion submissions from people who contribute to this sub in other ways may be allowed and tagged with the "Self-promo" flair

Complete rules:/r/plc/about/rules/

Please click "report" on spam

Related sub-reddits:

/r/IndustrialAutomation

/r/processcontrol

/r/controltheory

/r/askengineers

/r/askelectronics

/r/arduino

/r/EngineeringResumes

/r/PLC

93,299 Subscribers

1

Opto22 Control Basic

I have been tasked with learning how to program an automated box that controls some water pumps and translation stages at my job.

The installed PAC is an OPTO22 SNAP PAC, so I've been messing around with it and the Opto22 Control Basic.

How should I go about learning how to get this thing to work?

0 Comments
2024/12/03
21:37 UTC

1

Can't connect to 1214c Siemens PLC

I have a weird problem that i can't get my head around. In my system i have 3 motor drives that I'm communicating with over modbus rtu And the plc is connected to my pc using the usual Ethernet cable. The connection is fine and the drives receive the run signal correctly, but whenever i send the speed to any of them and it starts running. The connection between the plc and pc falls and I can't connect to the plc again or ping it's ip from cmd until i switch off the power to the motor drives What could be the reason for this

1 Comment
2024/12/03
20:59 UTC

4

Knowledge needed

Hi guys. If you were an HR Manager, what skills and knowledge, including practical ones, would you require from a starting PLC programmer ?

3 Comments
2024/12/03
20:43 UTC

2

to earth or not to earth Current transformers

Hi All Please advise if S2 must be earhed? i could not find this mentioned in the manual. Does it make reading more accurate? if yes why is it so? what if earthing cable is 2m long from s2 to the earthing bar -is it a problem? can it pick up some noise? and make crs readings worse?

ps. as usual there will be a small party and cakes for people sharing their knowledge or experience :)

4 Comments
2024/12/03
20:41 UTC

1

sending ZPL program from Omron PLC CP2E-N to Zebra printer, i need help with the attached code below

i need support tin this code below

; --- Configure Socket 1 ---

MOV #1 W16000 ; Socket Number (1 for first socket)

MOV #10000 W16001 ; Local UDP/TCP port (10000)

; Remote IP Address: 192.168.1.100

MOV #C0 W16002 ; First byte of IP address (192)

MOV #A8 W16003 ; Second byte of IP address (168)

MOV #01 W16004 ; Third byte of IP address (1)

MOV #64 W16005 ; Fourth byte of IP address (100)

MOV #2323 W16006 ; Remote UDP/TCP port (9100)

MOV #20 W16007 ; Number of bytes to send (e.g., 20 bytes of ZPL data)

; Data to be sent starts at W16008

MOV #W16008 W16008 ; Data memory address (ZPL data starting at W16008)

MOV #500 W16009 ; Timeout time (500 * 100ms = 50 seconds)

MOV #0 W16010 ; Response code register (to store result)

; --- Example ZPL Data for Testing ---

MOV #5E58 W16008 ; ZPL part: "^X"

MOV #4120 W16009 ; ZPL part: "A"

MOV #5E46 W16010 ; ZPL part: "^F"

; Add more ZPL data as needed

0 Comments
2024/12/03
20:13 UTC

1

Rack slot assignment

Are there any special rack slotting assignment conventions us low life knuckle dragging apes need to know about? Should it be all special function modules first then I/O cards? I'm sure there isn't a "wrong" way to do it. But I'd like to know a better way. Thanks in advance

4 Comments
2024/12/03
20:02 UTC

1

VFD GS11N-10P2 AUTO-RUN

Buen dia!

El motivo de mi post es para preguntar como puedo configurar un VFD de automation direct para que al momento del arranque inicie solo en reversa si necesidad de ir directamente al VFD

Buen dia!

0 Comments
2024/12/03
19:44 UTC

2

Codesys doesn't initialize variables of complex types from external libraries

Hey there. Found out some weird behavior of Codesys IDE:

I've got the library, let's name it Library, with property LanguageModelAttribute(Text) := 'qualified-access-only' (is necessary to limit access of library symbols within the namespace). There are structure types ST_Struct and ST_Nested with primitive types inside. Variable of type ST_Nested is nested in ST_Struct. Also I've got project with PersistentVars list and Library in LibraryManager. There is variable stData of type Library.ST_Struct in PersistentVars list. When I've made changes (add/delete variables) in ST_Struct or ST_Nested in Library and update the project, there is no warning about initialization of PersistentVars.stData variable. I make download and my PersistentVars list just "shift on the memory" and I've got garbage in existing variables from the place where I've made changes. I expect that there should be zeroes. Everything will be fine, if I remove LanguageModelAttribute or use structures with primitive types inside

I've test it at Codesys 3.5.16 and 3.5.18, maybe in newer versions this thing is fixed. If anyone got ideas how to make it work, please help. Thanks

0 Comments
2024/12/03
19:07 UTC

0

Most common crimp connector sizes EU/Japanese Equipment

Hi, I've bought a ferrule crimp set recently and most of the crimps don't fit Omron, Yaskawa, Phoenix terminals / connectors. Can anyone tell me a few sizes commonly used for 24V and 230V in EU/Germany. Fork, ring, ferrule crimp recommendations would be also greatly appreciated.

3 Comments
2024/12/03
18:52 UTC

1

Stl and scl learning resources

I'm new to plc programming and got my hands on ladder diagram so any guide to learn stl and scl on youtube or any course

6 Comments
2024/12/03
17:53 UTC

1

Does anyone know why tag assignment disappears when I copy screens from 1 FT Optix files to Another?

I have some 20 screens per panel and 5 such panels.Due to the Screwup by client we have to include all the screens in a single SCADA and we created all files seperately for each panel as per the previous requirement.Now I tried to copy screens after importing tags of all relevant panel controllers but the assignment to containers get lost making me reassign all the graphics elements to tags again.

5 Comments
2024/12/03
16:50 UTC

1

wago pfc200 io error logs - HELP!

Hi! I'm looking for help with IO Error issue that I have on my plc wago 750-8212. Randomly my PLC has IO Error LED indication blinking red on plc. I checked that there is error code 9 argument 5, that indicates there is some issue with task priority. Once of my tasks is set with priority == 1, that I assume may be the problem. Is there any way to check some logs what is going on exactly? The issue is very random, sometimes it can trigger multiple times per day, sometimes it works hours without any issues. It hard for me to trigger it to test, so any logs or methods how to check more details about this error would be nice. Does anyone have any tips what can I check?
PLC is not accessible via codesys 3.5 while IO Led is red, but I can ssh to it.

1 Comment
2024/12/03
16:35 UTC

1

Allen Bradley PLC Alarm instructions

Has anyone used those in the past? I've worked mostly maintenance and all the alarms were usually in the FactoryTalkView alarm server, both in ME and SE. I've worked on a variety of machines but never seen it used.

Whats the use case for those, when should they be used, and when shouldn't they?

4 Comments
2024/12/03
16:04 UTC

2

Studio i/o mapping question

New to studio 5000, and this is my first time writing a program from scratch. I have written a few programs using 500, but it has been a few years since I have done that. I have been reading and learning a lot from other peoples posts on here, but I have seen some mixed answers. I am hoping someone can confirm if I am doing this correctly/best practices or steer me in the correct direction. I am working on mapping my I/O. and I have a few questions.

  1. Do you normally just have a subroutine with everything mapped how I have it with the actual inputs referenced and attached to an output bit?

  2. Do you have a seperate sub routine for inputs and outputs or use the same routine?

  3. Regarding outputs, do you normally have a line that references the actual output on the card to the mapped output or do you also include any other bits that you want in the logic to be true/not true in order for that output to work?

  4. Am I doing this all wrong? When I add the actual input do I change the type to "alias" and then in the "alias for" box I enter my Ejection_Stop_PB instead of creating a seperate bit for that?

Any other tips or advice would be greatly appreciated.

https://preview.redd.it/13mh6357ln4e1.png?width=1934&format=png&auto=webp&s=4bffec0cc451630af85991ddda53738aade9e23d

https://preview.redd.it/yem3g8k8ln4e1.png?width=1565&format=png&auto=webp&s=5cb4143f77054b8876ebb2abae29f48f875334af

https://preview.redd.it/ijey1tdajn4e1.png?width=1531&format=png&auto=webp&s=264ce6a9d5f809fd9122b19168ed1fb491459750

https://preview.redd.it/0r46d4m9ln4e1.png?width=1587&format=png&auto=webp&s=47c0260a8ee9a4e4a200c2a9cb9fb45dd1f1e96c

4 Comments
2024/12/03
15:40 UTC

0

Help, i feel stupid

I feel really stupid, I'm new to this and I'm trying to learn.

I had this multi switching assignment and that I had no issues connecting and have it working without the PLC, but when it comes to translating it to a multi switching circuit with a PLC, my brain just isn't working, especially because the lightbulb is supposed to be powered with 230V.

How do i separate the 24V out from the PLC from the 230V that's supposed to go in the lamp? Am i missing something or have I misunderstood the assignment?

I'm supposed to use a lamp, 2 buttons and just wires to connect the thing and just write a XOR block to the PLC. I feel like a moron.

https://preview.redd.it/0x170jcyin4e1.png?width=628&format=png&auto=webp&s=c1c41a6795937cbe7876d1e0731827082405a62a

13 Comments
2024/12/03
15:28 UTC

1

Danfoss MCA 101 Profibus GSD file

Hi Guys,

Can you please tell me which GSD file to use for that Profibus module, while configuring, i have issue that set_prm is faulty.

Can you please tell me which GSD file to use, maybe i am using the wrong one.

0 Comments
2024/12/03
14:52 UTC

0

Quality to IT/OT

Hi all, seems like on this subreddit there are a lot of IT/OT people, hence i try my luck.. I am currently working within QA as a Sr specialist and have automated a couple of internal processes at our site and I am currently working on my Green belt cert that focuses on leveraging SAP, a QMS and GPT to create a reporting system. I was approached by our head of IT and she offered me a position in their it Department which would consist of implementing automation, IT Projects(update of MES and SAP) at site level. I am pasionate about IT and can code however this is more of what I do in my spare time and not a career per se (i do not have an undergrad in cs). I was looking to get to a quality manager position in the next 2-3 yrs, however switching departaments Will most likely impact the salary and career progression. Plus switching departaments and not having a cs/engineering (i am a pharmacist) background would set me back in the future?

Id like to hear more about IT/OT and whats your day to day life, Background and career prospects? What projects do you work on?

1 Comment
2024/12/03
14:50 UTC

162

[meme] all my homies hate git

44 Comments
2024/12/03
14:34 UTC

47

(---POTATO---)

What did Allen Bradley mean by this? Spotted on 1747-SDN card

12 Comments
2024/12/03
13:29 UTC

10

Working in food industry

Hi, I am an automation tech working in automotive for about 5 years. I applied for a job in food industry, and I have an interview with the employer in few days. What technical questions should I be prepared for? How much food is different from auto industry? What machines and equipment are mostly used...

15 Comments
2024/12/03
10:43 UTC

2

Alarm_8p and Notify_8p in TIA Portal

Good morning folks, so I've had to convert a old Step7 program to TIA Portal because we're switching from S7 300/400 CPUs to a S7 1500 with ET200s, I migrated the project but now I'm sitting with the issue where Data types Alarm_8p (SFB 35 in Step7) and Notify_8p (SFB 31 in Step7) are not supported by my 1500 CPU and library, what will the TIA Portal equivalent be of those 2 SFBs be that I can replace them with? Thank you in advance

2 Comments
2024/12/03
10:16 UTC

0

Probleme automate

2 Comments
2024/12/03
09:53 UTC

6

1756 edge compute module - anyone had a go with it.

Stumbled upon it accidentally

11 Comments
2024/12/03
09:50 UTC

0

Adding Ultrasonic sensor to machine

I would like to add a ultrasonic sensor to a machine which stops it when detected and then restarts it when the timer has finished. I have a simple circuit with a relay, timer and two output relays. One NC to press the stop and one NO to activate the start however when wiring it in the NC relay cuts off the ON/OFF switch. I am new to controls so any help would be greatly appreciated.

3 Comments
2024/12/03
07:31 UTC

2

Where do I start?

I want to start learning how do programming for the work I do. I currently do a bit of wiring for the PLC that I use. They are used in industrial machines which have some series of automations. From what I understand, it's not too complicated. The programs for now are already made. So, as far as I understand, nobody has done it from scratch. Anytime something has to be changed, somebody comes in and does the tweaks for us. But I really would like to learn how to do it by myself. The more I know, the better. To begin with, I want to understand how to get a tweak done that I want whenever that is needed. But if I can do or build out a whole PLC program from scratch, that would be great as well. Usually use Delta PLCs and pair it with HMIs, which are either Delta or similar brands like Innovance or something like that.

9 Comments
2024/12/03
06:17 UTC

1

Anyone ever change an IP on a AB 1756-RM2 pair?

I have to update a system to a new subnet but I'm not 100% clear on the process for these modules. Do I manually assign the IPs with RSLinx to be two adjacent IPs and the system will just swap them? Same process as any network card? The manual wasn't by specific if it an already running system.

Also, is it an offline build? Or can it be done online?

Appreciate any experience with these.

4 Comments
2024/12/03
04:44 UTC

2

Node lock

My RS500 serial number states node locked in FTAM.

Any ideas how, or why? I can’t use the software.

3 Comments
2024/12/03
04:26 UTC

1

Help with I/O Reports

I'm currently taking an automation class, and my instructor wants my lab partner and I to write an I/O report for a program we've written. We're supposed be including enough that a technician can come in and start troubleshooting before they even load the ladder into Studio 5000.

So far, we've listed all of the inputs, outputs, the counters and timers. We've done a sequence chart for each step of the program.

I don't really have a great deal of experience with I/O reports. Can anyone offer any suggestions for what else would be important/useful to include?

5 Comments
2024/12/03
03:43 UTC

2

WAGO Fieldbus with RS-485 Help needed

I have a WAGO 750 controller with Ethernet to a 750-363 Fieldbus coupler with some IO. I recently needed to communicate to a RS-485 device, so I added a 750-653/003 serial interface card. I setup the basic serial interface in WAGO IO Check, but I can't seem to figure out how to send a message to read/write to a register or coil. Has anyone used these before?

2 Comments
2024/12/02
23:48 UTC

Back To Top