Technical data
Technology functions
CPU 317T: Technology Functions
6-222 A5E00251798-03
Drive control words can be written with parameter number 4500 at
"MC_WriteParameter", or read with "MC_ReadSysParameter." Both control words
are available for reading at output parameter ValueDword1 (unmasked.)
The control word is written by means of the corresponding value and a mask. The
mask defines which bits of the control word can be accessed by the write
operation. This mask can be used to manipulate single or several bits. Unmasked
bits (value 0) retain their current state. Criterion for selecting the mask is, that the
bits reserved for the technology object remain unchanged.
The values of control words CW1 and CW2 are defined at input parameter
ValueDword1. Their corresponding mask values are set at input parameter
ValueDword2.
Example of ValueDword1
DW#16# 0001 0300
CW2 CW1
Example of ValueDword2
DW#16# 0FFF FB00
Mask
CW2
Mask
CW1
Set mask value FB00 for control word CW1 to overwrite all free bits of the control
word. meaning of the hexadecimal characters:
F = 1111 / bits 12 to 15 are written
B = 1011 / bits 8, 9 and 11 are written; bit 10 is protected
0 = 0000 / bits 4 to 7 are protected
0 = 0000 / bits 0 to 3 are protected
Set mask value 0FFF for control word CW1 to overwrite all free bits of the control
word. meaning of the hexadecimal characters:
0 = 0000 / bits 12 to 15 are protected
F = 1111 / bits 8 to 11 are written
F = 1111 / bits 4 to 7 are written
F = 1111 / bits 0 to 3 are written