For mask versions supporting PID_HARDWARE_TYPE (x7B0h, 0705h and 0025h), ETS is prepared to check the value of this property as reported by the device against a value provided by the application program, and produce an error if they do not match.
Note: In ETS3, this does not work for mask version 0025h, see below for a workaround.
See also Pre-Download Checks
To specify the required PID_HARDWARE_TYPE
To enable this check, the download image must include a segment on this property.
The easiest way to do this is:
·Create a ParameterTypeRestriction, with
oBase = BinaryValue
oSizeInBits = 48d or 30h
·Add an Enumeration Value (Value and Text do not matter) and set BinaryValue = required value of PID_HARDWARE_TYPE
·Create a Property Parameter, with
oObject Index = 0 (Device Object)
oProperty ID = 78d or 4Eh (PID_HARDWARE_TYPE)
oParameter Type = the parameter type created above
Workaround for mask version 0025h and ETS3
Even if it does not work in ETS3, the above procedure should still be applied to 0025h application programs, because ETS 4 will correctly recognize it. In addition, to prevent download into a wrong device, you should add a suitable CompareProp load control to the load procedure.