EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #448 background imageLoading...
Page #448 background image
7-74
ENCO(P)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The value of n is not in the 0 to 8 range. (Error code: 4100)
• The range 2
n
bits from exceeds the range of the relevant device.
(Error code: 4101)
• All data 2
n
bits from is "0". (Error code: 4100)
Program Example
(1) The following program encodes the 3 bits from M10 when X20 is ON, and stores the results
at D8.
[Ladder Mode] [List Mode]
[Operation]
S
S
Step
Instruction
Device
0 0 0 0 0 000 0
11
Storage device D8
0
The location of the ON bit, counted from M10, is stored in BIN.
Encoding result
0000
0 0 0 0 0 001 0 00
M10M17
0
If 3 bits are designated as significant bits, 8 points are occupied.

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals