Akilestar

MrPLC Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Akilestar

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. 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.