Mitsubishi Electric MELDAS C6 Programming Manual page 292

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

Program example
(1) Program to decode the three bits 0 to 2 of R20, and turn the bits corresponding in D100 ON.
X0
10
B15B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
0 0 0 0 0 1 0 0 0 0 0 0
R20
B15B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
D100
Does not change
(Note 1)
The D100 bit 0 turns ON when the R20 B0 to B2 is 0.
(Note 2)
The D100 data remain the same even if X0 turns OFF.
(2) Program to decode the eight bits 0 to 7 of R20, and turn the bits corresponding in D100 to D115
8
(2
= 256 bits) ON.
X0
10
B15B14B13B12B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
0 0
R20
B255
D100
0
D115
D115
8. Function Commands
DECO, DECOP
DECO
D100
R20
Interpreted as 0
0
1
0 0
Only bit 6 of bits 0 to 7 is turned ON.
DECO
R20
D100
0 0
0 0
1 1 0 0
interpreted as 0
B48 B47
0
0
0
0 0
0
0
0
D103
Does not change
- 283 -
Get other manuals https://www.bkmanuals.com
Coding
No. of
Com-
K3
steps
mand
10
LD
11
DECO
16
1 1 1
0
When bit 0 to 2 data is binary and 6.
0
0 0
0
Coding
No. of
Com-
K8
steps
mand
10
LD
11
DECO
16
1
0
0
0 0
1
When bit 0 to 7 data is binary and 33.
B34B33B32B31
B17B16B15
0 0
1
0 0
0
0
0
D102
D101
Only bit 33 of bits 0 to 255 is turned ON.
Device
X0
R20
D100
K3
Device
X0
R20
D100
K8
B2 B1 B0
0 0
0
0
0
0 0
0
D100

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents