Appendices program for the melsec-a series, Appendices – KEYENCE N-400 User Manual

Page 135

Advertising
background image

127

Appendices

Appendices

Program for the MELSEC-A Series

Specify the head address of the data
memory area for each ID number.

Specify the data memory flag for each
ID number as “2”. (To use the flag,
select “Sequential processing”.)

Enter “X0” for the reading trigger input
of ID No. 1.

Enter “X1” for the reading trigger input
of ID No. 2.

Enter “X2” for the reading trigger input
of ID No. 3.

When D100 becomes “3”, the specified
processing is performed.
After processing is completed, enter “2”
in D100.

When D200 becomes “3”, the specified
processing is performed.
After processing is completed, enter “2”
in D200.

When D300 becomes “3”, the specified
processing is performed.
After processing is completed, enter “2”
in D300.

M0V

M9038

K100

D0

M0V

K200

D1

M0V

K300

D2

M0V

K2

D100

M0V

K2

D200

M0V

K2

D300

M0V

K1

D31

M0V

K0

D31

M0V

K1

D32

M0V

K0

D32

M0V

K1

D33

M0V

K0

D33

LD=

D100

K3

M0V

K2

D100

LD=

D200

K3

M0V

K2

D200

LD=

D300

K3

M0V

K2

D300

END

X0

X0

X1

X1

X2

X2

[Data stored in D103
and subsequent areas is
processed.]

[Data stored in D203
and subsequent areas is
processed.]

[Data stored in D303
and subsequent areas is
processed.]

Advertising