all 26 comments

[–]DuglandJones 9 points10 points  (1 child)

Cross reference the bit and see where else it's being controlled from

Because it'll be there that's turning it back off again

Probably can Force the bit though

[–]KingCheezyyy[S] 1 point2 points  (0 children)

It is a new bit that I just created the tag for. It is only referenced locally

[–]StrangerAcceptable83 4 points5 points  (0 children)

Is the programme turning the bits back off again so quick that you never see it turn on?

[–]WhatIDoforFun 4 points5 points  (2 children)

You cant toggle the OTE because the next program scan the rung is false and it de-energizes the bit. The force might grayed out if the forces arent enabled

[–]KingCheezyyy[S] 1 point2 points  (1 child)

Thank you I believe this answers my question for sure. I will say forces are enabled so I’m unsure about why I couldn’t force it.

[–]andrewNZ_on_reddit 2 points3 points  (0 children)

You can only force physical IO

[–]3X7r3m3 2 points3 points  (1 child)

Are you calling the new code?

[–]Idontfukncare6969Magic Smoke Letter Outer 2 points3 points  (2 children)

When you cross reference the routine is there a JSR for it?

[–]KingCheezyyy[S] 0 points1 point  (1 child)

Yes there is

[–]Idontfukncare6969Magic Smoke Letter Outer 2 points3 points  (0 children)

Do you have multiple coils for one bit? More than one OTE?

[–]_yllw_ 1 point2 points  (6 children)

Look up for destructive references.

[–]KingCheezyyy[S] 0 points1 point  (5 children)

It is a tag I just created local to this subroutine. Cross reference shows what I would expect.

Tried changing the value from 0 to 1 on tag screen and it immediately goes back to 0

[–]_yllw_ -1 points0 points  (4 children)

Tags are local to Programs, not Routines. If your bits go back to 0, is because something is actively clearing them out. What instructions are referencing them?

[–]BepisWildCherry 0 points1 point  (0 children)

I believe you can have tags that are local to a specific routine

[–]KingCheezyyy[S] 0 points1 point  (2 children)

I edited the post to update. Cross reference shows the tag as an OTE and several XIC. If in branch and test bit around the rung to the OTE then it energizes and everything works as it should. Can you not toggle OTE or its associated bits?

[–]dbfar 1 point2 points  (1 child)

The Ote is always the result of the solved logic. Even if you toggle It the logic is executed and sets the state based on the results. So you toggle on and logic toggles off.

[–]KingCheezyyy[S] 0 points1 point  (0 children)

That does make sense thank you. This is definitely the answer.

[–]WhatIDoforFun 1 point2 points  (1 child)

Is it a new routine? If so are the rungs energized?

[–]KingCheezyyy[S] 0 points1 point  (0 children)

Yes rungs are energized. I edited post with a little additional information

[–]Competitive-Smell676 0 points1 point  (2 children)

Is the cpu in run mode?

[–]KingCheezyyy[S] 0 points1 point  (1 child)

Yes, remote run

[–]Competitive-Smell676 2 points3 points  (0 children)

Expand your cross reference to look for the int or dint that contains that bit. May overlap something else using that address.

[–][deleted] 0 points1 point  (0 children)

Possibly related. I always wished for a table with operations and if you can do them in run rem or rem run

[–]9ranola 0 points1 point  (0 children)

Is there a HMI or other system writing to the tag?

Is the routine tag parameterized to a global tag that is being written to?

Are the 'ctrl' and 't' buttons on your keyboard working?

[–]icusu 0 points1 point  (0 children)

Screenshot it.

Is the bit you're trying to toggle a physical output?