VM600 networking manual MAVM600-NET/E 9 - 11
Edition 9 - February 2018
MPC4 card
SETTING UP A MODBUS CONNECTION (CPUM SW VERSION 071 OR LATER)
9.4.1.3.1 Bit variable names
Bit variable names must consist of the letters ‘a-Z’, the digits ‘0-9’ and the underscore
character ‘_’. No other special characters are allowed and bit variable names are not case
sensitive. The rules for naming bit variables are:
Every bit variable name must have a ‘$’ prefix
The variable name cannot begin with a digit
The maximum length is 40 characters
Examples:
Valid bit variable names:
$abcd102
$Vibration_channel_2
$Easy
$OK_SOK_VALUE234
Invalid bit variable names:
$Channel1?!!!
$Channel 0
$3Channel
9.4.1.3.2 Bit variable operations
A number of operations can be performed on bit variables.
Assigning bit values. For example:
$Variable = SlotNr:CardType:ValueName
AND, OR, NOT and XOR bit operations. For example:
$a=AND($b,$c,$d)
$o=OR($o1,$o2,$o3,$o4,$o5,$o6,$o7,$o8,$o9,$o10)
$x=NOT($z)
The rules for bit operations on user defined variables are:
• One line can have only one operator
• For AND, OR and XOR operations, from 2 to 16 arguments are allowed
• For the NOT operation, only one argument is allowed
• A comma must be used as a separator between the variables
• A variable or a list of them has to be in parentheses
• The equations will be evaluated from top to down
• Recursive definitions (for example, $x=NOT($x)) are not supported.