Dialog Box Options
|
Description
|
---|---|
Define the Integer Variable Size
|
Number of bits to edit.
|
Integer Variable
|
List of the value of all bits to edit.
|
Boolean Value
|
Three mark values are available:
|
OK
|
This button allows you to create the calculated variable described above and closes the dialog box.
|
Cancel
|
This button closes the dialog box.
|
Constraints
|
The selected variables must be integer variables.
|
Results
|
This function allows you to extract bits from one integer variable. So, boolean variables are created using the Extraction of boolean variable(s) from an integer variable dialog box.
|
Dialog Box Options
|
Description
|
---|---|
Integer variable
|
Contains the selected integer variable from which you want to extract the boolean variables.
|
Select the bits you want to record
|
If you chose to follow some bits of the variable only, you must click the buttons in this zone to determine precisely which bits to follow.
|
OK
|
This button allows you to create the calculated variables described above and closes the dialog box.
|
Cancel
|
This button closes the dialog box.
|
Help
|
Open a window featuring an online help related to the dialog box.
|
Constraints
|
The selected variables must be integer variables.
|
Results
|
For each selected variable, a new calculated variable is created which value is equal to BCD variable value. The template of the equation is:
((VARIABLE) LOGICAL AND (CONSTANT = 0x0F)) PLUS
((((VARIABLE) DIVIDE (CONSTANT = 0x0010)) LOGICAL AND (CONSTANT = 0x0F)) MULTIPLY (10)) PLUS
((((VARIABLE) DIVIDE (CONSTANT = 0x0100)) LOGICAL AND (CONSTANT = 0x0F)) MULTIPLY (100)) PLUS
((((VARIABLE) DIVIDE (CONSTANT = 0x1000)) LOGICAL AND (CONSTANT = 0x0F)) MULTIPLY (100)) PLUS
where VARIABLE is supposed to be a BCD type variable.
|