A4: Digital and analog NCK I/Os for SINUMERIK 840D sl
1.2 Access via PLC
Comparator settings
The settings for the individual bits (0 to 7) of comparator byte 1 or 2 are parameterized via
the machine data:
MD10540 $MN_COMPAR_TYPE_1 (parameter assignment for comparator byte 1)
or
MD10541 $MN_COMPAR_TYPE_2 (parameter assignment for comparator byte 2)
The following settings are possible:
● Comparison type mask (bits 0 ... 7)
● Output of the comparator input byte via digital NCK outputs (bits 16 ... 23)
● Inversion mask for output of the comparator input byte (bits 24 ... 31)
Threshold values
The threshold values used for comparisons on comparator byte 1 or 2 must be stored as
setting data. A separate threshold value must be entered for each comparator input bit <b>
(with <b> = 0 ... 7):
SD41600 $SN_COMPAR_THRESHOLD_1[<b>]
or
SD41601 $SN_COMPAR_THRESHOLD_2[<b>]
46
The type of comparison condition is defined for each comparator input bit:
Bit = 1:
Associated comparator input bit is set to "1" if:
Analog value ≥ threshold value
Bit = 0:
Associated comparator input bit is set to "0" if:
Analog value < threshold value
The comparator bits can also be output directly via the digital NCK outputs byte-by-byte.
This requires specification in this byte (bits 16 ... 23) of the digital NCK output byte to be
used.
Byte = 0:
No output via digital NCK outputs
Byte = 1:
Output via digital on-board-NCK outputs 9 ... 16
Byte = 2:
Output via external digital NCK outputs 17 ... 24
Byte = 3:
Output via external digital NCK outputs 25 ... 32
Byte = 4:
Output via external digital NCK outputs 33 ... 40
For every comparator signal it is also possible to define whether the signal state to be
output at the digital NCK output is to be inverted or not.
Bit = 1:
Associated comparator input bit is not inverted.
Bit = 0:
Associated comparator input bit is inverted.
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
Extended Functions