Jump to content

Converting S5-103U program to Omron CJ1M


Recommended Posts

Posted
I have a Siemens S5103U program in STL which I have been able to convert pretty well until I hit this piece of code. Can anybody tell me about DO statement below? I've read the book and the examples but I can't figure out what it does. Code (Snip) C DB 12 L KF +0 T FW 180 L KF +0 DO FW 180 T DW 0 L FW 180 L KF +1 +F T FW 180

Posted
Its S5 indirect addressing, its loading zero into a DW which is offset by the contents of FW180, L 0 T DW(0+FW180) so if FW180 = 50 it woyld be putting zero into DW50.
Posted
Thanks! So this is more like indexed addressing with base word and offset determined by FW180.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...