EasyManua.ls Logo

Panasonic FP-E - Page 419

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
00
DT4
00
DT3
XS
303030305853
DT2
CR
DT1
#1
DT0
0%
435223313025
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: info@clrwtr.com