Function Description

The SIG_CHECK function prevents an application from running when the SD-card does not have the expected signature.

The signature consists of 8 words (16 bytes). Use the SIG_WRITE function to write the signature to a SD-card.

This EF checks a signature given as parameter against the one that is stored in the memory card BMX RM ••• inserted in the CPU.

If the signature in the memory card is different, the CPU goes to the Halt state with error code 0002 in %SW125.

NOTE: %S62 is set to 1 when a card contains a signature, no matter the value of the 8 words written.
NOTE: This EF can only be used on a BMX P34 ••••, Version 2.2 or higher.

FBD Representation

The representation in FBD of the SIG_CHECK function (with example data) is as follows:

Ladder Representation

The representation in LD of the SIG_CHECK function (with example data) is as follows:

IL Representation

The representation in IL of the SIG_CHECK function (with example data) is as follows:

SIG_CHECK (

SIG0 := 16#45de,

SIG1 := 16#78aa,

SIG2 := 16#2cde,

SIG3 := 16#ac3f,

SIG4 := 16#5c81,

SIG5 := 16#2702,

SIG6 := 16#b312,

SIG7 := 16#2ed4,

)

ST %M0

ST Representation

The representation in ST of the SIG_CHECK function is as follows: SIG_CHECK(SIG0, SIG1, SIG2, SIG3, SIG4, SIG5, SIG6, SIG7);

Parameter Description

The following table describes the SIG_CHECK Input parameters:

Parameter

Type

Comment

SIG0..SIG7

WORD

Words containing the signature to check

The following table describes the SIG_CHECK Output parameters:

Parameter

Type

Comment

OUTP

BOOL

TRUE if the SD card signature is equal to the input parameters of the function and FALSE if not.

ENO

BOOL

Always TRUE