JCM Part No . 960 - 000053R _ Rev . 6 © 2007, JCM - American Corporation 6 - 2 3 Programming and Testing AD - 02™ Retrievable Bill Validator Section 6 D OWNLOAD D ATA (91H) C OMMAND F ORMAT Table 6 - 20 lists the 91 Hex Command Format data codes .   Bit 1 Command Code: 1 Byte Specified depending on the processing request .   Bits 2 - 6 Time Data: 5 Bytes Year/Month/Day/Hour/Minute data   Bits 7 - 10 Address Fields 1 to 4: 4 Bytes A data start address (field address) in four (4) bytes is set into Address Fields 1 to 4 in the most to least significant byte order .   Bits 11 & 12 Data Length 1 & 2: 2 Bytes A data length in two (2) bytes is set into Data Length Fields 1 and 2 in the most to least significant byte order .   Bit 13 Data: 1024 Bytes Maximum The data to be written is set . The data must be within 1024 bytes in length . When this command is issued for the first time, only the file header (e . g . , 0h to FFh) must be sent as data .   Process Description: If the machine is waiting for a data download, this command writes data starting from a specified address into memory . R ESET (91H) R ESPONSE F ORMAT Table 6 - 21 lists the 91 Hex Reset Response Format data codes .   Response Text Data: None. D OWNLOAD E ND (92H) C OMMAND F ORMAT Table 6 - 22 lists the 92 Hex End Command Format data codes .   Command Text Data: None.   Process Description: If the machine is waiting for a data download, this command checks the data being written to determine if it is correct . D OWNLOAD E ND (92H) R ESPONSE F ORMAT Table 6 - 23 lists the 92 Hex End Response Format data codes .   Response Text Data: None.   Process Description: If the download terminates normally, the machine sends this response and executes the power - up routine process to enter into a norman Power - ON state . Table 6 - 20 Data 91 Hex Cmd Format Bit Command Code 1 Command Code 2 Time Data Year 3 Time Data Month 4 Time Data Day 5 Time Data Hour 6 Time Data Minute 7 Address 1 8 Address 2 9 Address 3 10 Address 4 11 Data Length 1 12 Data Length 2 13 Data (Max 1024 Bytes) NOTE: The data bytes must be set into an even number of data fields in an order from the least significant byte upward . Table 6 - 21 Reset 91 Hex Response Format Bit Command Code 1 Response Code 2 Response Parameter 3 Machine Status 1 4 Machine Status 2 5 Machine Status 3 6 Bill Storage Condition 1 7 Bill Storage Condition 2 8 Error Code Table 6 - 22 End 92 Hex Command Format Bit Command Code 1 Command Code 2 Time Data Year 3 Time Data Month 4 Time Data Day 5 Time Data Hour 6 Time Data Minute Table 6 - 23 End 92 Hex Response Format Bit Command Code 1 Response Code 2 Response Parameter 3 Machine Status 1 4 Machine Status 2 5 Machine Status 3 6 Bill Storage Condition 1 7 Bill Storage Condition 2 8 Error Code