31.12.2013 Views

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX C S RECORD FORMAT<br />

C.1 S0 Type (Header Record)<br />

This record is used for comments.<br />

■ S0 Type (Header Record)<br />

Figure C.1-1 S0 Type (Header Record)<br />

S 0 I1 I2 0 0 0 0 c1 c2 c3 c4 c* c* s1 s2<br />

(a) (b) (c) (d) (e) (f)<br />

2 bytes 2 bytes 4 bytes n bytes 2 bytes<br />

This record consists of the above five fields (a) to (e).<br />

The S0 type is called the header type and is placed at the start of a file ahead of each record of S1 to S9.<br />

Each field is set in ASCII code.<br />

(a):<br />

Type field. "S0" (0x5330) in ASCII code.<br />

(b):<br />

Indicates the number of bytes in (c), (d), and (e).<br />

Actual 1-byte data is represented as 2-byte ASCII code in this format and the number of characters in<br />

these fields divided by 2 is set.<br />

I1 indicates the high-order digits and I2 indicates the low-order digits. Values in the range of 0 to 255<br />

can be set.<br />

It is "<strong>00</strong>" to "FF" in ASCII notation and "0x3030" to "0x4646" in hexadecimal notation.<br />

(c):<br />

This field is not used and normally "<strong>00</strong><strong>00</strong>" in ASCII notation is set.<br />

(d):<br />

Messages such as version number management information are set.<br />

For the setting method, see the example below.<br />

(e):<br />

Checksum.<br />

Each 2-byte data of (b), (c), and (d) represented in ASCII notation is converted into 1-byte data in<br />

hexadecimal notation. Each byte without a sign is added regardless of overflow.<br />

One’s complement of the result is calculated and then set as 2-byte ASCII code.<br />

s1 indicates the high-order digits.<br />

One’s complement: value obtained by reversing each bit<br />

(f):<br />

Generally, control code (such as CR and LF) is added.<br />

Data in this field is skipped until the start character "S" of (a) appears.<br />

[Example]<br />

S<strong>00</strong>6<strong>00</strong><strong>00</strong>4844521B<br />

Indicates ASCII character string "HDR"<br />

355

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!