LG GLOFA-GM Series User Manual page 79

Programmable logic controller cnet i/f module
Hide thumbs Also See for GLOFA-GM Series:
Table of Contents

Advertisement

Chapter 5 Frame Editor
[Figure 5.5] Example of BCC basic setting
Data Type : Set selecting type of BCC calculation result to ASCII or HEX in frame.
ASCII : Insert BCC calculation result as converted into ASCII data in BCC area with 2 byte of BCC
value available to be transmitted and received.
HEX. : Insert BCC calculation result as converted into HEX. data in BCC area with 1 byte of BCC value
available to be transmitted and received.
Check Rule : As of menu to set BCC calculation type, it can specify calculation types of Default, Sum,
Multiplication or Exclusive OR, and range. Regardless of calculation types, calculation is performed based on
ASCII code values if the frame is of ASCII, and based on frame HEX values if the frame is of HEX.
Example of BCC calculation according to BCC calculation type set is described below with ASCII
communication frame.
Frame type
Frame contents
ASCII code
BCC calculation range
Header
STX
ENQ
0
0
H02
H05
H30
H30
H[0]
H[1]
S[0]
S[1]
5-14
Frame body
R
S
B
2
H52
H53
H42
H32
S[2]
S[3]
S[4]
S[5]
Tail
0
0
EOT
BCC
H30
H30
H04
As
set
S[6]
S[7]
T[0]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents