Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
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.