Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Ability to set/toggle bits with event #1058

Closed
GrantC27 opened this issue Jan 19, 2024 · 4 comments
Closed

[FEATURE] Ability to set/toggle bits with event #1058

GrantC27 opened this issue Jan 19, 2024 · 4 comments
Labels

Comments

@GrantC27
Copy link

Describe the feature
Adding the ability to set or toggle a specific bit with an event such as mouse click

Describe the solution you'd like
Either adding bit mask to the set value option in events, or adding new options to the event to toggle and set specific bits

Additional context
When trying to set a specific bit in a word, I can use the switch object linked to a tag and a bitmask, with the value corresponding to that bit to turn that bit on and off. I would like a similar functionality on other objects. To achieve this, we could use the mouse click event

@unocelli unocelli added the feature New feature label Jan 25, 2024
@Github-User-002
Copy link

I use a Vacon to control a 22kW motor and the start / stop function I use, uses binary coded input, so when I want to start the motor reversed/forward with ramping and coasting I want to be able to send this binary coded. Now I need to use a script to do this...

Also the toggle function could be one field for toggle on and other for toggle off. trinary toggling is also useful for Start/Hold/Stop or the same 3 states as Stop light for cars, ordering could be 123 123 or 12321...
3 pole switch could also be useful

@unocelli
Copy link
Member

I'm working on this feature

@unocelli
Copy link
Member

Available in the master branch

@unocelli
Copy link
Member

I’m going to close this as resolved. let me know if you have any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants