Bitwise writing

With bitwise writing of drive values with the #DRIVE command some bits of a value transferred to the drive can be set or reset.

To achieve this the data type set up in parameter P-AXIS-00399 must be set to either BITARRAY_16 or BITARAY_32.

If the value of the #DRIVES‘VAL’parameter is bigger than zero the bits defined in parameter P-AXIS-00429 are set in the value transferred to the drive, if the VAL parameter is zero the bits defined in P-AXIS-00429 are reset.

Bitwise writing 1:

Bitwise writing of drive values is only possible for bits that are not already used from the CNC. If P-AXIS-00429 contains bits that are used by the CNC error message P-ERR-70404 is output.If the complete telegram element is used by the CNC, for example a command position, error message P-ERR-70405 is output.

Bitwise writing 2:

Bitwise writing of drive values is at present only supported for communication type CYCLIC (see P-AXIS-00397). For all other communication types error message P-ERR-70402 is output if P-AXIS-00399 is set to BITARRAY_16 or BITARAY_32.