8 APPLICATION INSTRUCTION
8.21 Check Code
645
8
Operation error
• 8-bit conversion mode (while SM8161 is ON)
With regard to (n) data points starting from (s), the addition data and horizontal parity data of only low-order 8 bits are stored to (d) and (d)+1 respectively.
SM8161 is shared with the RS2, ASCI(P), HEX(P), and CRC(P) instructions. SM8161 must always be on in the 8-bit mode.
SM8161 is cleared when the CPU module mode is changed from RUN to STOP.
In the following program, conversion is executed as follows:
Error code
(SD0/SD8067)
Description
2820H
The device range specified by (s) or (d) exceeds the corresponding device range.
3405H
The value specified by (n) is outside the following range.
1 to 32767
(s)
D100
K100 = 0 1 1 0 0 1 0 0
K111 = 0 1 1 0 1 1 1
D105
D106
D107
D109
D108
D101
K100 = 0 1 1 0 0 1 0 0
K 98 = 0 1 1 0 0 0 1 0
D102
D103
D104
K123 = 0 1 1 1 1 0 1
K 66 = 0 1 0 0 0 0 1 0
K100 = 0 1 1 0 0 1 0 0
K 95 = 0 1 0 1 1 1 1
K210 = 1 1 0 1 0 0 1 0
K 88 = 0 1 0 1 1 0 0 0
K1091
1 0 0 0 0 1 0
CCD D100 D0 K10
SM400
SM8161
X10
0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1
D0
0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1
D1
Example of data contents
(1)
(1)
(1)
Total
Horizontal parity
(1)
8-bit conversion mode
When the number of "1" is odd, the horizontal parity is "1".
When the number of "1" is even, the horizontal parity is "0".
1091 in BCD.
Horizontal parity
Ignored
Low-order 8 bits
16 bits
Source data
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......