Panasonic FP Series Programming Manual page 413

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
F70_BCC
Calculates the Block Check Code (BCC), which is used to detect errors in message transmission,
Description
of s3 bytes of ASCII data starting from the 16-bit area specified by s2 according to the calculation
method specified by s1. The Block Check Code (BCC) is stored in the lower byte of the 16-bit area
specified by d. (BCC is one byte. The higher byte of d does not change.)
16#
If CRC-16 is specified as the calculation method, ASCII code cannot be
specified for the conversion data.
Availability of F70_BCC (see page 1326)
PLC types
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Data types
Variable
Data type
INT
s1
ANY16
s2
INT
s3
ANY16
d
Operands
For
s1, s3
s2
d
412
Block check code calculation
BCC calculation method set with "s1"
0: Addition
1: Substraction
2: Exclusive OR operation
A: CRC-16
Starting byte position for calculation (No. of bytes from "s2")
0 to F
Starting byte position for storing results (No. of bytes from "d")
0 to F
Conversion data
0: Binary data (CRC: 2 bytes / Not CRC: 1 byte)
1: ASCII code (2 bytes)
Function
specifies BCC calculation method: 0 = addition, 1 =
subtraction, 2 = exclusive OR operation
starting 16-bit area to calculate BCC
specifies number of bytes for BCC calculation
16-bit area for storing BCC
Relay
WX
WY
WR
WL
WX
WY
WR
WL
-
WY
WR
WL
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
Constant
dec. or hex.
-
-

Advertisement

Table of Contents
loading

Table of Contents