Mitsubishi Electric MELSEC-Q/L Programming Manual page 294

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Program example
• The following program converts, when X20 is turned ON, the BIN data stored at D100 to D102 to BCD and stores the
operation result into the area starting from D200.
[Ladder Mode]
[Operation]
D100 BIN 5432
0 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0
D101 BIN 4444
0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0
0 0 0 0 1 1 0 0 1 0 0 0 1 0 1 0
D102 BIN 3210
0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0
D200 BCD 5432
0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0
D201 BCD 4444
D202 BCD 3210
0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0
6 BASIC INSTRUCTIONS
292
6.3 Data Conversion Instructions
BCD
D0
3
conversion
[List Mode]
Instruction
Step
Device

Advertisement

Table of Contents
loading

Table of Contents