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

Page 138

Advertising
background image

Appendices

130

Appendices

Program for the KV 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 “0000” for the reading trigger
input of ID No. 1.

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

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

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

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

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

2008

ENDH

END

#0100

DW

DM0000

#0200

DW

DM0001

#0300

DW

DM0002

#0002

DW

DM0100

0000

#0001

DW

DM0031

0000

#0000

DW

DM0031

0001

#0100

DW

DM0032

0001

#0000

DW

DM0032

0002

#0001

DW

DM0033

0002

#0000

DW

DM0033

2002

#0100

LDA

2010

#0002

DW

DM0100

2002

DM0200

LDA

2010

#0002

DW

DM0200

2002

DM0300

LDA

2010

#0002

DW

DM0300

#0003

CMP

#0002

DW

DM0300

#0002

DW

DM0200

#0003

CMP

#0003

CMP

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

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

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

Advertising