Search the Community
Showing results for tags 'index'.
Found 3 results
I was wondering if anybody out there has ever made a generic popup to deal with multiple devices, similar to what you can do with factory talk and wonderware. I want to be able to index addresses from the PLC to the PT memory but it doesn't look like you are able to do this. Is there anybody out there that has come across this same problem?
I am needing to write an integer to a word based on a contact. It's pretty straight forward but I need to do this for 300 contacts. If F0 turns on I want to write a 0 to W22, if F57 turns on I want to write 57 to W22, etc. I need to do this for F0 through F299 writing the index as integer to W22. I don't need to clear W22, it can have any number in it at any time. My OPC server will be looking at a different bit to determine when it needs to look at W22. I'm trying to find an easier way to do this then having 300 instructions doing a MOVP K* W22 when the contact turns on. If more than one F is on I'm okay with whatever the last F to turn on is stored in W22 (at least for now.) Any help is appreciated. Thanks.