Absolute Encoder

I don't know how recent is 'recent' for you, Peter. The CPS instruction has been around at least since Version 10, which I believe is about 2 years old.
I also got spanked by using the COP instruction in CLX withoput actually considering what it meant. The CPS instruction solved a couple of odd, intermittent issues I was having, once I knew it was there and understood what it solved. Being a PLC5 guy, I never even considered a COP could get screwwed up.
BTW, it was a post here that put me on to the CPS instruction. This really is a useful place for such info.

Keith
 
I was able to get this working today by using Ken's method. I've tried to attach the ladder showing it. It worked great. Thanks for all the help.




BST MOV Oven_Flex_IO:2:I Encoder_holding_register2[0] NXB XIC Single_shot_on.29 NOT Encoder_holding_register2[0] Encoder_holding_register2[0] NXB XIC Single_shot_on.30 MOV 0 new1 BND 



BST XIC Encoder_holding_register2[0].9 OTE new1.9 NXB BST XIC new1.9 XIO Encoder_holding_register2[0].8 NXB XIO new1.9 XIC Encoder_holding_register2[0].8 BND OTE new1.8 NXB BST XIC new1.8 XIO Encoder_holding_register2[0].7 NXB XIO new1.8 XIC Encoder_holding_register2[0].7 BND OTE new1.7 NXB BST XIC new1.7 XIO Encoder_holding_register2[0].6 NXB XIO new1.7 XIC Encoder_holding_register2[0].6 BND OTE new1.6 NXB BST XIC new1.6 XIO Encoder_holding_register2[0].5 NXB XIO new1.6 XIC Encoder_holding_register2[0].5 BND OTE new1.5 NXB BST XIC new1.5 XIO Encoder_holding_register2[0].4 NXB XIO new1.5 XIC Encoder_holding_register2[0].4 BND OTE new1.4 NXB BST XIC new1.4 XIO Encoder_holding_register2[0].3 NXB XIO new1.4 XIC Encoder_holding_register2[0].3 BND OTE new1.3 NXB BST XIC new1.3 XIO Encoder_holding_register2[0].2 NXB XIO new1.3 XIC Encoder_holding_register2[0].2 BND OTE new1.2 NXB BST XIC new1.2 XIO Encoder_holding_register2[0].1 NXB XIO new1.2 XIC Encoder_holding_register2[0].1 BND OTE new1.1 NXB BST XIC new1.1 XIO Encoder_holding_register2[0].0 NXB XIO new1.1 XIC Encoder_holding_register2[0].0 BND OTE new1.0 BND 

 
Your 845G encoder has 'high true' outputs. The input module you are using is a 'low true' type. The module is inverting the encoder data. Use a "NOT" inversion statement in ladder logic before your gray to binary conversion.
Inverted gray code does not properly convert with this ex-or type ladder conversion.
 

Similar Topics

Hello. An absolute encoder on a rotary axis gives values in range -2147483648 to 2147483648. When value is > 2147483648 , the encoder value is...
Replies
20
Views
2,344
I have 2 Absolute Encoders 8192 steps per Rev. (Model TR Electronic CEV65m-11003) These Encoders communicate to the PLC5-60 via Parallel push/pull...
Replies
3
Views
1,547
Hi guys I am new to Encoders, so I have limited understanding of how to actually configure it, to the situation that I am in. Using this Absolute...
Replies
2
Views
1,618
Hello to you all! I hope there is someone who can clarify some things to me..... Equipment used: TM PosInput1 (6ES7138-6BA00-0BA0) to read the...
Replies
0
Views
1,281
How to connect the absolute encoder(12 bit resolution) to Hsc module of Slc500 Plc and get raw-data to my ladder logic? Please give me example...
Replies
8
Views
2,737
Back
Top Bottom