
High
−
level Instructions
3
−
155
Application example 1
In this example, the block check code of the message being sent, ”%01#RCSX0000”, is calculated and is
added after the message.
Transmission is done using ASCII codes.
BCC is calculated as an exclusive logical OR.
The message should be stored in the memory area as shown below.
ASCII HEX code
Data register
ASCII character
DT6
DT5
0
0
DT4
0
0
DT3
X
S
3 0 3 0 3 0 3 0 5 8 5 3
DT2
C
R
DT1
#
1
DT0
0
%
4 3 5 2 2 3 3 1 3 0 2 5
Block Check Code (BCC)
12 bytes
The
F70 (BCC)
instruction is as shown below.
F70 BCC, K 2 , DT 0 , K 12 , DT 6
S1: Exclusive logical OR
S2: Start of target data
S3: Length of target data
D: Calculation results
When this is executed, BCC (H 1D) is stored in the last byte of DT6 of D.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-E
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...