MVP 2023 Flex727 Posted June 25 MVP 2023 Report Share Posted June 25 Anyone know of a quick way to invert a vector of coils? Something like this, only for an entire vector: --|/|--( ) Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted June 25 MVP 2023 Report Share Posted June 25 Initial thought......Put the bits into a vector via a struct, and then use Toggle bit in Vector repeated in the scan, done as many times as needed to do what you want, then the changed vector sent back out? I've never used Toggle Bit in Vector, so don't know it's exact workings, and nothing direct in help (??!!), but it looks like it would do what's needed. This method looks involved, but is not actually that much ladder work. cheers, Aus 1 Link to comment Share on other sites More sharing options...
Gabriel Franco Posted June 26 Report Share Posted June 26 This should work if your intention is to do a NOT to each bit 1 1 1 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted June 26 Author MVP 2023 Report Share Posted June 26 I went with @Gabriel Franco's method since I could do it all in one ladder rung. It's working perfectly, thanks! 1 Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted June 26 MVP 2023 Report Share Posted June 26 Well done Gabriel. 👍 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now