View Single Post
Old October 10th, 2017, 06:51 PM   #2
daba
Lifetime Supporting Member + Moderator
United Kingdom

daba is offline
 
daba's Avatar
 
Join Date: Jul 2004
Location: uk
Posts: 4,001
Quote:
Originally Posted by cefisher15 View Post
I've got a print-out of old code (PLC-5/250) that I am trying to decipher. I am hung up on an expression in one of the compute blocks. The block parameters are as follows:

COMPUTE
Dest: NUMST
Expression: I:013{07..00}+(I:013/16<<8)

Can anyone please help me understand what this expression is saying? I can take a picture of the rung if it will help, but that is all of the info from the block.
I think I have deciphered it, and to be fair it looks a strange one, but to be absolutely sure can you show the bit patterns of I:013 and NUMST after the compute has been executed.
__________________
___________________________
ControlLogix & SLC Training
a-b train ltd.
abtrain@tiscali.co.uk
www.abtrain.co.uk
tel: 07506 73 9999
nil illegitimi carborundem



Last edited by daba; October 10th, 2017 at 06:53 PM.
  Reply With Quote