■ Overview of the YSM Check Function
By placing a file with the same name as the object file and the extension ".YSM" (YSM file) in the YIM folder, this function automatically performs a data check when a device function (EPR Command) is executed. If the verification result is a mismatch, it is detected as an error (YSM CHECK ERROR) to prevent incorrect data from being programmed.
By placing a file with the same name as the object file and the extension ".YSM" (YSM file) in the YIM folder, this function automatically performs a data check when a device function (EPR Command) is executed. If the verification result is a mismatch, it is detected as an error (YSM CHECK ERROR) to prevent incorrect data from being programmed.
■ Check Contents
1. Checking if the sum value during programming is correct
It verifies the sum value returned when the EPR command is completed (the sum value during programming and verification) against the sum value (theoretical value) described in the YSM file.
1. Checking if the sum value during programming is correct
It verifies the sum value returned when the EPR command is completed (the sum value during programming and verification) against the sum value (theoretical value) described in the YSM file.
- Why is the sum value check necessary? In NETIMPRESS programming (EPR command execution), the contents expanded in the buffer memory are programmed as they are, and during verification, they are also compared and verified against the contents of the buffer memory. Therefore, if the data in the buffer memory is somehow incorrect, even if the incorrect data is programmed, the verification itself will be judged as a "match," which may lead to the mass production of defective products. To confirm that the specified correct data has been programmed, a sum value check at the completion of programming is required.
- The sum value check can be performed by either checking the return value upon execution of the EPR command on your host system (PC application) or by using this YSM check function.
2. Checking if the correct program (data) is loaded
Before programming starts, it checks whether the data at a specific address in the buffer memory matches the data described in the YSM file. If they do not match, programming is not performed and an error is returned.
Before programming starts, it checks whether the data at a specific address in the buffer memory matches the data described in the YSM file. If they do not match, programming is not performed and an error is returned.
- Application Example:
By embedding the software version number at a specific address, you can confirm in advance whether the object file of the correct version is loaded before starting programming.
■ How to Create the File
The YSM file is created using the KEY File Generator (AZ481).
The YSM file is created using the KEY File Generator (AZ481).
- Ensure that the name of the YSM file to be created is exactly the same as the object file name.
- Creation Procedure Be sure to select [Address Sort Off] from [Option] in the AZ481 menu before entering data.
- Format
- Line 1: Sum value setting
- Address:
00000000(Fixed) - Size: Enter
1for 8-bit SUM, or2for 16-bit SUM - Data: Sum value of the object data
- Address:
- Line 2: Sum value check flag
- Address:
00000000(Fixed) - Size:
1(Fixed) - Data:
00to disable the check,01to enable the check
- Address:
- Line 3: Check setting for arbitrary data (specific address)
- Address: Arbitrary address (Address to perform the data check)
- Data: Arbitrary data (Data to perform the data check)
- Line 4: Arbitrary data check flag
- Address:
00000000(Fixed) - Data:
00to disable the check,01to enable the check
- Address:
- From the 3rd line onward, register the "Data to check" and "Check flag" as a pair.
- Arbitrary data checks can be configured for up to 10 items.
- Line 1: Sum value setting