Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

How do PLCs normally measure 4-20mA current loops?

+5
−1

I'm looking for input from anyone with insight in the PLC world. How do PLCs usually measure 4-20mA current loops?

I would assume it's one of these two alternatives:

  • Through an external "shunt" resistor
  • Through internal current sense electronics

My scenario is an industrial system where I'm looking to generate different fixed current levels in a 4-20mA current loop based on relays. The fixed current will increase depending on how many relays that are active, such as no relays = 4mA, first relay = 8mA, first 2 relays = 12mA and so on.

The circuit will either look like this:

shunt_resistor

That is: current is measured across a "shunt" resistor of typically 250R added externally.


Or alternatively:

current_sense

That is: R10 has very low resistance and some manner of current sense electronics are built-in inside the PLC.


In case the PLC uses the former "shunt" resistor method, then I will have to adapt my resistor values accordingly. But in case they measure over some internal low ohm resistor like in the second picture, then I don't need to consider that.

I'm looking to create a solution that will suit most PLC solutions out there, but I don't know which one of these two circuits that are the most common.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

3 answers

You are accessing this answer with a direct link, so it's being shown above all other answers regardless of its score. You can return to the normal view.

+0
−0

you want a current source start with a linear regulkator like LM340 and use the relays to switch in different load resistors.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Sure but that doesn't answer the question (1 comment)
+3
−0

You should not be relying on the internal circuitry of whatever senses the 4-20 mA current. Note that the two implementations you show both use current sense resistors. The only difference is their value.

I have designed several current-sense front ends, although none were inside a PLC. The customer gets a spec for accuracy and maximum voltage drop. I would have been reluctant in some cases to provide any further specs because that would have limited future options. The maximum voltage drop is all that the customer should care about. How I might use that voltage range isn't anyone else's business.

For example, I used a 220 Ω resistor in one case where the voltage was fed directly into the A/D of a microcontroller running on 5 V. The next iteration might have used a 3.3 V micro, or a separate A/D for higher resolution or accuracy. Someone who relied on an unspecified value, like 220 Ω input resistance, would have had trouble with the new version, even though the new version is fully backwards compatible with the previous according to all published specs.

The answer to your question is "Don't do it that way". This is clearly an X-Y problem since you are asking about an imagined solution instead of describing the actual problem.

Pop up a few levels and describe the real problem in a separate question. It seems you have a set of signals, and you want a PLC to determine how many of them are asserted at any one time. Tell us more about these signals, their voltage levels, AC/DC, whether isolation is really required, how much current they can support, etc. There are several options that come to mind, but I don't want to guess at answers that would not meet criteria that are not yet stated.


My "actual" problem is that I've delivered a 24V relay system and the customer changed their mind and wishes to have a PLC with 4-20mA inputs instead

That's definitely better than what you asked originally. Apparently you're stuck with relay outputs, and a PLC needs to be able to read the number of asserted relays via a 4-20 mA input. If that's correct, ask that as a separate question. I can think of some possibilities that don't rely on how exactly the PLC implements current measurement.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Not really an XY problem (1 comment)
+2
−0

You can predictably generate a voltage with a R-2R ladder or a Rn^2 selector and then use a commodity V-I industrial converter interface to generate the current loop the customer desires.

You cannot make assumptions of the shunt resistance that the receiver will present, it may not even be purely resistive.

You may be facing outside pressure that the client is feeling where a competing supplier has motivated for a change in specifications in the hope that they can fulfil the specifications quicker than you can. Good luck.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »