tommy23t
Member
Hi All,
Finally getting through the SLC brick project on the G304K- kudos to Red Lion for the fix, it does communicate with the brick!
My problem is that I cannot seem to find how to input a specific bit for a pushbutton. My timers work fine, I can change presets, but trying to use a screen pushbutton does not seem to work.
The problem is that the A/B uses bit level, the Red Lion word level. If I define the button as B11/17, which is B11/1.1, the Crimsom only gives me "word as word" in the B field- not able to get down to the single bit. I assume this would make the entire word true-if I choose B11:1.
I found at the end of the manual a reference to try:
CHANGING BIT VALUES
To change a bit within a tag, use the syntax Data.Bit=1 or Data.Bit=0 to set or clear the bit as required, where Data is the tag in question and Bit is the zero-based bit number. Note again that the value on the right-hand side of the = operator can be an expression if desired, such that an example such as Data.1=(Level>10) can be used to set or clear a bit depending on whether or not a tank level exceeds a preset value.
I tried entering my tag "man1.1=1" in the general data field, it did not like that. (man1 was defined in the tag as B11:0001)
Hopefully, I am overlooking the obvious, any help or suggestions are appreciated.
Thanks,
tommy23t
Finally getting through the SLC brick project on the G304K- kudos to Red Lion for the fix, it does communicate with the brick!
My problem is that I cannot seem to find how to input a specific bit for a pushbutton. My timers work fine, I can change presets, but trying to use a screen pushbutton does not seem to work.
The problem is that the A/B uses bit level, the Red Lion word level. If I define the button as B11/17, which is B11/1.1, the Crimsom only gives me "word as word" in the B field- not able to get down to the single bit. I assume this would make the entire word true-if I choose B11:1.
I found at the end of the manual a reference to try:
CHANGING BIT VALUES
To change a bit within a tag, use the syntax Data.Bit=1 or Data.Bit=0 to set or clear the bit as required, where Data is the tag in question and Bit is the zero-based bit number. Note again that the value on the right-hand side of the = operator can be an expression if desired, such that an example such as Data.1=(Level>10) can be used to set or clear a bit depending on whether or not a tank level exceeds a preset value.
I tried entering my tag "man1.1=1" in the general data field, it did not like that. (man1 was defined in the tag as B11:0001)
Hopefully, I am overlooking the obvious, any help or suggestions are appreciated.
Thanks,
tommy23t
Last edited: