Fcs - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

FCS

Instruction
FRAME CHECKSUM
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
First control word
R1
First word in range
D
First destination word
C: First control word
15
C
W: Number of words/bytes in range
15
14
13 12 11
C+1
00
0000 0000 0000
Starting byte (Valid only when bit 13 is 1.)
0: Leftmost byte
1: Rightmost byte
Calculation units
0: Words
1: Bytes
0
Operand Specifications
Word addresses
Area
CIO
WR
HR
C
R1
OK
OK
OK
D
606
Mnemonic
Variations
FCS
@FCS
Block program areas
Step program areas
OK
OK
Description
0
&1 to &65535 (decimal) or
#0001 to #FFFF (hex)
0
0
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Calculates the FCS value for the specified range
180
and outputs the result in ASCII.
FCS
FCS(180)
C: First control word
C
R1: First word in range
R1
D
D: First destination word
Subroutines
OK
Data type
UDINT
UINT
UINT
R1: First word in range
15
R1
to
R1+(W–1)
D: First destination word
When bytes are specified as the operation units:
15
D
When words are specified as the operation units:
15
D+1
The leftmost four digits are stored in D+1 and the rightmost
four digits are stored in D.
Note C and C+1, all of the words in the calculation range must
be in the same data area.
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
---
---
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
2
Variable
Variable
0
Calculation range
to
0
0
15
D
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
0
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents