Parker Hannifin
Binary Parameter Mask Command
A binary parameter mask command consists of a four-byte header
followed by two bit masks to be combined with a system parameter.
There is no information returned from this command. The parameter
index in the header must be a long integer. The NAND mask is used
to clear bits and the OR mask is used to set bits. The data is modified
as follows:
data = ( data AND NOT nandmask ) OR ormask
Binary Mask Packet
Transmit Packet
Data Field Data Type Description
Byte 0 BYTE Header ID ( 0x00 )
Byte 1 BYTE Packet ID ( 0x95 )
Byte 2-3 WORD Parameter Index
Long 0 LONG NAND Mask
Long 1 LONG OR Mask
Receive Packet
None.
Usage Example
This example uses the Binary Parameter Mask Command to clear all
of the Opto-isolated Outputs and then set Output 32.
Fields: Header NAND Mask OR Mask
Output:
00 95 01 10 FF FF FF FF 01 00 00 00
Opto-isolated Output Parameter P4097 Modified Data:
P4097: 0x00000001
112 Programmer’s Guide