A method for operating safety control in an automation network having a master subscriber which carries out the safety control, at least one first slave subscriber which is assigned a first safety integrity level, and at least one second slave subscriber which is assigned a second safety integrity level, the first safety integrity level and the second safety integrity level differing,
- the master subscriber, the first slave subscriber and the second slave subscriber being connected to one another via a data transmission path and each having a safety layer and a data link layer, wherein the safety layer and the data link layer are encapsulated in the subscribers completely from one another,
- wherein in a transmission mode, the safety layer uses a safety code determination method to determine a safety code for a safety data block to be transmitted, and the data link layer forms a data packet containing the safety data block and the safety code for transmission on the data transmission path, and
- wherein in a reception mode, the data link layer extracts a safety data block and an associated safety code from a data packet received via the data transmission path and the safety layer verifies the safety code for the safety data block using the safety code determination method,
- a first safety code determination method being assigned to the first slave subscriber and a second safety code determination method being assigned to the second slave subscriber,
- the first safety code determination method and the second safety code determination method differing, and
- the master subscriber and the first slave subscriber using the first safety code determination method for interchanging a first safety data block, and the master subscriber and the second slave subscriber using the second safety code determination method for interchanging a second safety data block,
- wherein the first and second safety code determination methods carry out a cyclic redundancy check, a first safety code generator polynomial being assigned to the first safety code determination method and a second safety code generator polynomial being assigned to the second safety code determination method,
- wherein the master subscriber and the first slave subscriber use the first safety code generator polynomial for the cyclic redundancy check for interchanging the first safety data block, and the master subscriber and the second slave subscriber uses the second safety code generator polynomial for the cyclic redundancy check for interchanging the second safety data block, and
- wherein different residual error probabilities for the occurrence of an error being assigned to the first and second safety integrity levels, and the Hamming distance of the first safety code generator polynomial differing from the Hamming distance of the second safety code generator polynomial, wherein the first safety code generator polynomial is selected in such a manner that the Hamming distance of the first safety code generator polynomial complies with the residual error probability for the occurrence of an error according to the first safety integrity level and wherein the second safety code generator polynomial is selected in such a manner that the Hamming distance of the second safety code generator polynomial complies with the residual error probability for the occurrence of an error according to the second safety integrity level.