Keyence Visual KV Series Manual de usuario Pagina 378

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 392
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 377
8.2 Details
3-354
8
Chapter 8 Programming Examples
2008
STA
DM0000
LDA
#00000
0000
INC
DM0000
0005
DW
#00000
0001
DEC
DM0000
DM0000
Sets #00000 to DM0000 at startup.
Increments DM0000 by 1 at UP edge
of input relay 0000.
Decrements DM0000 by 1 at UP edge
of input relay 0001.
Clears DM0000 to #00000 when 0005
turns ON.
Line No. Instruction Operand Line No. Instruction Operand
0000 LD 2008 0005 @INC DM0000
0001 LDA #00000 0006 LD 0001
0002 CON 0007 @DEC DM0000
0003 STA DM0000 0008 LD 0005
0004 LD 0000 0009 DW #00000 DM0000
Ladder diagram
Coding
UP/DOWN count
Performs UP count when input relay 0000 turns ON.
Performs DOWN count when input relay 0001 turns ON.
Writes the count value into DM0000.
Reset input relay is 0005.
Ladder diagram
Coding
Refer to p. 3-172.
Line No. Instruction Operand Line No. Instruction Operand
0000 LD 2008 0007 @INC DM0000
0001 LDA #00000 0008 LD 0002
0002 CON 0009 @INC DM0000
0003 STA DM0000 0010 LD 0003
0004 LD 0000 0011 @INC DM0000
0005 @INC DM0000 0012 LD 0005
0006 LD 0001 0013 DW #00000 DM0000
2008
STA
DM0000
LDA
#00000
0000
INC
DM0000
0003
INC
DM0000
0005
DW
#00000
0001
INC
DM0000
0002
INC
DM0000
DM0000
Sets #00000 to DM0000 at startup.
Increments DM0000 by 1 at UP
edge of input relay 0000.
Increments DM0000 by 1 at UP
edge of input relay 0001.
Increments DM0000 by 1 at UP
edge of input relay 0002.
Increments DM0000 by 1 at UP
edge of input relay 0003.
Clears DM0000 to #00000 when
0005 turns ON.
KVNKA Chap 08.p65 08.3.11, 0:12 PM354
Vista de pagina 377
1 2 ... 373 374 375 376 377 378 379 380 381 382 383 ... 391 392

Comentarios a estos manuales

Sin comentarios