Appendices program for the sysmac-c series – KEYENCE N-400 User Manual

Page 136

Advertising
background image

Appendices

128

Appendices

Program for the SYSMAC-C series

Specify the head address of the data
memory area for each ID number.
The N-400 processes data as binary
data. Specify each DM number in
binary format.

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.

BCD

Binary

100

64

200

C8

300

12C

M9038

0000

0000

0001

0002

0002

0002

25313

25506

MOV

#0064

DM0000

MOV

#0001

DM0032

MOV

#0008

DM0001

MOV

#0000

DM0032

MOV

#012C

DM0002

MOV

#0001

DM0033

MOV

#0002

DM0100

MOV

#0000

DM0033

MOV

#0002

DM0200

MOV

#0100

DM0003

MOV

#0002

DM0300

MOV

#0001

DM0031

MOV

#0002

DM0100

MOV

#0000

DM0031

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

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

Advertising