×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Difficulty in understanding PLC 5 Logic

Difficulty in understanding PLC 5 Logic

Difficulty in understanding PLC 5 Logic

(OP)
Hello Everybody
I am having difficulty in understanding a logic in PLC 5 and I have attached print outs for the same. Data files D56:15 and D56:16/0 to D56:/3 is triggering outputs O: 014 and O: 015. These outputs are used to transfer set points or other parameter values to a servo controller and according to my understanding it works on BCD coding. I am having difficulty in understanding what we are trying to do in rung 37 and why? In second AND function why "Source B" is having "-16" as value? Displayed value of file N7:32 is in Hex. or in Dec. and why we are dividing it with 16, it says it is bit shift right but how it is shifting?
I would greatly appreciate if somebody can explain these steps in detail.  
Thanks
 

RE: Difficulty in understanding PLC 5 Logic

The data is made up of 16 bits, the AND instructions is transferring the low 4 bits (a number between 0-15) into D56:16 and then transfers the high 12 bits into N7:32, which I imagine is just a temporary storage.

The final divide by 16, is simply shifting the bits to the right before storing them in D56:15.

So the original data contained 2 numbers in the 16 bits.

bits 1-4 = 1st number
bits 5-16 = 2nd number

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources