Jay Anthony Posted February 25, 2010 Report Posted February 25, 2010 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
Groo Posted February 27, 2010 Report Posted February 27, 2010 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.
Jay Anthony Posted February 27, 2010 Author Report Posted February 27, 2010 Thanks! So this is more like indexed addressing with base word and offset determined by FW180.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now