MVP 2023 Flex727 Posted Tuesday at 10:02 PM MVP 2023 Report Share Posted Tuesday at 10:02 PM 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 Tuesday at 11:06 PM MVP 2023 Report Share Posted Tuesday at 11:06 PM 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 Wednesday at 12:38 PM Report Share Posted Wednesday at 12:38 PM 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 Wednesday at 02:10 PM Author MVP 2023 Report Share Posted Wednesday at 02:10 PM 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 Wednesday at 11:36 PM MVP 2023 Report Share Posted Wednesday at 11:36 PM 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