Jump to content

Recommended Posts

Posted
Good morning people! May I ask if there are some sensei in ladder programming that can help me interpret this code to a ladder program. Initialize CHECKSUM as FFFF(Hex) (There is a FOR NEXT Instruction) FOR each Byte CHECKSUM = CHECKSUM XOR (current byte) FOR I = 0-7 If ((CHECKSUM AND 1) = 0) CHECKSUM = Right_Bit_Shift CHECKSUM 1 bit Else CHECKSUM = (Right_Bit_Shift CHECKSUM 1 bit) XOR A001(Hex) NEXT I NEXT Byte I hope you can give me some ideas on this guys. I need some CRC function on the machine I am programming and I find it hard interpreting it in a ladder program. Thanks guys.
Posted
OK, so you cannot use FBs. Did you solve it? It's a little bit of work to make the CRC check, so I don't think anyone will make it for free... Did you solve it? Do you interface with an existing CRC application, or do you need it for your personal need in some way?
Posted
Good day sir. I am trying to figure this out. Somehow I did some progress, but this is far from complete. I came to use FOR NEXT statements and I saw in the programming manual that there are existing logical ops that might help me. I am now trying to figure out the stuff that must be programmed inside the ladder to complete the process as it has a time prerequisite (It was a MARKEM printer on a high speed horizontal wrapping machine. I will update you regarding the stuff.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...