Mitsubishi Electric MELSEC FX3U Programming Manual page 626

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When any digits other than 4 digits are specified as
code: K6706)
• When n is outside the allowable range (1 to 256) (error code: K6706)
• When a device specified by
Program example
In the program example shown below, the CRC value of the ASCII code "0123456" stored in D100 to D106 is
generated and stored to D0 when M0 turns ON.
1. In the case of 16-bit mode
M8000
M0
FNC188
CRC
Device storing data for which
CRC value is generated
Device storing generated CRC
value
2. In the case of 8-bit mode
M8000
M0
FNC188
CRC
Device storing data for which the
CRC value is generated
Device storing the generated CRC
value
624
+n-1 or
S
D
M8161
D100
D0
K7
D100
D101
D102
D103
D0
M8161
D100
D0
K7
D100
D101
D102
D103
D104
D105
D106
D0
D1
24.4 FNC188 – CRC / Cyclic Redundancy Check
or
in digit specification of bit device (error
S
D
+1 is outside the allowable range (error code: K6706)
16-bit conversion mode
Contents of data
Low-order byte
3130H
High-order byte
Low-order byte
3332H
High-order byte
Low-order byte
3534H
High-order byte
Low-order byte
3736H
Low-order byte
2ACFH
High-order byte
8-bit conversion mode
Contents of target data
Low-order byte
Low-order byte
Low-order byte
Low-order byte
Low-order byte
Low-order byte
Low-order byte
Low-order byte
Low-order byte
24 Others – FNC181 to FNC189
Target data
30H
31H
32H
33H
34H
35H
36H
CFH
2AH
30H
31H
32H
33H
34H
35H
36H
CFH
2AH

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents