LG GLOFA-GM Series User Manual page 81

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

Advertisement

Chapter 5 Frame Editor
Use the result from Exclusive-OR calculation of all data in setting area for BCC.
Range setting is same as in SUM 1. (Ex. : In case the range is set to H[0] ~ T[0] with BCC type of XOR 1)
Calculation Ex.
In exercising frame, perform XOR calculation of ASCII codes in calculation range of H[0] ~ T[0].
(02 ^ 05 ^ 30 ^ 30 ^ 52 ^ 53 ^ 42 ^ 32 ^ 30 ^ 30 ^ 04) = 72
BCC value = (HEX.:72 / ASCII: 3732)
Function for data mask of BCC calculation results in XOR 1 is added. Masks are classified into &(AND), |(OR),
and ^(Ex-OR). (Ex : In case the mask is set to [& F0] with the setting range of H[0] ~ T[0] by XOR 2 of BCC
type)
Calculation Ex.
In exercising frame, perform Ex-OR calculation of ASCII codes in calculation range of H[0] ~ T[0].
(02 ^ 05 ^ 30 ^ 30 ^ 52 ^ 53 ^ 42 ^ 32 ^ 30 ^ 30 ^ 04) = 72
Use the result from AND calculation between the result '72' and 'F0' for BCC.
BCC = (HEX.:70 / ASCII:3730)
Use the result from Multiplication calculation of all data in setting area for BCC.
Range setting is same as in SUM 1. (Ex. : In case the range is set to H[0] ~ T[0] with BCC type of MUL 1)
Calculation Ex.
In exercising frame, perform Multiplication calculation of ASCII codes in calculation range of H[0] ~ T[0].
(02 X 05 X 30 X 30 X 52 X 53 X 42 X 32 X 30 X 30 X 04) = 00
BCC value = (HEX.:00 / ASCII: 3030)
XOR 1
XOR 2
MUL 1
5-16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents