Jump to content

endevor100

Members
  • Posts

    3
  • Joined

  • Last visited

endevor100's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. I only use set and reset coils for this MB. The direct coil was merely an experiment when my program wasn't working. The only reset coil for this MB in the entire program is after the MODBUS send in the main routine and that send isn't getting called so I feel like the MB is never going high. Am I missing something?
  2. I used a direct coil in one place and a set coil in another to see if it made any difference, generally I would use a set coil. I use this MB all over the program, but there is only one reset coil in the entire project so I don't believe that the MB is getting contradicting information in a single scan. I'm using a V130 if it matters and the subroutine in question is the Homing one. MB 10 activates a MODBUS read in the main routine which is the rung that has the only reset coil. When I run the program DW 0 (Total Sessions) doesn't increment and that's why I'm pretty sure that MB 10 is never going high. camera dolly.vlp
  3. First time poster so excuse me if I missed something basic. I have been looking through the forum and it sounded like I needed a state machine in one subroutine. The problem I'm having is that for some reason I can't set bits in my states. Here are some code snippets: As you can see whether I'm using a direct coil (state pointer = 10) or a set coil (state pointer = 30) MB 10 stays low. I have a counter before the only coil that resets MB 10 so I know that it's not switching too fast for me to see it. Is there a simple explanation as to what's going on? As a side note I hope my photos are visible, They should be plenty large enough, but in preview post I only see tiny thumbnails. If that's a problem tell me what I've done and I'll try to fix it.
×
×
  • Create New...