Search found 3 matches

by DeFacto
Tue Nov 26, 2019 3:31 am
Forum: Tags
Topic: Tag write expression
Replies: 1
Views: 7623

Tag write expression

Hello,

I do try to shift bits left in the tag write expression on iX T7E, but when i input the value into the analog numeric field, the value that PLC gets is always 0. My code looks like that:

Code: Select all

((value - (value%10))<<4)
I have no idea what is wrong.
by DeFacto
Wed Sep 28, 2016 12:54 pm
Forum: Scripting
Topic: Toggle specific bit in 32 bits variable
Replies: 3
Views: 12334

Re: Toggle specific bit in 32 bits variable

Thank you for the replies.
by DeFacto
Tue Aug 23, 2016 12:26 am
Forum: Scripting
Topic: Toggle specific bit in 32 bits variable
Replies: 3
Views: 12334

Toggle specific bit in 32 bits variable

Hello,

To read a specific bit in variable - expression is used, but is there a way to toggle specific bit in variable?