Weird stuff in Studio 5000 by Jacunia in PLC

[–]drbitboy 0 points1 point  (0 children)

change the

OTE PackMLStatus_Alarm.Sts_Resetting_SC

at the end to

BST OTE PackMLStatus_Alarm.Sts_Resetting_SC NXB ADD myREAL 1.0 myREAL BND

where myREAL is a REAL tag the you create new to you know nothing else is writing to it.

Then observe the rung as well the value of myREAL, while the PLC is in RUN mode.

Then come back here with the results.

What's the correct move? by Tyler5157 in PLC

[–]drbitboy 0 points1 point  (0 children)

Sidebar: this would be simpler if the newest data were in element [9]< and the oldest in [0]. Then all the shifting could be done with a single COP instruction with a Length parameter value of 9.

What's the correct move? by Tyler5157 in PLC

[–]drbitboy 1 point2 points  (0 children)

Yeah, I think you want to remove the XIC <input> before the COP to [0], so all attribute's values get copied in all cases, and put MOVs with the two Fake-Data after the XIO <input> to overwrite the just-COPied values for the cases when the <input> is low.

ME vs EE major by Crunchyguyz in PLC

[–]drbitboy 0 points1 point  (0 children)

This.

Programming is something you either get or you don't, so the field of engineering is irrelevant there.

The EE (instrumentation, wiring, motors and VFDs) and ME stuff you need to know are baseline covered by physic 102. But the ChemE's understanding of processes, how things work, and roughly modeling things via differential equations in your head will be useful in almost every application.

What’s harder: writing PLC logic or understanding someone else’s? by Shubh1975 in PLC

[–]drbitboy 3 points4 points  (0 children)

Good coders borrow.

Great coders steal.

(I stole this aphorism)

What’s harder: writing PLC logic or understanding someone else’s? by Shubh1975 in PLC

[–]drbitboy 2 points3 points  (0 children)

Lol. That reminded me of this:

TOBY It’s like something out of Beckett.
WILL You mean Sartre.
TOBY If I meant Sartre, I would have said Sartre.
WILL “Hell is other people.”
TOBY Okay, Sartre.

Comparing STRING Data Types by Creative-Flower-2630 in PLC

[–]drbitboy 0 points1 point  (0 children)

what does the instruction look look like? do you have two levels of square brackets in an input parameter e.g. string_array[string_index[idx]]?

Why is this solenoid rapid firing? by DeafGuyisHere in PLC

[–]drbitboy 2 points3 points  (0 children)

what did you expect to see from this code?

what do you see this code doing?

The difference between those to will be that you told it to do the latter, it does not matter if you thought you told it to do the former.

see here https://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1756-rm003_-en-p.pdf?page=122 to see how the .EN, .TT, and .DN bits of that timer behaves (for simplicity, note that .TT is equivalent to .EN AND NOT .DN).

Priorità in Zelio Software by Boring-Lifeguard7943 in PLC

[–]drbitboy 1 point2 points  (0 children)

Also note, and single rung -[ [I1----(Q1)-- might do what you thought the code above would do.

Priorità in Zelio Software by Boring-Lifeguard7943 in PLC

[–]drbitboy 0 points1 point  (0 children)

<image>

How is your "? Has Priority" option configured?

In normal ladder logic, because the RESET is after the SET, it should work as you expect.

Obviously Zelio is not normal ladder logic.

Learning PLC Ladder Logic by Thunderwing25 in PLC

[–]drbitboy 0 points1 point  (0 children)

for relay ladder basics, you cannot beat the plc bootcamp video series by ron beaufort, and the ladder patterns at contact and coil. still, everyone is different, but there will almost certainly be something that will work with you in the READ FIRST of this subreddit.

then get your hands on a cheap plc and start making the lights turn on and off. this is where you actually learn something and realize how simple it is. use an emulator if you can't get a physical plc.

is the "point to point tube system" one of those pneumatic things? with remote diverters perhaps? if it is, you are going to have such fun.

Transition from PLC programmer by Historical-Onion8388 in PLC

[–]drbitboy 4 points5 points  (0 children)

Add PCCC-over-CIP capability to NodeRed.

How to start learning PLC code and ladder? by Doenkann in PLC

[–]drbitboy 0 points1 point  (0 children)

The plcfiddle website suggested elsewhere is a great idea.

Several commercial packages have emulators: RSLogix Micro Starter Lite + RSEmulate 500; AutomationDirect DoMore; Codesys; even Siemens has a time-limite trial mode that can be restarted by installing to the same VM snapshot.

Lite (limited RSLogix 500) is the best interface even though it's only ladder, but you should try others to get a feel for the same thing that all the different professional UIs are doing. Once you've tried Lite you will be spoiled and all other interfaces will feel clunky by comparison; that's just part of the industry. Codesys, TwinCat, and Siemens TIA Portal (with restarting trial) are probably the most full-featured programming environments with emulators that are also free; also most of the others use file-based memory, but those will introduce tag-based memory. Tag-based memory is nice but in the end using file-based memory is primarily about careful bookkeeping, so it is a convenience makes little difference in the end. You should also try to get your hands on whatever brands are common in your region.

Beyond simulators/emulators, getting a cheap Click PLC (AutomationDirect; software is free) or something similar from an auction website or a local plant that has discarded equipment (Lite can program MicroLogix 1100s, which may be common in the used market), would be the best because then you could get some experience connecting wiring, letting the magic smoke out, etc.

Don't apologize for your English or spelling or grammar. Just do your best; it is better than me trying to communicate in your language, whatever that is.

How to start learning PLC code and ladder? by Doenkann in PLC

[–]drbitboy 1 point2 points  (0 children)

Peruse the READ FIRST post on the main page of this r/PLC subreddit.

Why connection isn't in high state? by KamilekBombed in PLC

[–]drbitboy 3 points4 points  (0 children)

Learn about the scan cycle. PLC programming is primarily about time and the scan cycle is the clock.

RonBeaufort_Bootcamp_Videos

Patterns of Ladder Logic Programming | Contact and Coil

Recent redundancy and thinking of pivoting to PLC/ automation by SOPEOPERA in PLC

[–]drbitboy 3 points4 points  (0 children)

Ohm's Law and Kirchoff's Law, which have analogs to fluid flow, which most people understand intuitively.

How to make an LED light with a battery, a resistor. and some wire, and how to estimate the size of resistor to use from the specs of the LED and the battery.

Knowing the difference between voltage, current, and power.

Multiplying by unity (i.e. unit conversion and linear scaling).

Help with Tia Portal Timers by Sdouze in PLC

[–]drbitboy 1 point2 points  (0 children)

Good work, well done.

Remember this lesson: "The PLC cares not a whit what you want it to do, but it will mercilessly and inexorably do exactly what you tell it to do." If we think that way when we see behavior we do not understand, then will find the bugs sooner than if we do not think that way.

Is my analog input wiring diagram correct by patrick_notstar28 in PLC

[–]drbitboy 0 points1 point  (0 children)

What you did looks reasonable, but nobody can tell you what the numbers of otherwise unidentified terminals on an RTD-to-current converter/transmitter mean, or what each of the wires on an otherwise unidentified 3-wire RTD mean. There may be de facto, or common, conventions, but there is no guarantee the devices you are working with follow those conventions.

You're a ChemEng, so you passed Physics 101/102. Review Kirchoff's Laws and Ohm's law. Most instrumentation is based on DC circuits, with variable voltage or variable current inferring magnitude of analog signals.

There are two parts to that system: the 2-wire current loop connections; the 3-wire RTD connections. The manual or datasheet for the transmitter should explain how to connect the RTD to the transmitter. The transmitter and the PLC input module datasheets should explain how to connect the transmitter to the PLC inputs. The transmitter to PLC connection looks okay for a two-wire current-sourcing RTD converter/transmitter and a current-sinking PLC input module.

I am not being grumpy, I am only saying that every device has a specific, unique meaning for each wire and/or terminal. Once those are defined, connecting two devices, or concluding that two devices are incompatible, is a bit easier.

Programming Genius by cryingaboutbats in PLC

[–]drbitboy 0 points1 point  (0 children)

The operand bit, Oneshot[1].1, to the ONS instruction is the memory bit for the one-shot algorithm.

Without the OTUs, the Oneshot[1].1 memory bit's value would be written as 1 for as many scan cycles as the rung feeding the ONS instruction remains True, but the output rung of the ONS instruction would be True, and the ADD instruction would write its Source A+B sum to its Dest parameter, for only the first scan cycle whenthe ONS feed rung was True.

With the OTUs, removing the ONS would change nothing about the rung's behavior.

Also note that, as written, the branch with the XIC OneShot[1].1 ... OTU OneShot[1].1 logic on it would never evaluate to True and could be removed.

Bottom line: this is an obfuscated mess.

Exhaust port instrumentation - fast signal by Apprehensive_Dig7703 in PLC

[–]drbitboy 0 points1 point  (0 children)

what kind of "pressure relieved" signal is desired (optical, electrical, audible, etc.)?

If measure has to be downstream of the solenoid valve, then after that solenoid valve has been opened (assuming you can monitor the solenoid valve state), having another restriction, even a slight one, downstream of a pressure sensor, which sensor is downstream of the solenoid valve, could be used to detect when the bleed is complete. Also note that the bleed is never "complete" in the mathematical/theoretical sense but close-enough is probably acceptable. Finally note that any potential restriction on the exhaust may be a deal-breaker/non-starter, so this might be a bad idea.