VEDA HCT User Manual down again, and 9 again, 0 again, and 1 again, so the attribute of “Add” is similar to the “Looping” attribute. But, the “Add” or “Subtract” attribute of the “Set up Figures by Bit” function is only valid for one digit, and other digits are not changed. For example, if “Digit bit” is 3, “Mode” is “Add”, and the current register value is 18668, the value will change into 18768 when the component is pressed down, 18868 when it is pressed down again, 18968 again, 18068 again, 18168 again. The maximum value of a single word is 65535. If the “Digit bit” is 5, the ten thousands digit will change in 0~5.
Logic Operation This function has four modes, “And”, “Or”, “Exclusive-or” and “Not”. The default mode is “Add”. In the figure above, when the component is operated, the value in register LW0 will has a logic operation“And” with 0ЧFFFF. The logic result will be written to register LW0. The operations of otherthree modes are similar to “And” mode but the logic operation. The attribute “Operation Value” can be “Constant” or “Variables”. The default is “Constant” and the data format is hexadecimal. It can be a variable, but the data type must comply with the register data type.
The attribute “Data Type” for logic operation can be “16-bit Unsigned”, “32-bit Unsigned”, “16-bit BCD” and “32-bit BCD”. Special notice: In all these functions for “Word Set”, the “Action” is “Press” in default. That means the operation will be executed correspondingly when the component is pressed down. The “Action” can also be “Release” but not for the function “Increase” and “Decrease”. That means the operation will be executed correspondingly when the component is released. 105