RHC instruction on MLX1400

chantecler

Member
Join Date
Feb 2013
Location
Caracas, Venezuela
Posts
59
Hi all,

Please, could someone give me a working example of how to use the RHC instruction?

I want to measure the speed of a machine that works between 230 and 250 cycles per minute. The method I usually use to measure speed works well at low speeds, say less than 30 cpm but as the speed increases, the measurement varies because it relies on the scan time which also varies.
I have tried to write code using the RHC instruction but can't get it working right.

Thank you
 
Can you post what you have so far?


Is MLX MicroLogix (not Micro800)?


What data type is being used in the RHC instruction?


Have you seen the TDF instruction?


xxx.png
yyy.png
 
Last edited:
Can you post what you have so far?

Don't have my work computer with me at this moment


Is MLX MicroLogix (not Micro800)?

Yes, Micrologix 1400


What data type is being used in the RHC instruction?

I tried LONG and Float, I'm going to use INTEGER next time


Have you seen the TDF instruction?

No, didn't have seen it :oops:. I was using simple SUB, but now that I have I'm going to use it.

Thanks a lot, I'll let you know. :)
 

Similar Topics

I'm rewriting a program for CLX that was originally SLC. It makes use of RHC and TDF instructions to create TimeStamps for a velocity calculation...
Replies
0
Views
1,324
Hello, I have a system that use to have a 1747-L542C 5/04 CPU -32K Mem. OS401 Series C FRN 3-8 and was upgraded to a 1747-L553 5/05 CPU - 64K...
Replies
1
Views
1,604
I'm trying to dig to the source of a minor "recoverable" system fault throwing a fault light on a machine that has been confusing my operator...
Replies
3
Views
92
I'm using a SLC typed write from the ControlLogix5572 to the MicroLogix 1400, with path: 2, (MicroLogix IP). The ControlLogix equipment has a...
Replies
0
Views
108
Does this instruction calculate values during a single scan, or does it require number of scans based on element count in the array? For Example...
Replies
3
Views
119
Back
Top Bottom