Fcs - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

FCS

Instruction
FRAME CHECKSUM
Symbol
Applicable Program Areas
Area
Step program areas
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
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
OK
OK
OK
R1, D
Flags
Name
Error Flag
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
FCS
@FCS
Description
0
&1 to &65535 (decimal) or
#0001 to #FFFF (hex)
0
0000
0
AR
T
C
DM
OK
OK
OK
OK
Label
P_ER
• ON if the content of C is not within the specified range of 0001 through FFFF.
• OFF in all other cases.
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 addresses
Constants
@DM
*DM
OK
OK
OK
---
Operation
2 Instructions
Function
Interrupt tasks
OK
Size
2
Variable
Variable
0
Calculation range
to
0
0
15
D
CF
Pulse bits
TR bits
---
---
---
2-255
2
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents