Random Ladder Logic Programming Question

timcph2008

Member
Join Date
Jul 2015
Location
United State
Posts
33
Hey guys,

I am replicating an old ladder logic program recently.

And I have some questions, I am not sure these logic was made for a purpose or just the previous engineer's habit.

1. All the real variable, it use int type and multiple by 10.
For instance, the temperature set point is 212.0 Fahrenheit, in the program, you would see 2120, the last 0 is the tenths after decimal point.

However, the program has real number type, I dont understand why can we use real number.

2. I saw some output as a relay to energize the same output coil.
which looks like this:


out1 out1
----||----------------()------



no other relay is link to this out1, should this out1 be always off?
I guess this output is abandoned, right?

What do you guys think?


 
Common to do this in older proc that use serial radio or other slow link. Integer Registers are a single register and a float (REAL) takes 2 registers.

I can't see how the second rung is useful.
 
-| |--( )- gives you a view of the output in your code. So you could right click it and hit toggle, for example.
If I saw that I would be 95% confident that "nothing writes to the output." Confidence would go up, if I knew the programmer. (Or down I guess, depending on who the programmer is)

It is also significantly faster for an old CPU to do 16 bit integer math (2120+320)*5/9 than it is to do floating point math (212.0+32.0)/1.8
You are also clear on your accuracy with INT. Floating point has issues with 0 Vs "about zero".
Also for a given old school protocol, 16bit is nearly twice as fast to send as 32bit float.
The modbus standard does not have floats (or at least it didn't)
 

Similar Topics

Looking for some advice for backing up the programs on a bunch of old random PLCs. All I'm really concerned about is getting the program out of...
Replies
43
Views
4,692
We have several Powerflex 4M (22F-D013N114) VFD’s controlled by compactlogix PLC’s. Control is simple, a run and direction signal with the speed...
Replies
6
Views
1,523
Hi all, I know this is a PLC forum, but I know there is a gread deal of knowlege on drives as well. This drive has been running on stone...
Replies
2
Views
881
Hey folks, I was just wondering what thoughts were about a completely 100% random number generator. I looked on The Google but didn't really open...
Replies
54
Views
16,522
Hello Friends I need to activate random outputs (0-9) and ask for random inputs (0-9). I have created in s71200 a program to generate a random...
Replies
13
Views
4,679
Back
Top Bottom