omron — ASCII Method

4-4 Communication Function „ BCC (Block Check Code) Calculation Method (Example) To set "5 Hz" using command 01 (frequency reference setting) (When the target station No. is "01") ASCII code (0x 02) 01 (0x 30 31) 01 (0x 30 31) 000500 (0x 30 30 30 35 30 30) 4 01 (0x 30 35) (0x 00) Functions To determine BCC, the Inverter performs ASCII conversion from the station No. to data, and calcu- lates a result of the exclusive OR (Xor) per byte. For the above transmission frame, BCC is calculated as follows: 30 31 30 31 30 30 30 35 30 30 Xor 01 Xor 31 Xor 00 Xor 30 Xor 00 Xor 30 Xor 05 Xor 35 Xor 05 ......This value is BCC.

(Appendix) ASCII Code Conversion Table 4-153 Transmission Frame Structure STX Station No. Command Data BCC CR Text data ASCII code STX 2 ACK 6 CR 0D NAK 15 0 30 1 31 2 32 3 33 4 34 5 35 6 36 7 37 8 38 9 39 Text data ASCII code A 41 B 42 C 43 D 44 E 45 F 46 H 48 P 50 b 62