S7 indirect addressing examples?

Johnny T

Member
Join Date
Jul 2003
Location
Fife, Scotland
Posts
642
Hi

I'm going to be showing a few lads the basics of indirect addressing this week. I need to teach them about pointers etc and wondered if you had any ideas for examples/tasks I could set them.

The last example I'll be building up to will be to get them to write some code that will monitor a word whereby each bit represents a fault on a machine and cycling fault messages on an OP7 display.

So.. detect that bit M70.0 is set and show the relevant message for 2 seconds, then check M70.1, M70.2 etc until you find one that is set and display the relevant message for 2 seconds before moving on.

Anyone got any other idea's of task/examples etc that I could get them to do or incorporate into my talk to them?

Any thoughts/ideas appreciated.

Cheers

JT :)
 
Simon, thanks for the link. I think the FC397 you posted may be a bit beyond their scope but I might try and simplify it down for them.

Many thanks.

JT
 

Similar Topics

Howdy folks, I am an Allen Bradley guy currently living in an Emerson world. Working with Rx3i on PacSystems Machine Edition v. 9.6? i think...
Replies
3
Views
578
Hello, I'm very new to programming with absolutely zero schooling in this field and pretty hands off training in my new role, it's been fun...
Replies
4
Views
649
Hello Friends, I am trying to index M Bits, however GX Works2 is not allowing it with following message. https://ibb.co/zPcqj6M...
Replies
3
Views
1,299
Hi All, which the best way to do the indirect addressing in an optimize DB? Ccurrently this is my partial code inside an FB...
Replies
7
Views
2,252
Hey everyone, Just used the PLC5/Logix migration utility to convert a program, and while addressing the PCEs, I noticed a lot of errors for "XIC...
Replies
12
Views
1,903
Back
Top Bottom